DWR

初用DWR的错误


则控制台输出错误信息

页面显示

HTTP Status 501 - Error. Details logged to the console

内部错误

警告: Unhandled Exception
java.lang.SecurityException: Access to debug pages is denied.

原因:在web.xml未设置如下内容:
  <init-param>
   <param-name>debug</param-name>
   <param-value>true</param-value>
  </init-param>
  

解决方式:按如下进行修改:
 <servlet>
  <servlet-name>dwr-invoker</servlet-name>
  <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
  <init-param>
   <param-name>debug</param-name>
   <param-value>true</param-value>
  </init-param>
 </servlet>

你可能感兴趣的:(xml,Web,servlet,DWR,Access)