File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 deployment problem in Weblogic 10

 
reaper kashin
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your business interface should be accessible from the client. Try to include it in the classpath.
 
Amaan khan
Greenhorn
Posts: 14
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Andrew Moko
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add jar containing your EJB components to classpath of your client application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic