facebook

DWR Error

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #286112 Reply

    talalshaikh
    Member

    Hi I get the following error when i try to access the dwr directory page.I have referenced the dwr.jar library and made updates in the web.xml file but still i am getting an error.Can somebody help me with this?

    Thanks!!

    exception

    javax.servlet.ServletException: Servlet.init() for servlet dwr-invoke threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Unknown Source)

    root cause

    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    org.directwebremoting.dwrp.PollHandler.<clinit>(PollHandler.java:382)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Unknown Source)
    org.directwebremoting.impl.ContainerUtil.class$(ContainerUtil.java:97)
    org.directwebremoting.impl.ContainerUtil.setupDefaults(ContainerUtil.java:150)
    org.directwebremoting.impl.ContainerUtil.setupDefaultContainer(ContainerUtil.java:125)
    org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:73)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Unknown Source)

    This is the web.xml file

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app version=”2.4″
    xmlns=”http://java.sun.com/xml/ns/j2ee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;

    <servlet>
    <servlet-name>dwr-invoke</servlet-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>false</param-value>
    </init-param>
    </servlet>

    <servlet-mapping>
    <servlet-name>dwr-invoke</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>

    #286122 Reply

    Loyal Water
    Member
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: DWR Error

You must be logged in to post in the forum log in