[PJUG Javamail] naming (init context) problem accessing EJBs on JBoss from glassfish - need help ASAP
Michael Phoenix
michaelandrewphoenix at gmail.com
Mon Jun 1 18:51:33 EDT 2009
Ok, I finally figured it out Friday. Apparently the rmi/jndi libraries
have a problem with any pathnames that contain spaces. I moved all my
global libraries to a folder without spaces in the pathname as
detailed below, but the problem wasn't totally alleviated until a
moved the glassfish installation to a folder without spaces. It makes
sense when you consider that your project is dependent on libraries in
glassfish.
On Thu, May 28, 2009 at 12:24 AM, Michael Phoenix
<michaelandrewphoenix at gmail.com> wrote:
> 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