users@glassfish.java.net

Unable to lookup JMS Objects through JNDI

From: <glassfish_at_javadesktop.org>
Date: Mon, 27 Aug 2007 13:05:24 PDT

Hi Geeks

I am trying to access JMS objects from Glassfish (from the latest OpenESB download) and I get a No Class Def Found Error. A lookup of the root context or the MEJB works fine.

Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/modules/schema2beans/BaseBean
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:662)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:287)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:361)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:662)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:287)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:361)
        at com.sun.enterprise.connectors.ConnectorAdminServicesFactory.getService(ConnectorAdminServicesFactory.java:66)
        at com.sun.enterprise.connectors.ConnectorRuntime.<init>(ConnectorRuntime.java:107)
        at com.sun.enterprise.connectors.ConnectorRuntime.<clinit>(ConnectorRuntime.java:88)
        at com.sun.enterprise.naming.factory.ConnectorObjectFactory.<init>(ConnectorObjectFactory.java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:506)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.naming.spi.NamingManager.getObjectFactoryFromReference(NamingManager.java:146)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:302)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:344)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at SimpleTest.main(SimpleTest.java:31)

This is the Glassfish instance:

Name: localhost
HTTP Port(s): 4848,8881,8880
IIOP Port(s): 3820,3700,3920
JVM: JVM Report
Configuration Directory: /Java/glassfish-v2-b58a/domains/domain1/config
Installed Version: Sun Java System Application Server 9.1 (build b58a-rc2)
Debug: Not Enabled

I am running the server on Mac OS X 10.4 but I ran into the same issue with Windows XP.

Thank you - Andy
[Message sent by forum member 'schaefa' (schaefa)]

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