puzzling servlet problem!
- From: joshua <chambers.joshua@xxxxxxxxx>
- Date: 28 Apr 2007 19:14:23 -0700
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
.
- Prev by Date: Re: Definition of a "property"
- Next by Date: Re: SOS PLEASE FRIENDS OF JAVA
- Previous by thread: File
- Next by thread: @see javadoc tag in overview.html?
- Index(es):
Relevant Pages
|
|