users@glassfish.java.net

Very strange classpath issue

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Jan 2009 12:14:11 PST

I have an ear which we have converted from weblogic to SUN Glassfish.

When we run the verifier its passes. But we are getting this very strange error:

[#|2009-01-15T15:07:33.883-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=72;_ThreadName=Thread-6913;_RequestID=5664698c-0041
-4497-81cf-a5755df2ef26;|Exception occured in J2EEC Phasejava.lang.NoClassDefFoundError: javax/ejb/SessionBean
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [claimservice] -- javax/ejb/SessionBean
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.NoClassDefFoundError: javax/ejb/SessionBean
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(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:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:238)
        at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2058)
        at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734)
        at com.sun.enterprise.deployment.Application.visit(Application.java:1754)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:366)
        ... 11 more
|#]


I have added the javaee.jar in lib/ext and it should be available to all applications. Any help is greatly appreciated. We have been struggling with this for a few days.

Thanks
Rocky
[Message sent by forum member 'rocky1988' (rocky1988)]

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