[PJUG Javamail] naming (init context) problem accessing EJBs on JBoss from glassfish - need help ASAP

Michael Phoenix michaelandrewphoenix at gmail.com
Tue May 26 14:06:17 EDT 2009


I'm using a proprietary API to access EJBs on a jboss server. It works
fine when I do it from a command line application on a host in our
LAN, but when I access the same exact method from a Spring Web app
running on Glassvish V2, I get what looks like a naming problem.
Here's the pertinent part of the stack trace:

2009-05-26 08:48:40,604  INFO
(org.springframework.web.servlet.DispatcherServlet:250) -
FrameworkServlet 'dispatch': initialization completed in 125 ms
javax.naming.CommunicationException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is:
        java.net.MalformedURLException: no protocol: and]
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.attask.api.APISupport.getAPI(APISupport.java:46)
        at com.lingosys.burnside.api.NameConverter.go(NameConverter.java:50)
        at com.lingosys.burnsideweb.DispatchController.actionName(DispatchController.java:23


And here's the call to the lookup that's dying:
Object obj = __iniCtx.lookup(APIHome.JNDI_NAME);


More information about the Javamail mailing list