ClassLoading issue with multiple deployments
ben2 May 5, 2003 8:38 AMJboss version: Jboss-3.0.6
I am getting a ClassNotFoundException when trying to access an EJB
Ok I have the following deployments
OracleBridge.ear <-Set of EJBs
KronosBridge.ear <- Set of EJBs
FormServer-Payroll.ear <- Web application that uses above EJBs
I have added a jboss-app.xml in each of those deployments with the following lines in each one
<loader-repository>fast.rit.edu:loader=OracleBridge.ear</loader-repository>
<loader-repository>fast.rit.edu:loader=KronosBridge.ear</loader-repository>
<loader-repository>fast.rit.edu:loader=FormServer-Payroll.ear</loader-repository>
I need these because of other deployments that exist on the server and have version problems.
When a servlet in the Payroll app looks up an EJB I get this exception
Exception:java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at edu.rit.fast.formserver.payroll.TotalizerForm.getKronosServices(TotalizerForm.java:181)
at edu.rit.fast.formserver.payroll.TotalizerForm.defaultAction(TotalizerForm.java:110)
at edu.rit.fast.formserver.BasicFASTForm.getStream(BasicFASTForm.java:103)
at org.apache.cocoon.producer.AbstractProducer.getDocument(AbstractProducer.java:96)
at org.apache.cocoon.Engine.handle(Engine.java:359)
at org.apache.cocoon.Cocoon.service(Cocoon.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:280)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:553)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1656)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:549)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1606)
at org.mortbay.http.HttpServer.service(HttpServer.java:862)
at org.jboss.jetty.Jetty.service(Jetty.java:543)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:752)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:769)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)