puzzling servlet problem!



Okay, so I am sure that tomcat is up and running properly, the
examples all work perfectly, and my test servlet I wrote worked, and
still works, but I must be missing something, because my program
won't, and I've taken like all the code out of it. I've even
completely replaced all the code in the servlet with my test servlet
(which works) and it still doesn't work, so the problem is somewhere
else. I have tried this with and without the Invoker Servlet, and I
have been over and over the web.xml files and everything seems in
order.

The strangest part is that the behavior changes. When I first restart
tomcat, and then occasionally in between, I get the following error
when I try to browse my servlet with a web browser:

--

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
processVoice or a class it depends on

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
104)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
216)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:634)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
445)
java.lang.Thread.run(Thread.java:619)

root cause

java.lang.ClassNotFoundException: processVoice

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1358)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1204)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
104)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
216)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:634)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
445)
java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.10 logs.
Apache Tomcat/6.0.10

--

Then I hit reload, and for a hundred reloads, I won't even get that,
all I will get is:

--

type Status report

message Servlet process is not available

description The requested resource (Servlet process is not available)
is not available.

--

Usually a reload will get me one more of the other error, and I don't
know why I would get that. My processVoice.class file is properly
placed in WEB-INF/classes and the web.xml file is as follows currently
though I have messed with it seemingly endlessly:

--

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app 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_5.xsd";
version="2.5">

<display-name>nVoice</display-name>

<description>
voice processing servlet
</description>

<!-- Define servlets that are included in the application -->

<servlet>
<servlet-name>process</servlet-name>
<servlet-class>processVoice</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>process</servlet-name>
<url-pattern>/process</url-pattern>
</servlet-mapping>

</web-app>

--

So, java community, I am thoroughly frustrated and puzzled. Any help
is so incredibly appreciated. I imagine that this MUST be some kind
of configuration problem, but alas, it eludes me. Thank you all in
advance!

Joshua

.



Relevant Pages

  • Tomcat 4.1.29 connectors on Linux problem ?
    ... I have very strange problem with apache/mod-jk/tomcat installation ... I have installed very simple test servlet HelloWorld.class. ... tomcat helps afterwards. ...
    (comp.lang.java.programmer)
  • Re: Tomcat + java.io.FileNotFoundException
    ... Application Server executes servlet and JSP in their own context (both ... > experience configuring tomcat. ... > 1- the File class uses paths relative to the working directory. ... However, classA is ...
    (comp.lang.java.programmer)
  • Re: A2LL ist tot...
    ... | mit Tomcat als Servlet Container. ... | # Bugs - You think you have a bug or there is a difference in behavior with another servlet container. ... | # Database - Getting tomcat to talk to a database. ...
    (de.talk.tagesgeschehen)
  • Re: tomcat error..
    ... Remember that Tomcat doesn't execute JSPs, so it has no way of knowing where in "YOUR FILE" the error is. ... The IDE itself tracks how the code transmutes from source to translated source to object to run-time. ... Use java.util.logging or log4j, and think about the hapless operations folk when you design logging. ... well, the weird thing is, sometimes it shows in what line in JSP servlet the error is, I find my way to the servlet and find line causing error, which is quite useful, but sometimes it doesn't tell you anything, like ...
    (comp.lang.java.help)
  • Re: cant find a class...
    ... > Tony Morris wrote: ... > tomcat I don't need to set CLASSPATH? ... When your servlet executes using Tomcat, ... for jar files required by the servlet you've developed. ...
    (comp.lang.java.help)