日期:2014-05-16  浏览次数:20587 次

初学dwr报错 java.lang.SecurityException: Access to debug pages is denied.
rt

dwr.xml中配置:
<dwr>
<allow>
<create creator="new" javascript="TestDwrService">
<param name="class" value="dwr.service.TestDwrService"></param>
</create>
</allow>
</dwr>

web.xml中配置:
  <servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>
org.directwebremoting.servlet.DwrServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>

输入http://localhost:8080/Mydwr/dwr控制台报错
警告: Failed attempt to access test pages outside of debug mode. Set the debug init-parameter to true to enable.
2009-9-1 10:46:45 org.directwebremoting.util.CommonsLoggingOutput warn
警告: Error: java.lang.SecurityException: Access to debug pages is denied.


------解决方案--------------------
LZ辛苦了。。嘿嘿~~~