Hi, javax.ejb.EJBHome should be in the javaee-5.0-1.jar file. I'm just guessing here - do you need to specify the path to javaee-5.0-1 on your classpath:
C:\Data\Projects>java -cp C:\openejb-3.1\lib\javaee-api-5.0-1.jar;c:\data\projects;C:\openejb-3.1\lib\openejb-client-3.1.jar org.acme.HelloClient Jon On Tue, Mar 24, 2009 at 6:08 PM, <[email protected]> wrote: > I get the following errors when I try to execute the HelloWorld EJB > example from the following link. > > > > Everything was completed as instructed, it compiled without error and > deployed without error. > > > > When trying to run the client I get this: > > > > C:\Data\Projects>java -cp > javaee-api-5.0-1.jar;c:\data\projects;C:\openejb-3.1\lib\openejb-client- > 3.1.jar org.acme.HelloClient > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/ejb/EJBHome > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Unknown Source) > > at com.sun.naming.internal.VersionHelper12.loadClass(Unknown > Source) > > at javax.naming.spi.NamingManager.getInitialContext(Unknown > Source) > > at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) > > at javax.naming.InitialContext.init(Unknown Source) > > at javax.naming.InitialContext.<init>(Unknown Source) > > at org.acme.HelloClient.main(HelloClient.java:11) > > Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBHome > > at java.net.URLClassLoader$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > ... 8 more > > > > Any insight? > > > > javax.ejb.EJBHome isn't even referenced in any of the tutorial files. > > > > Robert Reese > > Operational Excellence > > Applications Developer > > 817-619-8464 > > > > > >
