0 Replies Latest reply on Dec 3, 2010 2:27 PM by kris kris

    BaseClass Loader Exception

    kris kris Newbie
      Hi i have two @Stateless Beans in my project.
      When ever i put the ear and start the server, everything is fine.
      But when i access asynchronous method inside one of the stateless bean,
      i am getting this ClassLoader exception.
      However when i do a hot deploy, the code is working fine.
      Can anyone suggest what might have gone wrong.
      I am using EJB 3.0,seam2.2.GA and JBoss 5 application server.
      ***********************************************************
      14:16:53,892 ERROR [JobRunShell] Job DEFAULT.291ec417:12ca87a0fbf:-7e58 threw an unhandled Exception:

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: asynchProcessor

            at org.jboss.seam.Component.newInstance(Component.java:2106)

            at org.jboss.seam.Component.getInstance(Component.java:1988)

            at org.jboss.seam.Component.getInstance(Component.java:1950)

            at org.jboss.seam.Component.getInstance(Component.java:1944)

            at org.jboss.seam.Component.getInstance(Component.java:1939)

            at org.jboss.seam.async.AsynchronousInvocation$2.process(AsynchronousInvocation.java:83)

            at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)

            at org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:78)

            at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:247)

            at org.quartz.core.JobRunShell.run(JobRunShell.java:203)

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@19348a4{vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/}]

            at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

            at javax.naming.InitialContext.lookup(InitialContext.java:392)

            at org.jboss.seam.Component.instantiateSessionBean(Component.java:1367)

            at org.jboss.seam.Component.instantiate(Component.java:1331)

            at org.jboss.seam.Component.newInstance(Component.java:2084)

            ... 10 more

      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@19348a4{vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/}

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:410)

            at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)

            at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)

            at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

            at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)

            at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)

            ... 16 more

      Caused by: java.lang.ClassNotFoundException: com.verizon.apps.veritest.interfaces.AsycnhronousProcessor from BaseClassLoader@19348a4{VFSClassLoaderPolicy@86486b{name=vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/ domain=ClassLoaderDomain@102c002{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@8bdcd2} roots=[MemoryContextHandler@33323125[path= context=vfsmemory://36i3v5u-t469np-gh80nenf-1-gh80oxg9-2j real=vfsmemory://36i3v5u-t469np-gh80nenf-1-gh80oxg9-2j], DelegatingHandler@4737623[path=quartz-ra.rar context=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/ real=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar], DelegatingHandler@576055[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/ real=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/quartz-ra.jar]]  delegates=null exported=[org.jboss.resource.adapter.quartz.inflow, META-INF] <IMPORT-ALL>NON_EMPTY}}

            at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

            at java.lang.Class.forName0(Native Method)

            at java.lang.Class.forName(Class.java:247)

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:406)

            ... 22 more

      14:16:53,907 ERROR [ErrorLogger] Job (DEFAULT.291ec417:12ca87a0fbf:-7e58 threw an exception.

      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: asynchProcessor]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:214)

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      * Nested Exception (Underlying Cause) ---------------

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: asynchProcessor

            at org.jboss.seam.Component.newInstance(Component.java:2106)

            at org.jboss.seam.Component.getInstance(Component.java:1988)

            at org.jboss.seam.Component.getInstance(Component.java:1950)

            at org.jboss.seam.Component.getInstance(Component.java:1944)

            at org.jboss.seam.Component.getInstance(Component.java:1939)

            at org.jboss.seam.async.AsynchronousInvocation$2.process(AsynchronousInvocation.java:83)

            at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)

            at org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:78)

            at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:247)

            at org.quartz.core.JobRunShell.run(JobRunShell.java:203)

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@19348a4{vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/}]

            at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

            at javax.naming.InitialContext.lookup(InitialContext.java:392)

            at org.jboss.seam.Component.instantiateSessionBean(Component.java:1367)

            at org.jboss.seam.Component.instantiate(Component.java:1331)

            at org.jboss.seam.Component.newInstance(Component.java:2084)

            ... 10 more

      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@19348a4{vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/}

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:410)

            at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)

            at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)

            at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

            at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)

            at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)

            ... 16 more

      Caused by: java.lang.ClassNotFoundException: com.verizon.apps.veritest.interfaces.AsycnhronousProcessor from BaseClassLoader@19348a4{VFSClassLoaderPolicy@86486b{name=vfszip:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/ domain=ClassLoaderDomain@102c002{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@8bdcd2} roots=[MemoryContextHandler@33323125[path= context=vfsmemory://36i3v5u-t469np-gh80nenf-1-gh80oxg9-2j real=vfsmemory://36i3v5u-t469np-gh80nenf-1-gh80oxg9-2j], DelegatingHandler@4737623[path=quartz-ra.rar context=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/ real=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar], DelegatingHandler@576055[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/ real=file:/C:/JavaTools/EnterprisePlatform-5.0.1-dev/jboss-as/server/production/deploy/quartz-ra.rar/quartz-ra.jar]]  delegates=null exported=[org.jboss.resource.adapter.quartz.inflow, META-INF] <IMPORT-ALL>NON_EMPTY}}

            at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

            at java.lang.Class.forName0(Native Method)

            at java.lang.Class.forName(Class.java:247)

            at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:406)

            ... 22 more