Tomcat can't find servlet class

Hello,
I am trying to forward information from a jsp page to a servlet (the example in JSPIntro.pdf). I keep getting the error that the servlet class can't be found. I have put it in webapps/examples/web-inf/classes. I also added the servlet name in several web.xml files in different directories to no avail. Can anyone give me a hint on setup.
Thanks

to setup correctly the servlet you need something like this int the web.xml
<servlet>
<servlet-name>yourservlet</servlet-name>
<servlet-class>xx.yyy.zzz.yourservlet</servlet-class>
<init-param>
</servlet>
and you must put the class under
WEB_INF/lib/xx/yyyy/zzz directory of your context.
the servlet must be called as
http://yourhost/yourcontext/servlet/yourservlet
hope it helps,
Giovanni

Similar Messages

  • TOMCAT CAN�T FIND BEAN CLASSE

    Hello, i am from Argentina. i need URGENT help with tomcat, because i am developing my final thesis.
    I have all my sources in
    C:\jakarta-tomcat-5.0.16\webapps\tesis
    C:\jakarta-tomcat-5.0.16\webapps\tesis\ (archivos jsp)
    C:\jakarta-tomcat-5.0.16\webapps\tesis\lib
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\beans
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\queries
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\fede\servlets
    my problem is that when i execute the login.jsp through the browser in this way
    http://localhost:8080/tesis/login.jsp
    tomcat can�t find the edu.tesis.beans package
    In compiled jsp class i can see this
    package org.apache.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import edu.tesis.beans.*;
    so, the problem is that tomcat set package org.apache.jsp; to my jsp, so it can�t find edu.tesis.beans package.
    This is my context path that is in $CATALINA_HOME/conf/server.xml file
    <Context path="/tesis" docBase="C:\tomcat\webapps\tesis"
    debug="9"
    reloadable="true"
    crossContext="true"/>
    This is an extraction of my jsp file
    <html>
    <head>
    <%@page import="edu.tesis.beans.*"%>
    </head>
    <body>
    <jsp:useBean id="universidad" class="edu.tesis.beans.Universidad" scope="request" />
    <form action="servlets/fede.servlets.ServletMaxwell" method="post"><BR><BR><BR><BR>
    PLEASE, I NEED AN URGENT HELP!!!!
    THANKS,
    FEDERICO

    Tampoco te preocupes porque Tomcat cambie el paquete de las p�ginas jsp. Eso es un comportamiento normal. Adem�s nota que el paquete de tu tesis es importado en la clase generada a partir del jsp, o sea que deberia encontrarla si est� en el lugar correcto.
    Otra cosa que veo extra�a en tu estructura de directorios es que existe un directorio "lib" por fuera de WEB-INF. Si este contiene beans en forma de paquetes jar, deberia estar dentro de WEB-INF

  • Where i can put my servlet class in tomcat 4.1

    where i can put my servlet class in tomcat 4.1 ?

    hi,
    you have to put your serlet class file in
    Tomcat\webapps\
    Here create a directory as you wish
    then, Tomcat\webapps\your directory\WEB-INF\classes
    and you have to copy web.xml to WEB-INF directoy.
    Hope this will help.
    Regards
    Sekhar

  • Cannot find servlet class

    I have a new computer and I have installed the latest version of Tomcat but kept the old free version of the Sun One Studio which I still had a setup file for (as I couldn't find it on this site anywhere for free anymore). The new version of Tomcat puts my webapps in a different area now being s1studio\tomcat401\webapps but there is another area for the server: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\tomcat-docs. I use the first directory and that shows my jsp's etc but it doesn't find my servlets.
    My problem I am having is that my log file is showing this:
    2005-10-24 10:27:48 StandardHost[localhost]: Removing web application at context path /webdav
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /examples
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /tomcat-docs
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /manager
    2005-10-24 10:28:11 WebappLoader[manager]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\manager
    2005-10-24 10:28:11 StandardManager[manager]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[manager]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[manager]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 ContextConfig[manager]: Configured an authenticator for method BASIC
    2005-10-24 10:28:11 StandardWrapper[manager:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[manager:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT
    2005-10-24 10:28:11 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\_
    2005-10-24 10:28:11 StandardManager[]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 StandardWrapper[:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\tomcat-docs
    2005-10-24 10:28:11 WebappLoader[tomcat-docs]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\tomcat-docs
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[tomcat-docs]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:28:12 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\webdav
    2005-10-24 10:28:12 WebappLoader[webdav]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\webdav
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[webdav]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[webdav:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[webdav:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:29:55 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:29:55 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.ClassNotFoundException: CourseList
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:801)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    2005-10-24 10:54:35 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:54:35 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    and so it goes on.
    My classes are in the directory as:
    C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF\classes\virtualward\java
    and my web.xml is here: C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF
    and the code for the CourseList servlet is:
    <servlet>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <servlet-class>virtualward.java.CourseList</servlet-class>
           </servlet>
    <servlet-mapping>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <url-pattern>/servlet/CourseList</url-pattern>
       </servlet-mapping>The example servlets work fine and all .jsp's work within my project.
    Can anyone spot what's wrong?
    Thanks!!!

    I did a basic .jsp page and that worked so at least that's something. Here is my code for the .jsp that won't work. It worked perfectly on my old computer on the configuration with Tomcat4
    <%@page import="virtualward.java.Student"%>
    <jsp:useBean id="student" class="virtualward.java.Student" scope="session"/>
    <%
    String error = null; // set the error message to null for the initial visit
                        //to the page
    if (request.getParameter("SUBMITTED") != null)
        Student s = Student.findStudent(request.getParameter("userid"));
        if (s == null)
            error = "Login ID not found, please try again.";
        else
            //if the input password = the stored password
            if (request.getParameter("userpword").equals(s.getPWord()))
                //if login priviledges are 1 give them student access
                if (s.getPrivilegeLevel()==1)
                    //store the details of that students details in a session from the object.
                    session.setAttribute("student", s);
                    //go to the page to display the details
                    response.sendRedirect("stuProfile.jsp");
                } //if login priviledges are 2 or 3 direct them to a page that
                  //gives them Lecturer priviledges
                else if (s.getPrivilegeLevel()==2 || s.getPrivilegeLevel()==3)
                        //store the details of that students details in a session from the object.
                        session.setAttribute("student", s);
                        //go to the page to display the details
                        //response.sendRedirect("selectProfile.jsp"); //old link
                             response.sendRedirect("maintenance/courseIdenti.jsp");
            else
                error = "Invalid Password";
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Student Profile</title>
    <link href="VWStyle.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
         background-color: #515151;
    -->
    </style>
    </head>
    <body>
    <table width="450" height="125" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="8" colspan="3"><img src="images/tit_studentProf.gif" width="200" height="27"></td>
        <td height="8"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner01.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/top_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner02.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
      <tr>
        <td background="images/left_tble.gif"> </td>
        <td width="8" align="left" valign="top" class="bodyText"> </td>
        <td align="left" valign="top" class="bodyText"><form method = POST ACTION="profileLogin.jsp">
            <Input type="HIDDEN" name="SUBMITTED" VALUE="T">
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <% if (error != null){%>
                <strong> <FONT COLOR = "#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><%= error %></FONT></strong><br>
                <% } %>
                <td valign="top" class="bodyText">Login ID:</td>
                <td valign="top" class="bodyText">Password:</td>
                <td> </td>
              </tr>
              <tr>
                <td width="155" valign="top" class="bodyText"><input name="userid" type="text" width="25">
                </td>
                <td width="136" valign="top" class="bodyText"><input name="userpword" type="password" size=25>
                </td>
                <td width="126" align="right" valign="top"><div align="left">
                    <input name="Submit" type="image" id="Submit" src="images/but_go.gif" alt="Click to login" width="36" height="26" border="0">
                </div></td>
              </tr>
              <tr>
                <td colspan="3" valign="top" class="bodyText"><strong>Login to view your profile<br>
                  </strong><font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif">In the case of forgetting your login details, contact your module co-ordinator.</font></td>
              </tr>
            </table>
        </form></td>
        <td background="images/right_tbl.gif"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner03.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/bot_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner04.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
    </table>
    </body>
    </html>

  • Wrapper cannot find servlet class

    Hi all
    Can anyone please help me to resolve this error. It come about since I've provided the package (pa_sodev.pr_add_user_diary_event). My Java file is in Java Resources:src folder .
    I don't have a folder called classes in my WEB_INF directory.
    Many thanks
    Zed
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class addEveProcess or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.ClassNotFoundException: addEveProcess
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         java.lang.Thread.run(Unknown Source)Edited by: Zed420 on Jan 31, 2010 6:09 PM

    Thanks for your reply, can I ask if my setup is correct ?
    I'm using Eclipse, on my left in Dynamic Web Perspective I have Servers and myProject.
    In myProject ->Java Resources:src (this is where all my java files are with package) and WebContent.
    In WebContent ->META-INF and WEB-INF
    In WEB-INF ->(this is where I have lib folder and my xml & jsp files)
    In lib I have Oracle connector .jar
    Can someone confirm if this is the right setup please.
    thanks
    Zed

  • Tomcat can't locate my class files

    Tomcat can't locat my class file for my javabeans in a jsp page.
    (Tomcat 4.1.24/windows XP)
    I have created inside of webapps a directory thesis and also the WEB-INF\classes and WEB-INF\lib. I don't know what should I put in web.xml so it is basically almost empty.
    this is the error I get where Searcher is my javabean:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:89: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] Searcher seek = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:91: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) pageContext.getAttribute("seek", PageContext.PAGE_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:94: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Searcher");
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:111: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] out.print(JspRuntimeLibrary.toString((((Searcher)pageContext.findAttribute("seek")).getAnalyze())));
    [javac] ^
    [javac] 4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)

    did you create the Searcher class? if so stick it in a package and put it under your web-inf directory. then use an <%@ page import="" %> statement to import the code.
    if you didn't create the class is it in some jar library you downloaded? if so stick the jar file in your web-inf/lib folder.
    -S-

  • Wrapper cannot find servlet class error

    Hi all!
    I'm receiving a mysterious error when I try to run my web ap. "Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on"
    I'm running it on JBoss 3.2.7, and I have another web ap, made almost identical to this one which does not display the same error/exception.
    If anyone could give me advice on what I should do to fix this, I'd very much appreciate it. :)
    Full exception message:
    javax.servlet.ServletException: Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: com.ruffalocody.report.ReportServlet
         java.net.URLClassLoader$1.run(URLClassLoader.java:199)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)the servlet class file ReportServlet.class is located in:
    WEB-INF\classes\com\ruffalocody\report
    web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>RprtSrvlt</servlet-name>
            <servlet-class>com.ruffalocody.report.ReportServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>RprtSrvlt</servlet-name>
            <url-pattern>/reports</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <!-- Context Param -->
        <context-param>
        <param-name>crystal_image_uri</param-name>
        <param-value>crystalreportviewers10</param-value>
        </context-param>
        <!-- Context Param End -->
    </web-app>It's called from the index.jsp page w/ ulr: "reports?goTo=view"
    Servlet code (not sure if it's useful, but including just in case):
    * ReportServlet.java
    * Created on February 1, 2007, 11:04 AM
    package com.ruffalocody.report;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    import com.crystaldecisions.report.web.viewer.CrystalReportViewer;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase;
    * @author aerohner
    * @version
    public class ReportServlet extends HttpServlet
        String rptLoc = "CR10_JRC_BeginHere.rpt";
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
         response.setContentType("text/html;charset=UTF-8");
         String goTo = request.getParameter("goTo");
         if(goTo != null && goTo.equals("view"))
             viewReport(request, response);
         }// end goTo view
         else if(goTo != null && goTo.equals("export"))
             exportReport(request, response);
         }// end go to export
         else
             RequestDispatcher view = request.getRequestDispatcher("index.jsp");
             view.forward(request,response);
        private void viewReport(HttpServletRequest request,
             HttpServletResponse response) throws ServletException, IOException
         IReportSource rptSrc = setUpReportSource(request);
         if (rptSrc != null)
             // create viewer
             CrystalReportViewer viewer = new CrystalReportViewer();
             try
              viewer.setReportSource(rptSrc);
              forward(request, response, viewer);
             catch(ReportSDKExceptionBase e)
              e.printStackTrace();
         }// if rptsrc not null
         else
             log("rptSrc is null");
         }// end else not null
        }// end viewReport(.)
        private void exportReport(HttpServletRequest request, HttpServletResponse response)
        }// end exportReport(.)
        private IReportSource setUpReportSource(HttpServletRequest request)
         IReportSourceFactory2 rptFact = new JPEReportSourceFactory();
         IReportSource rptSrc = null;
         try
             rptSrc = (IReportSource)
              rptFact.createReportSource(rptLoc, request.getLocale());
         }// end try
         catch (Exception e)
         return rptSrc;
        }// end setUpReportSource()
        private void forward(HttpServletRequest request,
             HttpServletResponse response, Object viewer)
             throws ServletException, IOException
         request.setAttribute("viewer", viewer);
         RequestDispatcher view = request.getRequestDispatcher("viewer.jsp");
         view.forward(request,response);
        }// end forward(...)
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
         processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
         processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
         return "Short description";
        // </editor-fold>
    }Thanks :)

    I'm curious. Could you strip off the "java." part of the package, so both in your sourcefile as in the directory structure? It may be that the java package is not allowed, but then I wouldn't know why you didn't get a compile error...

  • Cannot Find Servlet class Error

    Hello Everybody,
    i have written a simple servlet and compiled it using j2sdk1.4 version and jsdk.jar.But when i try to load the servlet on the javawebserver2.0 it says it is unable to find servlet class though i have put the class file in the servlets directory.i even put the class in the classes directory.It works fine when i compile the same class using j2sdk1.3 version and jsdk.jar.
    Please guide me as to what should be done to overcome this problem.
    Thanks in Advance
    Manikantan Iyer

    Hi mani2k_in ,
    JavaWebserver2.0 --> This web server, by default uses JDK 1.1.8.
    If you have compiled your classes using heigher versions, Webserver won't be able to find those classes which were added after JDK1.1.8.
    That was the first problem regarding the J2sdk versions you have used.
    You can override the default JVM usage of JavaWebServer2.0
    Second the servlet problem.
    Your environment should able to lookup the classes dyanmically jsdk.jar or servlet.jar.
    If you are able to compile the servlet successfully, place it in servlets directory and access the servlet from a browser using the url http://servername:portnumber/servlet/Servletclass
    Although you have placed your class file in servlets directory, you should access by using servlet in the URL.
    If it doesn't solve your problem, please come back with more details.
    Thanks,
    Sanath Kumar

  • Can't find main class - program will end

    Dear forum readers,
    Recently upgraded from Win2k pro to XP pro .. installation ran to conclusion w/ no fatal errors BUT upon booting new system I now receive an error message "Java Virtual Machine Launcher can't find main class, program will end" .. I am not aware that this error is causing any problems BUT it is annoying and I'd like to be able to fix the problem so I don't have to close the error message at each startup .. please help!
    Thanks in advance, Larry

    Try this
    java -XbootClasspath/a -jar <<Prog name>>
    I think you are trying in windows XP.
    Also you need to modify if there are any other jars to be reference. For eg if a.jar is also required for this try as below
    java -XbootClasspath/a:a.jar -jar <<Prog name>>

  • Can't find textbox class - help please!

    I'm posting this again, in the hope that more people might help. I already know that the error means that the compiler can't find the class Textbox. I need to know why, because I've copied the relevant parts of the code from another app that builds fine. So why won't this build?
    I'm trying to write and build my first J2ME app. My code starts:
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.lang.Math;
    public class TestMIDlet
    extends MIDlet
    implements CommandListener
    private Textbox tbMain;
    public void startApp()
    The build fails with numerous errors of which the first is:
    C:\WTK22\apps\TestMIDlet\src\TestMIDlet.java:9: cannot find symbol
    symbol : class Textbox
    location: class TestMIDlet
    private Textbox tbMain;
    with the caret under the 'T' of Textbox
    I don't understand what's wrong with this, as it's in many of the sample apps I've looked at.
    Thanks
    Ed

    Thanks very much!
    I've lost count of the times I've been caught by that case-sensitivity thing in Javascript. I thought it was just the first letter that had to be capitalised. Progress at last!

  • My JSP can't find a class file

    Hi
    I am trying to view a JSP but I get ClassNotFoundException. I know that it means that it can't find the class but I can't understand why.
    my directory structure:
    Intranet->source
    ->jsp
    ->WEB-INF->classes->source-><class file here>
    first line of .java file:
    package source;
    JSP code:
    <%@page import="java.sql.*, source.*, java.util.*;" %>
    <jsp:useBean id="dbConnect" scope="session" class="source.DBConnect">
    <jsp:getProperty name="dbConnect" property="jdbc:odbc:Auto_Intranet" />
    </jsp:useBean>
    Must I create an environment variable for 'Windows': with classpath " .....\WEB-INF\classes"
    The Windows environment variable doesn't exist----using XP Pro

    Looks right to me.
    You don't need a classpath variable. Web containers ignore it anyway.
    Which class is not found? source.DBConnect?
    Is DBConnect in a package called source?
    Is your database driver in the web-inf/lib directory?
    Please post the full error message with stack trace - it will be easier to sort out.
    Good luck,
    evnafets

  • Which Table, can I find the class and characteristic assigned to equipment.

    Hi all,
    I have assigned a characteristc to a class.
    And assigned this class to an equipment.
    Now in which table can i find the class assigned to this equipment.
    What is the logic to find the class and characteristic.
    Thanks in advance.
    Piyush

    Hi,
    As per above post, you can find classes. To find characteristics, Give EQUNR value in OBJEK field in AUSP table & get the ATINN value.
    Give ATINN value in ATINN field in CABN table & get ATNAM field value.
    In AUSP table, you can get the values against each characteristics as well.
    Regards,
    Maheswaran.
    Edited by: Maheswaran.K on Apr 19, 2011 9:28 AM

  • Installing 10g on Windows XP machine JVM launcher "Can't find main class"

    I am trying to install 10g Release 2 on a Windows XP machine. I downloaded the zip from the OTN. Unzipped the file. No problems. Tried to run the OUI, it opened up a shell and said to wait. The shell closed and a message frome the JVM Launcher displayed "Can't find main class. Program will exit." I have seen several people on this and other discussion boards having this problem, but have yet to get a solution. Please help.

    What's the value of CLASSPATH environment variable? Possibly a non-oracle application has set this variable and the installer catches it. If there is such a variable, comment it out and try again.

  • Can't find Java Class of a standard UI Command

    Hello everybody,
    Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
    for example ?
    Thanks & Regards,
    Hassan Mounim

    Hi Hassan,
    You can find the UIDetailsCommand class here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
    And the bundle file UIConst here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
    Hope this helps,
    Robert

  • Swf can't find custom classes after publishing....

    Hi everyone,
    So this is probably an easy thing I don't know, I'm hoping.
    But when I publish my project and test it in a normal HTML, the swf can find some classes but not others for some reason?
    How can I make sure all the classes get compiled into the Swf?
    I got the main timeline calling the first class (CalypsoPlayer); and it finds this class find -- which is under the same class path.
    But CalypsoPlayer can't find the class it needs, even though it's under the same class path as the class.
    I've tested the project in Flash itself and it all works great without any errors so I'm not sure what's going on.  It's only when I test
    the published SWF that it can't find all the classes it needs.
    I appreciate anyones help -- Stan

    Hey Dan,
    My mind just stopped for an hour and I wasn't thinking straight on this issue, lol.  I thought I deleted this posting but apparently
    I didn't.
    Thanks for your help but this issue was just a result of a mind that had too much coffee and not enough energy .
    - Stan

Maybe you are looking for

  • A few Questions on ABAP Query

    Hi Guru's I would like to ask some questions on ABAP query. 1. Can you transport abab queries? Should it only be Global or you can also transport Standard Areas? 2. Once transported, am i able to change query? Thanks, Jograd

  • Javascript Date() function not working

    Hi, I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Dat

  • Connect to iTunes every time iPad is turned off

    I recently bought an iPad. Every time the iPad runs out of battery and turns off, when I turn it back on it asks me to connect to iTunes. Dos anyone know why this happens? Thanks for your help Aris

  • Selecting a movie clip to play

    Ok, The following set of code is partially working for me. If the randomNumber*100 is < 90, the clip "straight" plays just fine. If it is >90, both the "slightbenddown", and "slightbendup" clips go off at the same time. var randomNumber:Number = Math

  • MM and CRM

    Would a SAP MM consultant with basic fuctionality knowledge of the MM module be best suited to work on a CRM prototype? Are there any links/commonalities between the two?