2

I'm using dwr and spring and I get this error:

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>
Michael Myers
  • 188,989
  • 46
  • 291
  • 292
flybywire
  • 261,858
  • 191
  • 397
  • 503

2 Answers2

3

Found. Because the version of the DWR's jar did not match the version of DWR's schema

flybywire
  • 261,858
  • 191
  • 397
  • 503
0

In my case the reason was that the relevant snippets in dwr.xml were there twice.

<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>
JayVeeInCorp
  • 144
  • 1
  • 3
  • 12