Results 1 to 4 of 4
  1. #1
    mkarthik90 is offline Member
    Join Date
    Feb 2012
    Posts
    62
    Rep Power
    0

    Default 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?

  2. #2
    mkarthik90 is offline Member
    Join Date
    Feb 2012
    Posts
    62
    Rep Power
    0

    Default 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)

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,967
    Rep Power
    19

    Default 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.

    ** This space for rent **

  4. #4
    mkarthik90 is offline Member
    Join Date
    Feb 2012
    Posts
    62
    Rep Power
    0

    Default Re: problem in contacting the servlet

    Quote Originally Posted by Tolls View Post
    What's the route through your code?
    Anyway, that error does imply the server can't find that class.
    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

  1. servlet problem plz help
    By superbg in forum Advanced Java
    Replies: 1
    Last Post: 10-18-2010, 10:43 AM
  2. java servlet problem plz help
    By superbg in forum Java Servlet
    Replies: 1
    Last Post: 10-18-2010, 10:36 AM
  3. servlet problem
    By vijayabaskar in forum Java Servlet
    Replies: 0
    Last Post: 04-29-2009, 09:34 AM
  4. Servlet problem
    By maheshkanda in forum New To Java
    Replies: 5
    Last Post: 02-10-2009, 08:55 AM
  5. servlet Filter problem
    By saint_jorjo in forum New To Java
    Replies: 1
    Last Post: 03-13-2008, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •