[PJUG Javamail] naming (init context) problem accessing EJBs on JBoss from glassfish - need help ASAP
Michael Phoenix
michaelandrewphoenix at gmail.com
Thu May 28 01:24:20 EDT 2009
OK, I moved everything to another folder, apparently having libraries
in folders with spaces in names on windows causes problem, but I still
get a similar message except after
ava.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: and]
instead of and] I get
files/glassfishv2.1/domains/domain1/generated/ejb/j2ee-modules/BurnsideWeb
Sure could use some help here.
On Tue, May 26, 2009 at 1:06 PM, Michael Phoenix
<michaelandrewphoenix at gmail.com> wrote:
> 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