wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 deployment problem in Weblogic 10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB 3.0 deployment problem in Weblogic 10" Watch "EJB 3.0 deployment problem in Weblogic 10" New topic
Author

EJB 3.0 deployment problem in Weblogic 10

reaper kashin
Greenhorn

Joined: Jun 26, 2011
Posts: 1
Business Interface




Bean Class


Client


jndi.properties file

Error
E:\Documents and Settings\reaper\Desktop\ejb>java HelloWorldClient
Exception in thread "main" java.lang.AssertionError: java.lang.ClassNotFoundExce
ption: com.ash.ejb3.demo.HelloWorld
at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateR
emoteInterface(RemoteBusinessIntfGenerator.java:57)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(Re
moteBusinessIntfProxy.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
46)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectIn
putStream.java:197)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
va:564)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectIn
putStream.java:193)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
.java:259)
at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown So
urce)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at HelloWorldClient.main(HelloWorldClient.java:15)
Caused by: java.lang.ClassNotFoundException: com.ash.ejb3.demo.HelloWorld
at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassByte
s(RemoteBizIntfClassLoader.java:151)
at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(Re
moteBizIntfClassLoader.java:96)
at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateR
emoteInterface(RemoteBusinessIntfGenerator.java:54)
... 26 more

yeah.. i know its a stupid example, but i can't get it to work
I don't know what's going on.. could someone please check what went wrong..
Aan Kurniawan
Greenhorn

Joined: Apr 14, 2011
Posts: 9

Your business interface should be accessible from the client. Try to include it in the classpath.


Aan Kurniawan
OCPJP JavaSE 6 (98%), OCP JEE 5 WCD (100%), OCP JEE 5 BCD (98%), SCEA/OCM JEE5 EA (Part 1-2-3)
Amaan khan
Greenhorn

Joined: Nov 29, 2008
Posts: 14

Did anyone get a solution to this problem, I dont know why this occurs, It has ruined my work a lot, can anyone help me out...


OCPJP (SCJP) 6.0 93%

--- Fear Thy Lord ---
Andrew Moko
Ranch Hand

Joined: Dec 16, 2011
Posts: 55
This is a jndi issue. I would navigate to the JNDI tree on the weblogic console and verify the bean interface mapped name
Mahendr Shinde
Ranch Hand

Joined: Sep 03, 2011
Posts: 38

You need to add jar containing your EJB components to classpath of your client application.


There is still lot to learn!
 
GeeCON Prague 2014
 
subject: EJB 3.0 deployment problem in Weblogic 10