7 Replies Latest reply on Jul 2, 2008 1:04 AM by jaikiran pai

    Deployment problem on jboss 5 CR1

    kelly goedert Apprentice

      Hi,

      I was using jboss 5.0.0 Beta4 and my application deployed and worked fine. I decided do try cr1 and got the following problems...
      1. During deployment I get the message [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: myapp:app=ejb3 for vfszip:/home/kgoedert/jboss-5.0.0.CR1/server/default/deploy/myapp-1.0.0.ear use classloading metadata not loader repository config

      and if I try to do a jndi lookup in one of my session beans, I always get a message saying the bean is not bound, though they seem do have being deployed without problems as following:

       installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=MyBean,service=EJB3
      11:44:33,749 INFO [JBossASKernel] with dependencies:
      11:44:33,749 INFO [JBossASKernel] and demands:
      11:44:33,749 INFO [JBossASKernel] Class:com.ICommunicationLogger
      11:44:33,750 INFO [JBossASKernel] and supplies:
      11:44:33,750 INFO [JBossASKernel] jndi:myapp-1.0.0/MyBean/remote
      11:44:33,750 INFO [JBossASKernel] jndi:my-1.0.0/MyBean/remote-com.MyRemote
      11:44:33,750 INFO [JBossASKernel] Class:com.MyRemote
      11:44:33,750 INFO [JBossASKernel] jndi:MyBean
      


      MyBean is annotated with @RemoteBinding(jndiBinding = "myapp/ejb/MyBean")

      And I was using the "myapp/ejb/MyBean" to lookup this bean on beta4.

      Can anyone help?

      Thanks

        • 1. Re: Deployment problem on jboss 5 CR1
          jaikiran pai Master

          Please post your bean class with the annotations and also the entire console logs that you see when you deploy your application. Which version of Java do you use?

          • 3. Re: Deployment problem on jboss 5 CR1
            kelly goedert Apprentice

            This is the deploy log

            14:25:38,949 WARN [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: myapp:app=ejb3 for vfszip:/home/kgoedert/jboss-5.0.0.CR1/server/default/deploy/myapp-1.0.0.ear use classloading metadata not loader repository config
            14:25:41,014 INFO [STDOUT] Cobertura: Coverage data file /home/kellygoedert/programas/jboss-5.0.0.CR1/bin/cobertura.ser either does not exist or is not readable. Creating a new data file.
            14:25:41,039 INFO [STDOUT] Cobertura: Saved information on 0 classes.
            14:25:41,387 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:41,738 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:42,388 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:42,746 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:42,876 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:43,106 INFO [STDOUT] ======> Creating interceptor metadata bridge
            14:25:43,347 INFO [JBossASKernel] Created KernelDeployment for: myapp.jar
            14:25:43,347 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=AuthenticationBean,service=EJB3
            14:25:43,347 INFO [JBossASKernel] with dependencies:
            14:25:43,347 INFO [JBossASKernel] and demands:
            14:25:43,347 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,347 INFO [JBossASKernel] and supplies:
            14:25:43,347 INFO [JBossASKernel] jndi:myapp-1.0.0/AuthenticationBean/local-com.myapp.ejb.IAuthenticationBean
            14:25:43,347 INFO [JBossASKernel] jndi:AuthenticationBean
            14:25:43,347 INFO [JBossASKernel] jndi:myapp-1.0.0/AuthenticationBean/local
            14:25:43,347 INFO [JBossASKernel] Class:com.myapp.ejb.IAuthenticationBean
            14:25:43,347 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=AuthenticationBean,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:43,353 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=MyBean,service=EJB3
            14:25:43,353 INFO [JBossASKernel] with dependencies:
            14:25:43,353 INFO [JBossASKernel] and demands:
            14:25:43,353 INFO [JBossASKernel] Class:com.myapp.log.ICommunicationLogger
            14:25:43,353 INFO [JBossASKernel] Class:com.myapp.ejb.IPostalBoxManager
            14:25:43,353 INFO [JBossASKernel] Class:com.myapp.ejb.IAuthenticationBean
            14:25:43,353 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,353 INFO [JBossASKernel] Class:com.myapp.ejb.IQuarantineManager
            14:25:43,353 INFO [JBossASKernel] and supplies:
            14:25:43,353 INFO [JBossASKernel] jndi:myapp-1.0.0/MyBean/remote
            14:25:43,353 INFO [JBossASKernel] jndi:myapp-1.0.0/MyBean/remote-com.myapp.ejb.MyRemote
            14:25:43,354 INFO [JBossASKernel] Class:com.myapp.ejb.MyRemote
            14:25:43,354 INFO [JBossASKernel] jndi:MyBean
            14:25:43,354 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=MyBean,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:43,362 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=PostalBoxManagerBean,service=EJB3
            14:25:43,363 INFO [JBossASKernel] with dependencies:
            14:25:43,363 INFO [JBossASKernel] and demands:
            14:25:43,363 INFO [JBossASKernel] Class:com.myapp.log.ICommunicationLogger
            14:25:43,363 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,363 INFO [JBossASKernel] and supplies:
            14:25:43,363 INFO [JBossASKernel] Class:com.myapp.ejb.IPostalBoxManager
            14:25:43,363 INFO [JBossASKernel] jndi:PostalBoxManagerBean
            14:25:43,363 INFO [JBossASKernel] jndi:myapp-1.0.0/PostalBoxManagerBean/local
            14:25:43,363 INFO [JBossASKernel] jndi:myapp-1.0.0/PostalBoxManagerBean/local-com.myapp.ejb.IPostalBoxManager
            14:25:43,363 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=PostalBoxManagerBean,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:43,367 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=QuarantineManagerBean,service=EJB3
            14:25:43,367 INFO [JBossASKernel] with dependencies:
            14:25:43,367 INFO [JBossASKernel] and demands:
            14:25:43,367 INFO [JBossASKernel] Class:com.myapp.log.ICommunicationLogger
            14:25:43,367 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,370 INFO [JBossASKernel] and supplies:
            14:25:43,370 INFO [JBossASKernel] jndi:QuarantineManagerBean
            14:25:43,370 INFO [JBossASKernel] jndi:myapp-1.0.0/QuarantineManagerBean/local
            14:25:43,370 INFO [JBossASKernel] jndi:myapp-1.0.0/QuarantineManagerBean/local-com.myapp.ejb.IQuarantineManager
            14:25:43,370 INFO [JBossASKernel] Class:com.myapp.ejb.IQuarantineManager
            14:25:43,370 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=QuarantineManagerBean,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:43,373 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CommunicationLoggerBean,service=EJB3
            14:25:43,373 INFO [JBossASKernel] with dependencies:
            14:25:43,373 INFO [JBossASKernel] and demands:
            14:25:43,373 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,373 INFO [JBossASKernel] and supplies:
            14:25:43,373 INFO [JBossASKernel] Class:com.myapp.log.ICommunicationLogger
            14:25:43,373 INFO [JBossASKernel] jndi:myapp-1.0.0/CommunicationLoggerBean/local
            14:25:43,373 INFO [JBossASKernel] jndi:CommunicationLoggerBean
            14:25:43,373 INFO [JBossASKernel] jndi:myapp-1.0.0/CommunicationLoggerBean/local-com.myapp.log.ICommunicationLogger
            14:25:43,373 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CommunicationLoggerBean,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:43,379 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CodeCoverageFlusher,service=EJB3
            14:25:43,379 INFO [JBossASKernel] with dependencies:
            14:25:43,379 INFO [JBossASKernel] and demands:
            14:25:43,379 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            14:25:43,379 INFO [JBossASKernel] and supplies:
            14:25:43,379 INFO [JBossASKernel] jndi:myapp-1.0.0/CodeCoverageFlusher/remote
            14:25:43,379 INFO [JBossASKernel] jndi:CodeCoverageFlusher
            14:25:43,379 INFO [JBossASKernel] Class:com.myapp.util.CodeCoverageRemote
            14:25:43,379 INFO [JBossASKernel] jndi:myapp-1.0.0/CodeCoverageFlusher/remote-com.myapp.util.CodeCoverageRemote
            14:25:43,379 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CodeCoverageFlusher,service=EJB3) to KernelDeployment of: myapp.jar
            14:25:44,132 INFO [EJBContainer] STARTED EJB: com.myapp.ejb.AuthenticationBean ejbName: AuthenticationBean
            14:25:44,984 INFO [EJBContainer] STARTED EJB: com.myapp.log.CommunicationLoggerBean ejbName: CommunicationLoggerBean
            14:25:46,249 INFO [EJBContainer] STARTED EJB: com.myapp.ejb.QuarantineManagerBean ejbName: QuarantineManagerBean
            14:25:46,298 INFO [EJBContainer] STARTED EJB: com.myapp.ejb.PostalBoxManagerBean ejbName: PostalBoxManagerBean
            14:25:47,055 INFO [EJBContainer] STARTED EJB: com.myapp.ejb.MyBean ejbName: MyBean
            14:25:47,851 INFO [EJBContainer] STARTED EJB: com.myapp.util.CodeCoverageFlusher ejbName: CodeCoverageFlusher
            


            And this is the bean code

            package com.myapp.ejb
            
            
            @Stateful
            @RemoteBinding(jndiBinding = "myapp/ejb/MyBean")
            @Interceptors(SecurityInterceptor.class)
            @CacheConfig(idleTimeoutSeconds = 60, removalTimeoutSeconds = 120)
            public class MyBean implements MyRemote
            {
            ....
            }
            


            • 4. Re: Deployment problem on jboss 5 CR1
              kelly goedert Apprentice

              And here is the jndi tree view result

               Other components with java:comp namespace
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=MyBean,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               | +- com.myapp.security.SecurityInterceptor (class: org.jnp.interfaces.NamingContext)
               | | +- quarantine[link -> myapp-1.0.0/QuarantineManagerBean/local] (class: javax.naming.LinkRef)
               | +- com.myapp.ejb.MyBean (class: org.jnp.interfaces.NamingContext)
               | | +- quarantine[link -> myapp-1.0.0/QuarantineManagerBean/local] (class: javax.naming.LinkRef)
               | | +- auth[link -> myapp-1.0.0/AuthenticationBean/local] (class: javax.naming.LinkRef)
               | | +- pbManager[link -> myapp-1.0.0/PostalBoxManagerBean/local] (class: javax.naming.LinkRef)
               | | +- commLogger[link -> myapp-1.0.0/CommunicationLoggerBean/local] (class: javax.naming.LinkRef)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=PostalBoxManagerBean,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               | +- com.myapp.ejb.PostalBoxManagerBean (class: org.jnp.interfaces.NamingContext)
               | | +- comm[link -> myapp-1.0.0/CommunicationLoggerBean/local] (class: javax.naming.LinkRef)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CodeCoverageFlusher,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=CommunicationLoggerBean,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=QuarantineManagerBean,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               | +- com.myapp.ejb.QuarantineManagerBean (class: org.jnp.interfaces.NamingContext)
               | | +- comm[link -> myapp-1.0.0/CommunicationLoggerBean/local] (class: javax.naming.LinkRef)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java:comp namespace of the component jboss.j2ee:ear=myapp-1.0.0.ear,jar=myapp.jar,name=AuthenticationBean,service=EJB3 :
              
               +- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
               +- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)
               +- EJBContext (class: javax.ejb.EJBContext)
               +- env (class: org.jnp.interfaces.NamingContext)
               +- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
              
              
              java: Namespace
              
               +- ClusteredXAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- jaas (class: javax.naming.Context)
               | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
               | +- jboss-web-policy (class: org.jboss.security.plugins.SecurityDomainContext)
               +- TransactionPropagationContextImporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
               +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
               +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
               +- TransactionManager (class: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate)
               +- ClusteredConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- TransactionPropagationContextExporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
               +- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- securityManagement (class: org.jboss.security.integration.JNDIBasedSecurityManagement)
               +- policyRegistration (class: org.jboss.security.plugins.JBossPolicyRegistration)
               +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
               +- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
               +- Mail (class: javax.mail.Session)
               +- timedCacheFactory (class: javax.naming.Context)
              Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
               +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
               +- comp (class: javax.namingMain.Context)
              
              
              Global JNDI Namespace
              
               +- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- ClusteredConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- UserTransactionSessionFactory (proxy: $Proxy82 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
               +- console (class: org.jnp.interfaces.NamingContext)
               | +- PluginManager (proxy: $Proxy80 implements interface org.jboss.console.manager.PluginManagerMBean)
               +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
               +- topic (class: org.jnp.interfaces.NamingContext)
               +- queue (class: org.jnp.interfaces.NamingContext)
               | +- ExpiryQueue (class: org.jboss.jms.destination.JBossQueue)
               | +- DLQ (class: org.jboss.jms.destination.JBossQueue)
               +- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
               +- jmx (class: org.jnp.interfaces.NamingContext)
               | +- invoker (class: org.jnp.interfaces.NamingContext)
               | | +- RMIAdaptor (proxy: $Proxy79 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
               | +- rmi (class: org.jnp.interfaces.NamingContext)
               | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
               +- ClusteredXAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
               +- TomcatAuthenticators (class: java.util.Properties)
               +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
               +- myapp (class: org.jnp.interfaces.NamingContext)
               | +- ejb (class: org.jnp.interfaces.NamingContext)
               | | +- MyBeanStatefulProxyFactory (proxy: $Proxy125 implements interface org.jboss.ejb3.proxy.ProxyFactory)
               | | +- CommunicationLoggerBean (proxy: $Proxy352 implements interface com.myapp.log.ICommunicationLogger,interface org.jboss.ejb3.proxy.JBossProxy)
               | | +- PostalBoxManagerBean (proxy: $Proxy358 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.myapp.ejb.IPostalBoxManager)
               | | +- MyBean (class: java.lang.Object)
               | | +- AuthenticationBean (proxy: $Proxy349 implements interface com.myapp.ejb.IAuthenticationBean,interface org.jboss.ejb3.proxy.JBossProxy)
               | | +- CodeCoverageFlusher (proxy: $Proxy362 implements interface com.myapp.util.CodeCoverageRemote,interface org.jboss.ejb3.proxy.JBossProxy)
               | | +- QuarantineManagerBean (proxy: $Proxy355 implements interface com.myapp.ejb.IQuarantineManager,interface org.jboss.ejb3.proxy.JBossProxy)
              
              
              
              
              


              • 5. Re: Deployment problem on jboss 5 CR1
                jaikiran pai Master

                 

                +- myapp (class: org.jnp.interfaces.NamingContext)
                 | +- ejb (class: org.jnp.interfaces.NamingContext)
                 | | +- MyBeanStatefulProxyFactory (proxy: $Proxy125 implements interface org.jboss.ejb3.proxy.
                ProxyFactory)
                 | | +- CommunicationLoggerBean (proxy: $Proxy352 implements interface com.myapp.log.ICommunica
                tionLogger,interface org.jboss.ejb3.proxy.JBossProxy)
                 | | +- PostalBoxManagerBean (proxy: $Proxy358 implements interface org.jboss.ejb3.proxy.JBossP
                roxy,interface com.myapp.ejb.IPostalBoxManager)
                 | | +- MyBean (class: java.lang.Object)


                As can be seen, the JNDI tree does contain the jndi-name myapp/ejb/MyBean and other beans too. What exception do you get when you lookup this bean? Post the entire exception stacktrace. And from where are you doing this lookup?

                • 6. Re: Deployment problem on jboss 5 CR1
                  kelly goedert Apprentice

                  Removing the @RemoteBinding annotation from MyBean and doing the lookup using myapp-1.0.0/MyBean/remote worked. The @RemoteBinding should work or not?

                  • 7. Re: Deployment problem on jboss 5 CR1
                    jaikiran pai Master

                     

                    "kgoedert" wrote:
                    Removing the @RemoteBinding annotation from MyBean and doing the lookup using myapp-1.0.0/MyBean/remote worked. The @RemoteBinding should work or not?


                    You haven't yet posted the exception you are seeing. The @RemoteBinding is expected to work. And as seen from the JNDI tree view, it did bind to myapp/ejb/MyBean.