Recently, ESET add my domain name to the black-list of their database. You can’t open my site and been warned my site is not safe if your PC is running the ESS or EAV. Why Eset block my site?The answer is obvious. That is reason that you come here. I promise that my site is pure, no virus, no spyware, no Trojan, no pop ads. You can test my word through intalling Kaspersky or other Antivirus Software. If you want open my site and take latest escalation ID & Activation Code, close your ESET software(disable antivirus and antispyware protection function temporarily) or by proxy or virtual machinor. You can also feed the RSS source http://feed.loserblog.cn.
Home > Programm > DWR was wrong IllegalArgumentException

DWR was wrong IllegalArgumentException

web.xml worded as follows, but when the running error,
<servlet>
<servlet-name> dwr-invoker </ servlet-name>
<servlet-class> org.directwebremoting.servlet.DwrServlet </ servlet-class>
<init-param>
<param-name> debug </ param-name>
<param-value> true </ param-value>
</ init-param>
</ servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </ servlet-name>
<url-pattern> / dwr / * </ url-pattern>
</ servlet-mapping>
Mistakes are as follows:
java.lang.IllegalArgumentExcep

tion: DefaultContainer can't find a classes
at org.directwebremoting.impl.DefaultContainer.getBean (DefaultContainer.java: 216)
at org.directwebremoting.annotations.AnnotationsConfigurator.configure (AnnotationsConfigurator.java: 50)
at org.directwebremoting.servlet.DwrServlet.init (DwrServlet.java: 121)


DWR2.0 the original by adding a footnote to the JDK5 (annotations). DwrServlet initialization of the Notes will be to check the type, can not find on the Baocuo. If you do not have annotations can also overlooked this error, it is不爽. However, there are ways to solve it, as follows:
<servlet>
<servlet-name> dwr-invoker </ servlet-name>
<servlet-class> org.directwebremoting.servlet.DwrServlet </ servlet-class>
<init-param>
<param-name> debug </ param-name>
<param-value> true </ param-value>
</ init-param>
<init-param>
<param-name> class </ param-name>
<param-value> java.lang.Object </ param-value>
</ init-param>
</ servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </ servlet-name>
<url-pattern> / dwr / * </ url-pattern>
</ servlet-mapping>

Categories: Programm Tags:
  1. No comments yet.
  1. No trackbacks yet.
  • Partner links