wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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

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

parvathinathan chidambaram

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

Joined: Feb 05, 2001
Posts: 17249

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



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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: No class DefFound error in EJB3.0 running in weblogic 10.0
Similar Threads
Any help on weblogic.socket.UnrecoverableConnectException?
JNDI Runtime Error
Regarding JMS Server
Weblogic 9.2, JMS and standalone producers and consumers
Problem running ant script chapter 1 of ejb 3 in action with weblogic 10