1 Reply Latest reply on Dec 19, 2011 6:38 AM by Stephen Coy

    Migrating EJB 2.0 module from JBoss 4.0.3 to JBoss 7.1.0 beta

    Levente Sántha Newbie

      While trying to migrate an old EJB module to JBoss 7.1 I got this exception:

       

       

      11:29:52,149 ERROR [org.jboss.as] (Controller Boot Thread) JBoss AS 7.1.0.Beta1b "Tesla" started (with errors) in 2199ms - Started 153 of 217 services (2 services failed or missing dependencies, 60 services are passive or on-demand)
      11:29:52,159 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "idgenerator.jar"
      11:29:52,279 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named IDGenerator in deployment unit deployment "idgenerator.jar" are as follows:

       

      java:global/idgenerator/IDGenerator!norics.standard.server.IDGeneratorLocal
      java:app/idgenerator/IDGenerator!norics.standard.server.IDGeneratorLocal
      java:module/IDGenerator!norics.standard.server.IDGeneratorLocal
      java:global/idgenerator/IDGenerator!norics.standard.server.IDGeneratorLocalHome
      java:app/idgenerator/IDGenerator!norics.standard.server.IDGeneratorLocalHome
      java:module/IDGenerator!norics.standard.server.IDGeneratorLocalHome

       

      11:29:52,280 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named IDGeneratorSession in deployment unit deployment "idgenerator.jar" are as follows:

       

      java:global/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSession
      java:app/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSession
      java:module/IDGeneratorSession!norics.standard.server.IDGeneratorSession
      java:global/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionHome
      java:app/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionHome
      java:module/IDGeneratorSession!norics.standard.server.IDGeneratorSessionHome
      java:global/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocalHome
      java:app/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocalHome
      java:module/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocalHome
      java:global/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocal
      java:app/idgenerator/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocal
      java:module/IDGeneratorSession!norics.standard.server.IDGeneratorSessionLocal

       

      11:29:52,353 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."idgenerator.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."idgenerator.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "idgenerator.jar"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Beta1b.jar:]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      Caused by: java.lang.RuntimeException: Cannot obtain exception repository id for javax.ejb.EJBException:
      org.jboss.as.jacorb.rmi.RMIIIOPViolationException: Exception type javax.ejb.EJBException must be a checked exception class.
      at org.jboss.as.jacorb.rmi.marshal.strategy.SkeletonStrategy$ExceptionWriter.<init>(SkeletonStrategy.java:233)
      at org.jboss.as.jacorb.rmi.marshal.strategy.SkeletonStrategy.<init>(SkeletonStrategy.java:106)
      at org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor.processEjb(EjbIIOPDeploymentUnitProcessor.java:161)
      at org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor.deploy(EjbIIOPDeploymentUnitProcessor.java:95)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Beta1b.jar:]
      ... 5 more

      What is the problem here?

       

      Thanks.