Results 1 to 4 of 4
- 03-03-2012, 12:54 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 60
- Rep Power
- 0
problem in contacting the servlet
I am using the reverseAjax technique to dynamically push the data from the servlet to a jsp page.
I am trying to contact another servlet for making some business logic, when i try to do so i am getting the error in the console as below java.lang.ClassNotFoundException: controller.querygen
But there exsists a package named controller and a querygen servlet. What could be the reason ? Is it because another servlet is already sending data dynamically to the jsp page and any exception arises?
- 03-03-2012, 12:56 PM #2
Member
- Join Date
- Feb 2012
- Posts
- 60
- Rep Power
- 0
Re: problem in contacting the servlet
And the following is displayed in the browser
javax.servlet.ServletException: Wrapper cannot find servlet class controller.querygen or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:489)
java.lang.Thread.run(Unknown Source)
- 03-05-2012, 10:53 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: problem in contacting the servlet
What's the route through your code?
Anyway, that error does imply the server can't find that class.Please do not ask for code as refusal often offends.
- 03-05-2012, 04:16 PM #4
Member
- Join Date
- Feb 2012
- Posts
- 60
- Rep Power
- 0
Re: problem in contacting the servlet
Now theproject is working fine. Its because the problem with the web.xml. Identified those and solved. Since i used these lines in the web.xml javaee has been automatically added and there by caused the problem
<web-app xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="query_process">
When i removed the javaee from the code its woking fine now . I dont understand why such error occured. It gave some parser error so i changed it and its working now .
Similar Threads
-
servlet problem plz help
By superbg in forum Advanced JavaReplies: 1Last Post: 10-18-2010, 10:43 AM -
java servlet problem plz help
By superbg in forum Java ServletReplies: 1Last Post: 10-18-2010, 10:36 AM -
servlet problem
By vijayabaskar in forum Java ServletReplies: 0Last Post: 04-29-2009, 09:34 AM -
Servlet problem
By maheshkanda in forum New To JavaReplies: 5Last Post: 02-10-2009, 08:55 AM -
servlet Filter problem
By saint_jorjo in forum New To JavaReplies: 1Last Post: 03-13-2008, 12:05 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks