为什么Java的给我一个IllegalArgumentException?
-
21-08-2019 - |
题
我使用DWR和弹簧和我得到这个错误:
java.lang.IllegalArgumentException: Javascript name * is used by 2 classes
我发现谷歌没有什么帮助,你知道为什么我收到此错误?
<?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的模式的版本
其他提示
在我的情况的原因是在dwr.xml中的有关片段在那里两次。
<create creator="new" javascript="Tab">
<param name="class" value="org.openxava.web.dwr.Tab"/>
</create>
...
<create creator="new" javascript="Tab">
<param name="class" value="org.openxava.web.dwr.Tab"/>
</create>
不隶属于 StackOverflow