I am trying to use an J2EE component as a client.
Everything works just fine - as long as I run the client on the same machine
as the server.
When I try to run the client on another machine using:
java -classpath $CLASSPATH \
com.evermind.client.applicationlauncher.ApplicationLauncher \
ormi://192.9.200.105/ProTestAntTester/protestanttester-client.jar \
admin 123
I get the following exception:
javax.naming.NamingException: java:comp/env namespace is only available from
within a J2EE component
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at javax.naming.NamingException.<init>(NamingException.java:103)
at
com.sun.enterprise.naming.java.javaURLContext.getComponentContext(javaURLContext.java:392)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:51)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
[...]
Why doesn't Orion recognize that my client is indeed a J2EE-client? If I
forgot something in - let's say - the DDs, why does the client work on the
server?
Hope someone can help me out here ...
Armin