users@glassfish.java.net

Interop again: Minimal appserver jars to be used in foreign app server

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Jan 2008 02:40:35 PST

Hi again,

i got another question which i hope someone here can answer me. I was trying to use a glassfish instance as a foreign JNDI provider in a Bea Weblogic 10. For this i had to define the context factory to be used in the Bea console and also provide the corresponding jar files in the Weblogic's classpath. The context factory class i use is "com.sun.enterprise.naming.SerialInitContextFactory" which requires appsrv-rt.jar and appsrv-admin.jar to be added to the classpath. But this combination causes some kind of conflict between the application server classes of glassfish and weblogic since those jars contain a LOT of appserver sepcific classes and thus can cause many unpredictable side effects. To be sure i tried to lookup the resource anyways and got a "NoSuchMethodError" (i had this before with that setup so it was to be expected).

Is there some kind of client jar file or a stripped down version of the appserver jars that can be used in another application server without interferring with it's own classes? Or does anyone know another work around for this?

Thanks, Chris
[Message sent by forum member 'candlejack' (candlejack)]

http://forums.java.net/jive/thread.jspa?messageID=253371