10 Replies Latest reply on Dec 11, 2008 5:22 PM by Diego Coronel

    Quartz + EJB3 + Seam + JBoss AS5 problem

    Diego Coronel Apprentice

      Hi,

      Im with problems using quartz with AS5, it works fine in jboss 4.2.2,

      2008-12-11 09:59:00,125 ERROR [org.quartz.core.JobRunShell] (DefaultQuartzScheduler_Worker-5) Job DEFAULT.-1c2ea98c:11e265541ec:-7ff8 threw an unhandled Exception:
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: interfaceamentoLeituraArquivo
      at org.jboss.seam.Component.newInstance(Component.java:2105)
      at org.jboss.seam.Component.getInstance(Component.java:1987)
      at org.jboss.seam.Component.getInstance(Component.java:1949)
      at org.jboss.seam.Component.getInstance(Component.java:1943)
      at org.jboss.seam.Component.getInstance(Component.java:1938)
      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@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}]
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1463)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1366)
      at org.jboss.seam.Component.instantiate(Component.java:1330)
      at org.jboss.seam.Component.newInstance(Component.java:2083)
      ... 10 more
      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:341)
      at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
      at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:156)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1438)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1455)
      ... 16 more
      Caused by: java.lang.ClassNotFoundException: br.fpf.laboratorio.framework.interfaceamento.IInterfaceamentoLeituraArquivo from BaseClassLoader@d7ab9d{VFSClassLoaderPolicy@143fcf5{name=vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar domain=ClassLoaderDomain@1779885{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@10b4b2f} roots=[MemoryContextHandler@9727696[path= context=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u real=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u], DelegatingHandler@16208487[path=quartz-ra.rar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@21172926[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/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:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:337)
      ... 22 more
      2008-12-11 09:59:00,128 ERROR [org.quartz.core.ErrorLogger] (DefaultQuartzScheduler_Worker-5) Job (DEFAULT.-1c2ea98c:11e265541ec:-7ff8 threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: interfaceamentoLeituraArquivo]
      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: interfaceamentoLeituraArquivo
      at org.jboss.seam.Component.newInstance(Component.java:2105)
      at org.jboss.seam.Component.getInstance(Component.java:1987)
      at org.jboss.seam.Component.getInstance(Component.java:1949)
      at org.jboss.seam.Component.getInstance(Component.java:1943)
      at org.jboss.seam.Component.getInstance(Component.java:1938)
      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@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}]
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1463)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1366)
      at org.jboss.seam.Component.instantiate(Component.java:1330)
      at org.jboss.seam.Component.newInstance(Component.java:2083)
      ... 10 more
      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:341)
      at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
      at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:156)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1438)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1455)
      ... 16 more
      Caused by: java.lang.ClassNotFoundException: br.fpf.laboratorio.framework.interfaceamento.IInterfaceamentoLeituraArquivo from BaseClassLoader@d7ab9d{VFSClassLoaderPolicy@143fcf5{name=vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar domain=ClassLoaderDomain@1779885{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@10b4b2f} roots=[MemoryContextHandler@9727696[path= context=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u real=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u], DelegatingHandler@16208487[path=quartz-ra.rar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@21172926[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/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:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:337)
      ... 22 more
      2008-12-11 09:59:13,690 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - first pass <Qui, 11 Dez 2008 09:59:13>
      2008-12-11 09:59:13,690 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) StatusModule: first pass
      2008-12-11 09:59:13,690 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
      2008-12-11 09:59:13,690 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
      2008-12-11 09:59:23,692 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - second pass <Qui, 11 Dez 2008 09:59:23>
      2008-12-11 09:59:23,692 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) AtomicActionRecoveryModule: Second pass
      2008-12-11 09:59:23,692 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
      2008-12-11 09:59:23,692 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
      2008-12-11 10:00:00,021 ERROR [org.quartz.core.JobRunShell] (DefaultQuartzScheduler_Worker-5) Job DEFAULT.-1c2ea98c:11e265541ec:-7ff8 threw an unhandled Exception:
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: interfaceamentoLeituraArquivo
      at org.jboss.seam.Component.newInstance(Component.java:2105)
      at org.jboss.seam.Component.getInstance(Component.java:1987)
      at org.jboss.seam.Component.getInstance(Component.java:1949)
      at org.jboss.seam.Component.getInstance(Component.java:1943)
      at org.jboss.seam.Component.getInstance(Component.java:1938)
      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@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}]
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1463)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1366)
      at org.jboss.seam.Component.instantiate(Component.java:1330)
      at org.jboss.seam.Component.newInstance(Component.java:2083)
      ... 10 more
      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:341)
      at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
      at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:156)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1438)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1455)
      ... 16 more
      Caused by: java.lang.ClassNotFoundException: br.fpf.laboratorio.framework.interfaceamento.IInterfaceamentoLeituraArquivo from BaseClassLoader@d7ab9d{VFSClassLoaderPolicy@143fcf5{name=vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar domain=ClassLoaderDomain@1779885{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@10b4b2f} roots=[MemoryContextHandler@9727696[path= context=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u real=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u], DelegatingHandler@16208487[path=quartz-ra.rar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@21172926[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/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:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:337)
      ... 22 more
      2008-12-11 10:00:00,101 ERROR [org.quartz.core.ErrorLogger] (DefaultQuartzScheduler_Worker-5) Job (DEFAULT.-1c2ea98c:11e265541ec:-7ff8 threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: interfaceamentoLeituraArquivo]
      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: interfaceamentoLeituraArquivo
      at org.jboss.seam.Component.newInstance(Component.java:2105)
      at org.jboss.seam.Component.getInstance(Component.java:1987)
      at org.jboss.seam.Component.getInstance(Component.java:1949)
      at org.jboss.seam.Component.getInstance(Component.java:1943)
      at org.jboss.seam.Component.getInstance(Component.java:1938)
      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@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}]
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1463)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1366)
      at org.jboss.seam.Component.instantiate(Component.java:1330)
      at org.jboss.seam.Component.newInstance(Component.java:2083)
      ... 10 more
      Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:341)
      at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
      at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:156)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1438)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1455)
      ... 16 more
      Caused by: java.lang.ClassNotFoundException: br.fpf.laboratorio.framework.interfaceamento.IInterfaceamentoLeituraArquivo from BaseClassLoader@d7ab9d{VFSClassLoaderPolicy@143fcf5{name=vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar domain=ClassLoaderDomain@1779885{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@10b4b2f} roots=[MemoryContextHandler@9727696[path= context=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u real=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u], DelegatingHandler@16208487[path=quartz-ra.rar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@21172926[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/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:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:337)
      ... 22 more

        • 1. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
          Andrew Rubinger Master

           

          Caused by: java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader@d7ab9d{vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar}
          at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:341)


          This is a problem.

          Can you provide some context regarding the deployment in question (code + packaging?)

          If possible, an isolated example we can use as a test case would be most appropriate/appreciated.

          S,
          ALR

          • 2. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
            Diego Coronel Apprentice

            hi, sry about isolated example, but i cant do it right now, i was trying jboss AS 5 without my leader permission, i was just curious about new application server, but ill try to provide all information for you.

            My project structure:
            EAR
            JBOSS-SEAM.jar
            LABORATORIO_JAVA.jar
            - Here is the class with quartz
            DOCTOR_WEB.war
            WEB-INF/LIB
            - commons-beanutils-1.7.0
            - commons-digester-1.83
            - coreapi-1.0
            - engineapi-1.0
            - fpf-fckedtor
            - itext-2.0.7
            - jsf-facelets-1.1.14
            - richfaces-api
            - richfaces-impl
            - richfaces-ui
            META-INF
            - application.xml
            - jboss-app.xml
            LIB
            - antlr-runtime-3.0 - SEAM
            - cglib
            - drools-compiler
            - drools-core
            - jaxrs-api
            - jboss-el
            - mvel14
            - poi-3.0.2-FINAL

            and my interface:

            package br.fpf.laboratorio.framework.interfaceamento;
            
            import java.util.Date;
            
            import javax.ejb.Local;
            
            import org.jboss.seam.annotations.AutoCreate;
            import org.jboss.seam.annotations.Transactional;
            import org.jboss.seam.annotations.async.Asynchronous;
            import org.jboss.seam.annotations.async.Expiration;
            import org.jboss.seam.annotations.async.IntervalCron;
            
            @Local
            @AutoCreate
            public interface IInterfaceamentoLeituraArquivo {
            
             /**
             * Método executado assincronamente que verifica se existem arquivos ENV a ser consumidos.
             *
             * @param date
             * @param cron
             */
             @Asynchronous
             @Transactional
             public void processCron( @Expiration Date date, @IntervalCron String cron );
            
            }
            


            and my class that implements this interface:

            package br.fpf.laboratorio.framework.interfaceamento;
            
            import java.util.ArrayList;
            import java.util.Date;
            import java.util.HashMap;
            import java.util.HashSet;
            
            import javax.ejb.Stateless;
            import javax.ejb.TransactionAttribute;
            import javax.ejb.TransactionAttributeType;
            
            import org.jboss.seam.annotations.FlushModeType;
            import org.jboss.seam.annotations.In;
            import org.jboss.seam.annotations.Logger;
            import org.jboss.seam.annotations.Name;
            import org.jboss.seam.annotations.async.IntervalCron;
            import org.jboss.seam.core.Conversation;
            import org.jboss.seam.log.Log;
            
            import br.fpf.jdoctor.gerais.entitybean.Pessoa;
            import br.fpf.jdoctor.gerais.facade.ICadastrosGeraisFacade;
            import br.fpf.laboratorio.entitybean.ExameReferenciaHist;
            import br.fpf.laboratorio.entitybean.ExameResultado;
            import br.fpf.laboratorio.entitybean.ExameResultadoImagem;
            import br.fpf.laboratorio.entitybean.ExameResultadoValor;
            import br.fpf.laboratorio.entitybean.ExameStatus;
            import br.fpf.laboratorio.entitybean.TipoMaquina;
            import br.fpf.laboratorio.entitybean.TipoMaquinaUndOrg;
            import br.fpf.laboratorio.framework.dto.ResultadoExameInterfaceamentoPorAmostraDTO;
            import br.fpf.laboratorio.framework.facade.ILaboratorioFacade;
            import br.fpf.laboratorio.framework.util.LeitorArquivoENV;
            
            /**
             * Classe responsável pela importação dos dados dos arquivos ENV.
             *
             * @author renato.ferraz
             */
            @Stateless
            @Name( "interfaceamentoLeituraArquivo" )
            public class InterfaceamentoLeituraArquivo implements IInterfaceamentoLeituraArquivo {
            
             /**
             * Classe responsável pela leitura dos arquivos ENV.
             */
             @In( create = true )
             private LeitorArquivoENV leitorArquivoENV;
            
             /**
             * Fachada que chama as regras de negócio de Laboratório.
             */
             @In( create = true )
             private ILaboratorioFacade laboratorioFacade;
            
             /**
             * Atributo que vai pegar a fachada necessaria para classe.
             */
             @In( create = true )
             private ICadastrosGeraisFacade cadastrosGeraisFacade;
            
             @Logger
             private Log log;
            
             /*
             * (non-Javadoc)
             *
             * @see renato.InterfaceamentoLeituraArquivoHandler#processCron(java.util.Date,
             * java.lang.String)
             */
             @TransactionAttribute( TransactionAttributeType.NOT_SUPPORTED )
             public void processCron( Date date, @IntervalCron String cron ) {
             // this.log.info("Iniciando a importação dos dados dos arquivos ENV.");
            
             // Chamando o método responsável pela importação dos dados para cada uma das máquinas cadastradas.
             for ( TipoMaquina tipoMaquina : this.laboratorioFacade.getAllTipoMaquina() ) {
             for ( TipoMaquinaUndOrg tipoMaquinaUndOrg : tipoMaquina.getTipoMaquinaUndOrgs() ) {
             this.importResults( tipoMaquinaUndOrg );
             }
             }
            
             // this.log.info("A importação dos dados dos arquivos ENV foi concluÃÂda.");
             }
            
             /**
             * Realiza a importação dos resultados da Máquina passada como argumento.
             *
             * @param tipoMaquinaUndOrg
             */
             // @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
             public void importResults( TipoMaquinaUndOrg tipoMaquinaUndOrg ) {
            
             Conversation.instance().changeFlushMode( FlushModeType.MANUAL );
            
             final String maquinaInfo = String.format( "%d (Patrimonio: %s)", tipoMaquinaUndOrg.getIdTipoMaquinaUndOrg(),
             tipoMaquinaUndOrg.getTxNumeroPatrimonio() );
             try {
             // this.log.info("Iniciando a importação dos dados da máquina " + maquinaInfo);
             ArrayList<HashMap<String, ResultadoExameInterfaceamentoPorAmostraDTO>> resultExameMap = new ArrayList<HashMap<String, ResultadoExameInterfaceamentoPorAmostraDTO>>();
             this.leitorArquivoENV.setImportacaoAutomatica( true );
             resultExameMap = this.leitorArquivoENV.lerArquivosENV( tipoMaquinaUndOrg );
            
             for ( int i = 0; i < resultExameMap.size(); i++ ) {
             HashMap<String, ResultadoExameInterfaceamentoPorAmostraDTO> item = resultExameMap.get( i );
            
             for ( String txCodigoAmostra : item.keySet() ) {
             ResultadoExameInterfaceamentoPorAmostraDTO resultadoPorAmostra = item.get( txCodigoAmostra );
             HashMap<String, ExameResultado> hashResultados = resultadoPorAmostra.getResultados();
            
             for ( String txSigla : hashResultados.keySet() ) {
             ExameResultado exameResultado = hashResultados.get( txSigla );
            
             if ( exameResultado.getExameResultadoImagems() == null ) {
             exameResultado.setExameResultadoImagems( new HashSet<ExameResultadoImagem>() );
             }
             if ( exameResultado.getExameReferenciaHists() == null ) {
             exameResultado.setExameReferenciaHists( new HashSet<ExameReferenciaHist>() );
             }
             if ( exameResultado.getExameResultadoValors() == null ) {
             exameResultado.setExameResultadoValors( new HashSet<ExameResultadoValor>() );
             }
             if ( exameResultado.getExameStatuses() == null ) {
             exameResultado.setExameStatuses( new HashSet<ExameStatus>() );
             }
            
             Pessoa pessoa = this.cadastrosGeraisFacade.getPessoaInterfaceamento();
             this.laboratorioFacade.updateExame( exameResultado, pessoa );
             }
            
             }
             }
             this.leitorArquivoENV.deleteFiles();
             // this.log.info("Os dados da máquina " + maquinaInfo + " foram importados com sucesso.");
             } catch ( Exception e ) {
             this.log.error( "Não foi possÃÂvel importar os dados da máquina " + maquinaInfo, e );
             }
            
             }
            
            }
            
            



            • 3. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
              jaikiran pai Master

              Do you by any chance have jboss-seam.jar in more than one place? Maybe in the %JBOSS_HOME%/common/lib or %JBOSS_HOME%/server/< serverName>/lib folder?

              • 4. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
                Diego Coronel Apprentice

                no, there is only 1 jboss-seam.jar

                • 5. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
                  Ales Justin Master

                  I looks like EJB is using the wrong CL to look at Proxy's interfaces:

                  Caused by: java.lang.ClassNotFoundException: br.fpf.laboratorio.framework.interfaceamento.IInterfaceamentoLeituraArquivo from BaseClassLoader@d7ab9d{VFSClassLoaderPolicy@143fcf5{name=vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar domain=ClassLoaderDomain@1779885{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@10b4b2f} roots=[MemoryContextHandler@9727696[path= context=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u real=vfsmemory://a01c-f50hhn-folh3v5l-1-folh48wm-1u], DelegatingHandler@16208487[path=quartz-ra.rar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar], DelegatingHandler@21172926[path=quartz-ra.rar/quartz-ra.jar context=file:/C:/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/jboss-5.0.0.GA/server/default/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:385)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                  at java.lang.Class.forName0(Native Method)
                  at java.lang.Class.forName(Class.java:247)
                  at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:337)


                  It's using the quartz-ra.rar CL, where it should actually use apps CL.

                  • 6. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
                    Diego Coronel Apprentice

                    what should i change to make my system works ?

                    • 7. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
                      Andrew Rubinger Master

                       

                      "alesj" wrote:
                      I looks like EJB is using the wrong CL to look at Proxy's interfaces:
                      It's using the quartz-ra.rar CL, where it should actually use apps CL.


                      Yes, this is what I am getting at.

                      It's actually not EJB3 using the wrong CL, but whomever is doing the JNDI lookup (as the ProxyObjectFactory will pick up on the TCCL there).

                      So I need a case explaining why the quartz CL is used, and what calls the lookup from there.

                      S,
                      ALR

                      • 9. Re: Quartz + EJB3 + Seam + JBoss AS5 problem
                        Andrew Rubinger Master

                        Yes, and any source/deployables you've got which can show the problem may be attached to this issue.

                        S,
                        ALR