Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB can't find class when called from servlet

 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
This is driving me up the wall, anyone help ?? I have deployed a servlet in a war file on weblogic 6.1, I am actually testing a bean with Junitee, my test class within the war gains access to the EJB via its home interface and then the bean fails with a classDefNotFound error from a class file the bean uses but is not packaged in the beans jar, this class is on the server and referenced by the classpath in the manifest of the bean, I've been told this bean has been used successfuly and I tried another bean and got a similar problem, I've tried playing with the weblogic's class path to no avail. Could some kind soul help please.
java.lang.NoClassDefFoundError: com/bap/schema/myscheme
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:737)
at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:171)
at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:72)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:470)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:550)
at weblogic.rmi.internal.ProxyStub.newServerSideProxy(ProxyStub.java:77)
at weblogic.rmi.internal.OIDManager.resolveObject(OIDManager.java:230)
at weblogic.common.internal.WLObjectInputStreamBase2.resolveObject(WLObjectInputStreamBase2.java:47)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:394)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:191)
at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:182)
at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:169)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.java:233)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:264)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy136.create(Unknown Source)
at com.ba.test.ULFlightServicesTest.setUp(ULFlightServicesTest.java:49)
at org.junitee.runner.TestRunner$1.run(TestRunner.java:72)
at org.junitee.runner.TestRunner.run(TestRunner.java:95)
at org.junitee.servlet.JUnitEEServlet.runTests(JUnitEEServlet.java:227)
at org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2678)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2412)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:140)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:121)
--------------- nested within: ------------------
weblogic.rmi.extensions.RemoteRuntimeException - with nested exception:
[java.lang.NoClassDefFoundError: com/ba/schema/tgetcreditcardhandlingfeev1/GetCreditCardHandlingFeeRequest]
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
at $Proxy136.create(Unknown Source)
at com.ba.test.ULFlightServicesTest.setUp(ULFlightServicesTest.java:49)
at org.junitee.runner.TestRunner$1.run(TestRunner.java:72)
at org.junitee.runner.TestRunner.run(TestRunner.java:95)
at org.junitee.servlet.JUnitEEServlet.runTests(JUnitEEServlet.java:227)
at org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2678)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2412)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:140)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:121)
 
kevin chang
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to see the JNDI view tree in weblogic.
 
James MacLean
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you have both your Remote, and Home interfaces included in your war.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic