Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
talalshaikh
Post subject: DWR Error  PostPosted: Jun 23, 2008 - 06:54 PM



Joined: Dec 16, 2007
Posts: 1

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
Quote:

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
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<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>
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: DWR Error  PostPosted: Jun 23, 2008 - 08:08 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

Does this help:-
http://www.activeobjects.no/subsonic/forum/viewtopic.php?t=43

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits