I'm trying to follow the example at
http://openejb.apache.org/hello-world.html on windows XP using cmd.exe or
cygwin bash.
Here are my results:
javac -g *.java -d .
jar cvf hello.jar org
adding: META-INF/ (in=0) (out=0) (stored 0%)
adding: META-INF/MANIFEST.MF (in=56) (out=56) (stored 0%)
adding: org/ (in=0) (out=0) (stored 0%)
adding: org/acme/ (in=0) (out=0) (stored 0%)
adding: org/acme/Hello.class (in=203) (out=168) (deflated 17%)
adding: org/acme/HelloBean.class (in=470) (out=308) (deflated 34%)
adding: org/acme/HelloClient.class (in=1481) (out=797) (deflated 46%)
Total:
------
(in = 2198) (out = 2095) (deflated 4%)
/usr/bin/find . -name \*.jar
./hello.jar
C:\temp\temp\download\openejb.apache.org_ejb3-tutorial\standalone-server\ope
nejb-3.1\openejb-3.1/bin/openejb deploy hello.jar
Directory does not exist:
C:\temp\temp\download\openejb.apache.org_ejb3-tutorial\standalone-server\ope
nejb-3.1\openejb-3.1\apps
Unable to copy application to
"C:\temp\temp\download\openejb.apache.org_ejb3-tutorial\standalone-server\op
enejb-3.1\openejb-3.1\apps\hello.jar". Check that the directory is writable
and that there is enough disk space.
Exception in thread "main" javax.naming.NameNotFoundException:
/HelloBeanRemote does not exist in the system. Check that the app was
successfully deployed.
at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:276)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.acme.HelloClient.main(HelloClient.java:19)