This worked fine for me. Thanks!
I was able to see "DEBUG: STATELESS Hello" in
the openejb.log.
But I still cannot run the HelloWorld client
successfully... kept getting the following after I
made sure I've included the
openejb-core-1.0-20050916.jar to the classpath.
javax.naming.NoInitialContextException: Cannot
instantiate class: org.openejb.cl
ient.RemoteInitialContextFactory [Root exception is
java.lang.ClassNotFoundExcep
tion: org.openejb.client.RemoteInitialContextFactory]
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.HelloWorld.main(HelloWorld.java:16)
Caused by: java.lang.ClassNotFoundException:
org.openejb.client.RemoteInitialCon
textFactory
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.sun.naming.internal.VersionHelper12.loadClass(Unknown
Source)
... 5 more
--- David Blevins <[EMAIL PROTECTED]> wrote:
> Hi Lin,
>
> That's a hard bug to keep out of the system.
> Basically the windows
> VM holds a lock on the files when they are accessed
> by a classloader
> and they become un-removable while the VM is still
> running.
>
> Try just copying for now and we'll see if we can't
> re-fix that code.
> The command for copying is:
>
>
>
E:\try\openejb-1.0-20050916\openejb-1.0-20050916\bin>openejb
>
> deploy -a -c -f \try\app\myejb.jar
>
> Please let us know how that goes (it's nice for
> people reading the
> archives).
>
> Thanks,
> David
>
> On Sep 19, 2005, at 1:15 PM, lin sun wrote:
>
> > Tried the 09/16's build...was able to pass the
> > original error, but got "cannot move jar...make
> sure
> > jar is not used by another program" error. I
> know it
> > is not, since I can delete the jar file fine.
> >
> >
>
E:\try\openejb-1.0-20050916\openejb-1.0-20050916\bin>openejb
> > deploy -a -m -f \tr
> > y\app\myejb.jar
> > OpenEJB Deploy Tool 1.0-20050916 build:
> > 20050916-2036
> > http://www.openejb.org
> >
> > This jar contains the following beans:
> > Hello
> >
> >
> >
>
-----------------------------------------------------------
> > Deploying bean: Hello
> >
>
-----------------------------------------------------------
> >
> > ==--- Step 1 ---==
> >
> > Auto assigning the ejb-name as the deployment id
> for
> > this bean.
> >
> > Deployment ID: Hello
> > ==--- Step 2 ---==
> >
> > Auto assigning the container the bean will run in.
> >
> > Container: Default Stateless Container
> >
> > ERROR in \try\app\myejb.jar
> > Deploy option -m. Could not move jar
> > E:\try\app\myejb.jar to E:\try\openejb-1.0
> > -20050916\openejb-1.0-20050916\beans\myejb.jar.
> Make
> > sure the jar is not open i
> > n another program.
> >
> > --- Marco Mistroni <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Hello,
> >> there's a message that Mr David Blevin just
> posted
> >> when i raised same
> >> problem
> >> here's the answer
> >> Marco,
> >>
> >> I've put up an unstable (i.e. non-official) build
> of
> >> 1.0 containing
> >> Jeremy's fix.
> >>
> >> Download here:
> >> http://openejb.org/unstable/v1.0-20050916/
> >>
> >> Or just change the openejb version number in your
> >> project.xml from
> >> 1.0-beta1 to 1.0-20050916 and maven should
> download
> >> it
> >> automatically. We'll leave that build up till the
> >> next official
> >> release comes out, then it will disappear.
> >>
> >> Let us know how it goes.
> >>
> >> regards
> >> marco
> >>
> >> On 9/19/05, lin sun <[EMAIL PROTECTED]>
> wrote:
> >>
> >>>
> >>> I followed the Hello World EJB sample and was
> able
> >>>
> >> to
> >>
> >>> compile the java files and start the openejb
> >>>
> >> server.
> >>
> >>> However, whenever I tried to deploy the
> >>>
> >> myHelloEjb.jar
> >>
> >>> file, I hit the following error:
> >>>
> >>>
> >>>
> >>
> >>
> >
>
E:\try\openejb-1.0-beta1\openejb-1.0-beta1\bin>openejb
> >
> >>> deploy -a -m \try\app\myHelloEjb.jar
> >>> OpenEJB Deploy Tool 1.0-beta1 build:
> 20050829-2233
> >>> http://www.openejb.org
> >>>
> >>>
> >>> ERROR in \try\app\myHelloEjb.jar
> >>> Cannot find the ejb-jar.xml in
> >>> \try\app\myHelloEjb.jar.
> >>>
> >>> But I know I had ejb-jar.xml in the
> myHelloEjb.jar
> >>> file--see below. Please help!
> >>>
> >>> E:\try\app>jar cvf myHelloEjb.jar org META-INF
> >>> added manifest
> >>> adding: org/(in = 0) (out= 0)(stored 0%)
> >>> adding: org/acme/(in = 0) (out= 0)(stored 0%)
> >>> adding: org/acme/HelloBean.class(in = 753) (out=
> >>> 393)(deflated 47%)
> >>> adding: org/acme/HelloBean.java(in = 524) (out=
> >>> 225)(deflated 57%)
> >>> adding: org/acme/HelloHome.class(in = 263) (out=
> >>> 188)(deflated 28%)
> >>> adding: org/acme/HelloHome.java(in = 204) (out=
> >>> 142)(deflated 30%)
> >>> adding: org/acme/HelloObject.class(in = 234)
> (out=
> >>> 177)(deflated 24%)
> >>> adding: org/acme/HelloObject.java(in = 188)
> (out=
> >>> 136)(deflated 27%)
> >>> ignoring entry META-INF/
> >>> adding: META-INF/ejb-jar.xml(in = 930) (out=
> >>> 389)(deflated 58%)
> >>>
> >>>
> >>>
> >>> thanks,
> >>>
> >>> Lin
> >>>
> >>>
> >>>
> >>> __________________________________
> >>> Yahoo! Mail - PC Magazine Editors' Choice 2005
> >>> http://mail.yahoo.com
> >>>
> >>>
> >>
> >>
> >
> >
> > thanks,
> >
> > Lin
> >
> >
> >
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> >
> >
>
>
thanks,
Lin
______________________________________________________
Yahoo! for Good
Donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/