当前位置: 代码迷 >> Ajax >> 初学dwr报错 java.lang.SecurityException: Access to debug pages is denied.该怎么处理
  详细解决方案

初学dwr报错 java.lang.SecurityException: Access to debug pages is denied.该怎么处理

热度:1409   发布时间:2012-03-31 13:13:26.0
初学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辛苦了。。嘿嘿~~~
  相关解决方案