users@glassfish.java.net

Re: JMS remote client

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Dec 2007 08:56:41 PST

Thanks for your reply siva.

I've been working on this for days now and I'm getting extremely frustrated. I can get my app running in a unit test, I can get spring to initialize in a unit test but when I try to setup my webapp it fails:



These are the jars I'm including from glassfish v2 b58
lib/appserv-rt.jar
lib/appserv-admin.jar
lib/appserv-deployment-client.jar
lib/appserv-ext.jar
lib/j2ee.jar
lib/install/applications/jmsra/imqjmsra.jar


spring config
  <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
    <property name="environment">
      <props>
        <prop key="java.naming.factory.initial">com.sun.enterprise.naming.SerialInitContextFactory</prop>
        <prop key="java.naming.factory.state">com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl</prop>
        <prop key="java.naming.factory.url.pkgs">com.sun.enterprise.naming</prop>
        <prop key="org.omg.CORBA.ORBInitialHost">ourHost</prop>
        <prop key="org.omg.CORBA.ORBInitialPort">3700</prop>
        <prop key="java.naming.provider.url">iiop://localhost</prop>
      </props>
    </property>
  </bean>


I tomcat 6.0.14 i get the following error if i put the libs in tomcat's lib dir:
LifecycleException: PWC2102: No UserDatabase component found under key UserDatabase
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:286)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1226)


in tomcat or resin, if I put the libs in my webapps WEB-INF/lib I get this error, This looks like an authentication error, why is it using ssl?
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.enterprise.security.SSLUtils
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.<init>(IIOPSSLSocketFactory.java:182)
        at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.sun.corba.ee.impl.orb.ParserTable$4.operate(ParserTable.java:696)
        at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:58)
        at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:81)
        at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:81)
        at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:481)
        at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:587)
        at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:701)
        at org.omg.CORBA.ORB.init(ORB.java:337)
        at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:546)
        at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
        at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:180)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:105)


in resin 3.0.25 I get the following error if I put the libs in resins lib dir:
java.lang.NoClassDefFoundError: Could not initialize class com.sun.enterprise.naming.SerialInitContextFactory
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:105)
        at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:83)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
        at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)

Have I missed something? Is there another jar I need? The sslUtils is in the appserv-rt.jar.


Thanks in advance.
[Message sent by forum member 'mfortin' (mfortin)]

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