ejb@glassfish.java.net

Re: Fwd: follow-up question about remote EJB

From: Ing. Walter Minchez <walter.minchez_at_gmail.com>
Date: Fri, 8 Feb 2008 15:06:07 -0600

Hi, thanks for the answer....

I have checked the forum before, and the only thread about is:
 Thread: accessing ejb3.0 hosted by glassfish from sun java system Web
server 7

but it's the same error and doesn't have a solution. I need to make it this
way, servlet in web server and ejb in glassfish, and can't use Tomcat....
this is because of requirements for the application, I can't change it.

I tried with the CosNaming format too, but no luck. I'll appreciate any help
you can give me.





On Feb 8, 2008 2:17 PM, Cheng Fang <Cheng.Fang_at_sun.com> wrote:

> Please see inline comments.
>
> Ing. Walter Minchez wrote:
>
>
>
> ---------- Forwarded message ----------
> From: Ing. Walter Minchez <walter.minchez_at_gmail.com>
> Date: Feb 6, 2008 11:03 AM
> Subject: follow-up question about remote EJB
> To: ejb_at_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.
>
>
>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net For additional
> commands, e-mail: ejb-help_at_glassfish.dev.java.net