java - 为什么 Java 给我一个 IllegalArgumentException?

标签 java javascript spring dwr

我正在使用 dwr 和 spring,但收到此错误:

java.lang.IllegalArgumentException: Javascript name * is used by 2 classes

I found nothing helpful on Google, do you know why I'm getting this error?

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"

       http://www.directwebremoting.org/schema/spring-dwr
       http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">

<dwr:configuration />
<dwr:controller id="dwrController" debug="true" />

    <bean id="ping" class="com.mycompany.Ping">
        <dwr:remote javascript="rpcPing">
            <dwr:include method="ping" />
        </dwr:remote>
    </bean>
</beans>

最佳答案

找到了。 因为DWR的jar版本与DWR的schema版本不匹配

关于java - 为什么 Java 给我一个 IllegalArgumentException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/673716/

相关文章:

java - 在图 TableView 中将日期显示为 X 轴不起作用(每次显示相同)

java - 如何在 Swt 组合框中设置默认值?

javascript - Angular + HTML 5 推送状态错误

java - Spring Framework可以用于批处理应用吗?

java - Controller 未在 .jsp 页面上触发 MVC Spring JAVA

java - IntelliJ IDEA 12.0 意图调整(插入)

javascript - 传递到 .on() 函数的变量始终是最后一个元素

javascript - 在 jQuery 中执行基于主体类的悬停功能

spring - 处理grails中一对多关系的动态表单参数

java - Spring 启动/MongoDB : expecting to have different URL for GET and DELETE