• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(Hibernate Tutorial chap 1)ServletException: Wrapper cannot find servlet class

 
Chris Rudger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

i am about to get a .war archive running on a tomcat server(Apache Tomcat/5.0.28). The jvm i use is: 1.5.0_03-b07
As described in the docu i placed the archive in the webapps folder and launched tomcat. So far everything went fine. I can open the default Tomcat page on localhost. But when i tried to open my new app (actually the hibernate tutorial example) it fails with this trace (war structure and web.xml follow beneath):
avax.servlet.ServletException: Wrapper cannot find servlet class events.EventManagerServlet or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
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:683)
java.lang.Thread.run(Thread.java:595)

The Structure of my hibernate-tutorial.war file:

META-INF/MANIFEST.MF (generated by ant)
WEB-INF/classes/events/EventManager.class
WEB-INF/classes/events/EventManagerServlet.class
WEB-INF/classes/events/ ... (some other class & hbm.xml files)
WEB-INF/classes/util/HibernateUtil.class
WEB-INF/classes/hibernate.cfg.xml
WEB-INF/classes/log4j.properties
WEB-INF/lib/... (lots of libs)
WEB-INF/web.xml

Here is the content of web.xml:
<?xml version="1.0" encoding="UTF-8" ?>

<web-app version="2.4" 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_4.xsd">

<servlet>
<servlet-name>Event Manager</servlet-name>
<servlet-class>events.EventManagerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Event Manager</servlet-name>
<url-pattern>/eventmanager</url-pattern>
</servlet-mapping>
</web-app>

I hope anyone can help me. This begins to bug me


O.k. if any info is missing. I am happy to provide

Bye chris
[ November 14, 2006: Message edited by: Chris Rudger ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This does sound like a servlet issue, but I'm going to move it to our ORM forum where Hibernate issues are usually discussed.
I think you'll have a better chance of running into someone who's actually completed that tutorial there than here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic