首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >遇到“配置类org.directwebremoting.servlet.DwrListener的应用程序侦听程序时出错”

遇到“配置类org.directwebremoting.servlet.DwrListener的应用程序侦听程序时出错”
EN

Stack Overflow用户
提问于 2010-08-18 13:09:52
回答 1查看 5K关注 0票数 0

在tomcat6中使用dwr部署应用程序时,我发现“配置org.directwebremoting.servlet.DwrListener类的应用程序侦听器时出错”的错误。这是我的web.xml

代码语言:javascript
复制
<display-name>DWR (Direct Web Remoting)</display-name>
  <description>A Simple Demo DWR</description>
  <listener>
    <listener-class>org.directwebremoting.servlet.DwrListener</listener-class>
  </listener>


<servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <display-name>DWR Servlet</display-name>
    <description>Direct Web Remoter Servlet</description>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>

<!-- This should NEVER be present in live -->
<init-param>
  <param-name>debug</param-name>
  <param-value>true</param-value>
</init-param>

<!-- Remove this unless you want to use active reverse ajax -->
<init-param>
  <param-name>activeReverseAjaxEnabled</param-name>
  <param-value>true</param-value>
</init-param>

<!-- By default DWR creates application scope objects when they are first
used. This creates them when the app-server is started -->
<init-param>
  <param-name>initApplicationScopeCreatorsAtStartup</param-name>
  <param-value>true</param-value>
</init-param>

<!-- WARNING: allowing JSON-RPC connections bypasses much of the security
protection that DWR gives you. Take this out if security is important -->
<init-param>
  <param-name>jsonRpcEnabled</param-name>
  <param-value>true</param-value>
</init-param>

<!-- WARNING: allowing JSONP connections bypasses much of the security
protection that DWR gives you. Take this out if security is important -->
<init-param>
  <param-name>jsonpEnabled</param-name>
  <param-value>true</param-value>
</init-param>

<!-- data: URLs are good for small images, but are slower, and could OOM for
larger images. Leave this out (or keep 'false') for anything but small images -->
<init-param>
  <param-name>preferDataUrlSchema</param-name>
  <param-value>false</param-value>
</init-param>

<!-- This enables full streaming mode. It's probably better to leave this
out if you are running across the Internet -->
<init-param>
  <param-name>maxWaitAfterWrite</param-name>
  <param-value>-1</param-value>
</init-param>


    <init-param>
  <param-name>org.directwebremoting.extend.ServerLoadMonitor</param-name>
  <param-value>org.directwebremoting.impl.PollingServerLoadMonitor</param-value>
 </init-param>



<!--
For more information on these parameters, see:
- http://getahead.org/dwr/server/servlet
- http://getahead.org/dwr/reverse-ajax/configuration
-->
<load-on-startup>1</load-on-startup>
  </servlet>
EN

回答 1

Stack Overflow用户

发布于 2010-08-18 19:01:17

您是否也收到了ClassNotFound错误?

你在你的网络应用程序的WEB-INF/lib目录中放置dwr.jar了吗?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3509132

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档