ejb@glassfish.java.net

Re: Fwd: follow-up question about remote EJB

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Fri, 08 Feb 2008 15:17:35 -0500
Please see inline comments.

Ing. Walter Minchez wrote:


---------- Forwarded message ----------
From: Ing. Walter Minchez <walter.minchez@gmail.com>
Date: Feb 6, 2008 11:03 AM
Subject: follow-up question about remote EJB
To: ejb@glassfish.dev.java.net


Hi, I have a question and hope you can help me.
 
I'm trying to acces an EJB 3.0 deployed in Glassfish V2, according to the steps in:
How do I access a Remote EJB (3.0 or 2.x) from a non-Java EE web container like Tomcat or Resin?
 
Those steps work perfectly for Tomcat 5.5.17, I followed the steps and they communicate, a servlet and the ejb.
But I need to use that code with Sun Java System Web Server 7.0u1.
Using the same code, it doesn't work. It throws this exception:
It's mostly likely a configuration issue, like where to copy appserv-rt.jar and the like to Tomcat or SJSWS.  But since you are already using Sun web server + glassfish, why not let glassfish service servlet requests, and use SJSWS just for static content?  This way you won't have to fight with this cross-container battle.

You may also want to search glassfish user forum where there are many similar questions, and also Glassfish EJB FAQ.

-cheng
 
java.lang.ExceptionInInitializerError
 at com.sun.enterprise.naming.SerialInitContextFactory.<clinit>(SerialInitContextFactory.java:65)
...
...
Caused by: java.lang.IllegalArgumentException: com.sun.webserver.logging.enterprise.system.util.LogStrings != com.sun.logging.enterprise.system.util.LogStrings
 at java.util.logging.Logger.getLogger(Logger.java:308)
 at com.sun.logging.LogDomains.getLogger(LogDomains.java:240)
 at com.sun.enterprise.util.ORBManager.<clinit>(ORBManager.java:93)
 
There is a difference in the configuration, the SJSWS doesn't let load the javaee.jar because "Offends Servlet.class"...
 
Do you know what could it be the reason for the exception? Is it for the javaee.jar?  
I will thank you any help with this. I've tried with the SJSWS forum but no luck.