1 Reply Latest reply on Oct 13, 2004 11:12 AM by alanmoor

    Deploying servlets inside a war inside an ear

    alanmoor

      I have a web application I am attempting to deploy inside an EAR. Everything works splendidly except for my servlets. The servlets do work when I deploy their jar files to server/default/lib by the way, so I know it's a config issue.

      Basic structure of EAR:

      MyEJB.jar
      MyWeb.war
      lib/myclasses.jar

      inside the manifest of both the MyEJB.jar and MyWeb.jar I have a line:
      Class-Path: ./lib/myclasses.jar

      The deployed EJBs and web find the classes just fine. The ONLY problem is the servlets. I can run the web site and all the jsps and beans work, the ejb's work. It's just the servlets. Also, I have NO class files anywhere but in myclasses.jar, save the minimum EJB classes in MyEJB.jar.



      20:29:04,559 ERROR [Engine] ----- Root Cause -----
      java.lang.ClassNotFoundException: com.rossgroupinc.memberz.scheduler.ProcessScheduler
      at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:954)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)