aspose file tools*
The moose likes BEA/Weblogic and the fly likes No class DefFound error in EJB3.0 running in weblogic 10.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "No class DefFound error in EJB3.0 running in weblogic 10.0" Watch "No class DefFound error in EJB3.0 running in weblogic 10.0" New topic
Author

No class DefFound error in EJB3.0 running in weblogic 10.0

parvathinathan chidambaram
Greenhorn

Joined: Aug 14, 2007
Posts: 1
Hi All,

I am new to EJB3.0 and Weblogic 10.0 . I have deployed my jar file in the weblogic server. I get the below mentioned error while running the client. when i debugged i found these things.

The problem is setting the initialContext Factory settings. Which in turn calls some class files in the jar file and says no class def found error .

People can you help me out to resolve this issue .

Thanks in advance

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/rmi/spi/HostID
at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.<clinit>(EnvironmentManager.java:26)
at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at test.Test.main(Test.java:32)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Moving this to the more appropriate Weblogic forum. This forum is for ORM only.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Erik Bengtson
Ranch Hand

Joined: Dec 06, 2003
Posts: 90
do you have weblogic.jar or wl-client.jar in your client classpath?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No class DefFound error in EJB3.0 running in weblogic 10.0