geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Davidson" <>
Subject Servlet fails to deploy
Date Wed, 31 Jan 2007 15:52:27 GMT

I am having a problem with the servlet classpath for my EAR file which
successfully deploys on GlassFish and JBoss. I have a Servlet, MyServlet
which is in a JAR, MyServeltJAR.jar, the jar is referenced in the Class-Path
attribute of the WAR files MANIFEST file, and the servlet is referenced in
web.xml ie.

  - META-INF/application.xml
  - META-INF/geronimo-application.xml
  + lib/MyServletJAR.jar
  + WAR
       - META-INF/MANIFEST.MF: Class-Path: /lib/MyServletJAR.jar
       - WEB-INF/web.xml: <servlet></servlet>
       - WEB-INF/geronimo-web.xml

but Geronimo fails to deply the EAR as it cannot find the Servlet class:

Could not load servlet class
org.apache.geronimo.common.DeploymentException: Could not load servlet class
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(
at net.sf.cglib.reflect.FastMethod.invoke(

Caused by: java.lang.ClassNotFoundException: in
classloader default/myapp_myapp.war/1170243138828/car
at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(Unknown Source)

Do I need to put a reference to MyServletJAR.jar in geronimo-application.xmlor
geronimo-web.xml and if so how do i do that? Or does MyServletJAR.jar need
to contain something else to tell geronimo about the servlet?

Many thanks,


View raw message