When using the ejb/cart application, I am unable to connect to the CartEJB
from the client. There are two scenarios:
1. Using the code provided in the distribution, the CartClient has the line
Context context = new InitialContext();
When I use this I get an error on the server like:
Auto-deploying cart... done.
Orion/0.9.1c initialized
java.lang.NullPointerException
at au.run(JAX)
at c.run(JAX)
The client hangs at this point.
2. If I replace the InitialContext lookup code with:
Properties props = new Properties();
props.put("java.naming.provider.url","ormi://localhost");
props.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialC
ontextFactory");
props.put("java.naming.security.principal","admin");
props.put("java.naming.security.credentials","123");
Context context = new InitialContext(props);
Then try to do a lookup of the Cart EJB using:
Object homeObject = context.lookup("java:comp/env/MyCart");
I get an error in the client like:
Communication error: java:comp/env/MyCart not found
Can anyone offer suggestions as to why communcation is not happening. Maybe
the beans are not being registered in the JNDI system correctly upon
deployment? I have other ejbs that used to work in 8.3 but are exhibiting
the same communcation errors.
Thanks in advance,
Mike Fontenot
PS. I have gotten the news appication packaged in the ear file to operate
so....
========================================
Mike Fontenot - Object Systems Architect
Polygon Network, Inc.
Golden, Colorado
========================================