Lin, That sounds right. You may consider running from OPENEJB_HOME. Run like:
bin\openejb start (Windows) ./bin/openejb start (*nix) Sometimes I've ran into issues when not started in the OPENEJB_HOME. Take care, Jeremy On 9/23/05, lin sun <[EMAIL PROTECTED]> wrote: > > Jeremy, > > Still lost here. Here's what I did. I went to the OPENEJB_HOME/bin > directory and type > "openejb start" to start the server. I didn't give any option since I want > everything > that comes with the default. > > Am I missing something here? > > Thanks, Lin > > --- Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > > > Lin, > > I was talking about the "OPENEJB_HOME/bin/openejb start [options]". That > is > > the startup script that properly sets the classpath and al environment > > variables so that OpenEJB runs properly. Try running it that way and let > me > > know if your problem persists. Take care, Jeremy > > > > On 9/22/05, lin sun <[EMAIL PROTECTED]> wrote: > > > > > > Jeremy, > > > > > > What scripts do you refer here? I am new to openejb and I saw > start.txtfrom > > > openejb_home\bin\start.txt file that I could use "openejb start > [options]" > > > to start the > > > server. > > > > > > Or u refer to the script in the hello world sample below? This didn't > work > > > for me > > > either, since my machine didn't recognize cp.bat. > > > > > > @echo off > > > > > > set OPENEJB_HOME=e:\try\openejb-1.0-20050916\openejb-1.0-20050916 > > > set PATH=%PATH%;%OPENEJB_HOME%\bin > > > set JAVA=%JAVA_HOME%\bin\java > > > > > > set CP= > > > for %%i in (%OPENEJB_HOME%\lib\*.jar) do call cp.bat %%i > > > for %%i in (%OPENEJB_HOME%\dist\*.jar) do call cp.bat %%i > > > for %%i in (%OPENEJB_HOME%\beans\*.jar) do call cp.bat %%i > > > set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CP% > > > > > > %JAVA% %OPTIONS% -Dopenejb.home=%OPENEJB_HOME% org.acme.HelloWorld > > > > > > > > > > > > --- Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > > > > > > > Lin, > > > > Any reason why you aren't running: > > > > > > > > OPENEJB_HOME/bin/openejb start > > > > > > > > You seem to be running this the hard way. You might be messing > something > > > up. > > > > I can't promise that but you obviously have a classpath issue. Can > you > > > try > > > > the scripts? Take care, Jeremy > > > > > > > > On 9/22/05, lin sun <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Jeremy, > > > > > > > > > > Tried 9/20's build: > > > > > > > > > > E:\try\app>c:\j2sdk1.4.2_09\bin\java -cp > > > > > c:\j2sdk1.4.2_09\lib\tools.jar;E:\try\o > > > > > > > > > penejb-1.0-20050916\openejb-1.0-20050916\lib\openejb-core-1.0-20050920.jar > > > > > ;E:\tr > > > > > y\openejb- > > > > > > 1.0-20050916\openejb-1.0-20050916\lib\openejb-loader-1.0-20050920.jar; > > > > > E:\try\openejb- > > > > > 1.0-20050916\openejb-1.0-20050916\beans\openejb-webadmin-clientto > > > > > ols.jar;E:\try\openejb- > > > > > 1.0-20050916\openejb-1.0-20050916\beans\openejb-webadmin- > > > > > ejbgen.jar;E:\try\openejb- > > > > > 1.0-20050916\openejb-1.0-20050916\beans\openejb-webadm > > > > > in-main.jar;. - > > > > > Dopenejb.home=E:\try\openejb-1.0-20050916\openejb-1.0-20050916 or > > > > > g.acme.HelloWorld > > > > > javax.naming.NoInitialContextException: Cannot instantiate class: > > > > > org.openejb.cl <http://org.openejb.cl> <http://org.openejb.cl> < > http://org.openejb.cl> > > > > > ient.RemoteInitialContextFactory [Root exception is > > > > > java.lang.ClassNotFoundExcep > > > > > tion: org.openejb.client.RemoteInitialContextFactory] > > > > > at javax.naming.spi.NamingManager.getInitialContext( > NamingManager.java > > > :6 > > > > > 52) > > > > > at javax.naming.InitialContext.getDefaultInitCtx( > InitialContext.java > > > :243 > > > > > ) > > > > > at javax.naming.InitialContext.init(InitialContext.java:219) > > > > > at javax.naming.InitialContext.<init>(InitialContext.java:195) > > > > > at org.acme.HelloWorld.main(HelloWorld.java:16) > > > > > Caused by: java.lang.ClassNotFoundException: > > > > > org.openejb.client.RemoteInitialCon > > > > > textFactory > > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:187) > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:289) > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:235) > > > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > > > > > at java.lang.Class.forName0(Native Method) > > > > > at java.lang.Class.forName(Class.java:219) > > > > > at com.sun.naming.internal.VersionHelper12.loadClass( > > > VersionHelper12.jav > > > > > a:42) > > > > > at javax.naming.spi.NamingManager.getInitialContext( > NamingManager.java > > > :6 > > > > > 49) > > > > > ... 4 more > > > > > > > > > > Got saw the following error in the openejb.log. Is openejb-jar.xmla > > > new > > > > > req? > > > > > > > > > > WARN : Reading openejb-jar.xml. > > > > > > > > > > org.openejb.OpenEJBException: Cannot find the openejb-jar.xml in > > > > > E:\try\openejb-1.0-20050920\openejb-1.0-20050920\beans\myejb.jar. > > > > > > > > > > at org.openejb.alt.config.Unmarshaller.unmarshalFromJar( > > > Unmarshaller.java > > > > > :101) > > > > > > > > > > at org.openejb.alt.config.Unmarshaller.unmarshal(Unmarshaller.java > :90) > > > > > > > > > > at org.openejb.alt.config.Unmarshaller.unmarshal(Unmarshaller.java > :82) > > > > > > > > > > at org.openejb.alt.config.EjbJarUtils.readOpenEjbJar( > EjbJarUtils.java > > > :112) > > > > > > > > > > at org.openejb.alt.config.EjbJarUtils.<init>(EjbJarUtils.java:97) > > > > > > > > > > at > > > > > org.openejb.alt.config.ConfigurationFactory.loadDeployments( > > > > > ConfigurationFactory.java:1209) > > > > > > > > > > at > > > > > > org.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration( > > > > > ConfigurationFactory.java:201) > > > > > > > > > > at org.openejb.alt.assembler.classic.Assembler.init(Assembler.java > > > :132) > > > > > > > > > > at org.openejb.OpenEJB.init(OpenEJB.java:236) > > > > > > > > > > at org.openejb.server.Server.init(Server.java:89) > > > > > > > > > > at org.openejb.server.Main.initServer(Main.java:220) > > > > > > > > > > at org.openejb.server.Main.main(Main.java:73) > > > > > > > > > > I will zip up the openejb directory and send it to you in a > seperate > > > note. > > > > > > > > > > thanks, lin > > > > > > > > > > --- Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Lin, > > > > > > Can you try the 9/20 build, or the latest one? I know we've > worked > > > on > > > > > this a > > > > > > lot since 9/16. New features are better Windows support, Castor > > > upgrade > > > > > and > > > > > > other bugs. Please let me know if I can do anything else. Also, > as > > > far > > > > > as a > > > > > > .zip of your EJB's source, please zip it and email it to me > > > personally. > > > > > Take > > > > > > care, Jeremy > > > > > > > > > > > > On 9/21/05, lin sun <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Jeremy, > > > > > > > > > > > > > > I am using 9/16's build, sun JDK 1.4.2_09, windows XP pro. > > > > > > > > > > > > > > Sure I can zip it up if you have a site for me to load the > files. > > > > > > > > > > > > > > I noticed that I have "Service webadmin.properties failed to > load" > > > > > error > > > > > > > in the > > > > > > > log...would that prevent things from working? > > > > > > > > > > > > > > Thanks, Lin > > > > > > > > > > > > > > --- Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > Lin, > > > > > > > > I am unable to replicate this issue. I will look into it but > > > maybe > > > > > David > > > > > > > > will have a better assessment. Let me ask you a few > questions: > > > > > > > > > > > > > > > > When did you install OpenEJB? We've made a lot of changes in > the > > > > > past > > > > > > > few > > > > > > > > weeks to fix issues. > > > > > > > > What environment? (JDK, OS) > > > > > > > > Is there anyway you can zip up the EJB so I can see it? > > > > > > > > > > > > > > > > Take care, > > > > > > > > Jeremy > > > > > > > > > > > > > > > > On 9/21/05, lin sun <[EMAIL PROTECTED]> wrote: > > > === message truncated === > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > -- Take care, Jeremy
