hi,
when trying to run the ProductClient from the ejb examples with the
following command
line:
java
-Djava.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFacto
ry -Djava.naming.provider.url=ormi://hostname
-Djava.naming.security.principal=admin
-Djava.naming.security.credentials=123 ProductClient
it fails with:
Exception in thread "main" java.lang.NullPointerException
at
com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(Compiled
Code)
at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
at javax.naming.InitialContext.<init>(Compiled Code)
at javax.naming.InitialContext.<init>(Compiled Code)
at ProductClient.main(Compiled Code)
hostname is the same as configured in rmi.xml:
<rmi-server host="hostname">
the server starts properly, beans are auto-deployed, product table is
auto-created and
ProductServlet (running in the same vm as the server) seems to work.
what am i doing wrong ??
Jochen Strunk