10 Replies Latest reply on Oct 27, 2010 10:32 AM by abdul mohammed

    Problems migrating from 4.2.3 to 5.1.0

    abdul mohammed Newbie

      Hi All,

                I am trying to migrate an enterprise application from JBoss 4.2.3 to JBoss 5.1.0. In attempting to deploy the application, this is the error stack I get:

      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/cportal.jar/     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)   

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)   

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)   

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)   

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)   

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)   

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)   

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)   

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)   

      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)   

      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)   

      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)   

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)   

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)   

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)   

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)   

      at org.jboss.Main.boot(Main.java:221)     at org.jboss.Main$1.run(Main.java:556)   

      at java.lang.Thread.run(Thread.java:619) Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: entity cannot appear in this position. Expected content of entity is unordered_sequence: home? query* local-home? prim-key-class? remote? security-identity? persistence-type? mapped-name? reentrant? cmp-version? ejb-name? ejb-class? abstract-schema-name? security-role-ref* local? primkey-field? cmp-field* {all descriptionGroup}? {unordered_sequence jndiEnvironmentRefsGroup}?   

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)   

      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)   

      at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)     at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)   

      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)   

      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)   

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)   

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)   

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)     ... 34 more Caused by: org.jboss.xb.binding.JBossXBRuntimeException: entity cannot appear in this position. Expected content of entity is unordered_sequence: home? query* local-home? prim-key-class? remote? security-identity? persistence-type? mapped-name? reentrant? cmp-version? ejb-name? ejb-class? abstract-schema-name? security-role-ref* local? primkey-field? cmp-field* {all descriptionGroup}? {unordered_sequence jndiEnvironmentRefsGroup}?   

      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)   

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)   

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)   

      at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)   

      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)  

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)   

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)   

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)   

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)   

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)   

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)   

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)     ... 42 more

       

      In the affected jar, I have tried re-ordering the elements in the the entity entries of ejb-jar.xml file but I keep getting the same error but with a different content of entity expected.

       

      Please any ideas as to how to resolve this problem will be greatly appreciated.

        • 1. Re: Problems migrating from 4.2.3 to 5.1.0
          Wolf-Dieter Fink Master

          AFAIK I get this problem if I deploy an entity with wrong annotations.

          Can you deploy the entities without the deployment descriptor?

          • 2. Re: Problems migrating from 4.2.3 to 5.1.0
            abdul mohammed Newbie

            Hi Wolf-Dieter,

                                   Thanks very much for your reply. I did remove the deployment descriptors from the jar in question. In the log output, there are no longer errors related to that jar but there are errors with others . I will keep you posted.

            • 4. Re: Problems migrating from 4.2.3 to 5.1.0
              abdul mohammed Newbie

              Hi Wolf-Dieter,

                                    The problems I had with the other jars were resolved by removing the deployment descriptors like you said. The problem I am having now is that I have this jar that uses classes in the jxl.jar but it is throwing a NoClassDefFoundError. Originally the 5.1.0 appserver did not have the jar but I have uploaded the jar to a location corresponding to that in the original 4.2.3 appserver. I have cleared the temporary folders and restarted but I still get the same error. The log output is as follows:

              2010-10-13 12:15:02,097 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/ state=PreReal mode=Manual requiredState=Real org.jboss.deployers.spi.DeploymentException: Error deploying grading.jar: jxl/format/CellFormat   

              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)     at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)     at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)   

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)   

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)   

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)   

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)   

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210) 

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)   

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)   

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)   

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)   

              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)   

              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)   

              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)   

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)   

              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)   

              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)     at org.jboss.Main.boot(Main.java:221)   

              at org.jboss.Main$1.run(Main.java:556)   

              at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: jxl/format/CellFormat   

              at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)   

              at java.lang.Class.getDeclaredMethods(Class.java:1791)     at org.jboss.ejb3.interceptors.lang.SecurityActions$1.run(SecurityActions.java:43)   

              at org.jboss.ejb3.interceptors.lang.SecurityActions$1.run(SecurityActions.java:41)   

              at java.security.AccessController.doPrivileged(Native Method)   

              at org.jboss.ejb3.interceptors.lang.SecurityActions.getDeclaredMethods(SecurityActions.java:39)   

              at org.jboss.ejb3.interceptors.lang.ClassHelper.populateAllMethods(ClassHelper.java:219)   

              at org.jboss.ejb3.interceptors.lang.ClassHelper.getAllMethods(ClassHelper.java:88)   

              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:246)   

              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.(BeanInterceptorMetaDataBridge.java:138)   

              at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.(AdditiveBeanInterceptorMetaDataBridge.java:48)   

              at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)   

              at org.jboss.ejb3.EJBContainer.(EJBContainer.java:249)   

              at org.jboss.ejb3.session.SessionContainer.(SessionContainer.java:119)   

              at org.jboss.ejb3.session.SessionSpecContainer.(SessionSpecContainer.java:69)   

              at org.jboss.ejb3.stateless.StatelessContainer.(StatelessContainer.java:112)   

              at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:310)   

              at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:203)   

              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)   

              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)   

              at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)   

              at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)   

              at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)   

              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)     ... 34 more 2010-10-13 12:15:02,281 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):  DEPLOYMENTS IN ERROR:   Deployment "vfsfile:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/" is in error due to the following reason(s): java.lang.NoClassDefFoundError: jxl/format/CellFormat

               

              Any ideas as to how to get over this one? Again, thanks for the help.

              • 5. Re: Problems migrating from 4.2.3 to 5.1.0
                Wolf-Dieter Fink Master

                Mmmh,

                is CellFormat included in the jar?

                it could be that the jxl.jar needs also other jars. One idea is to look into the jxl.jar's manifest, maybe you will find dependencies.

                 

                On the other hand I'll prefere class isolation (loadser-repository within the EAR) in this case, because for me it sounds errornous to mix classes from different JBoss versions.

                So try jxl.jar (and dependent JARs) packed into you EAR.

                • 6. Re: Problems migrating from 4.2.3 to 5.1.0
                  abdul mohammed Newbie

                  Hi Wolf-Dieter,

                                        Sorry for the delay.

                                        Yes CellFormat is included in the jar.The contents of the MANIFEST.MF is as follows:

                  Manifest-Version: 1.0

                  Ant-Version: Apache Ant 1.5.3

                  Created-By: 1.4.2-b28 (Sun Microsystems Inc.)

                  Main-Class: jxl.demo.Demo

                   

                  I agree that mixing classes across JBoss versions is a bad idea(I aint that bad ).The reason why i copied the jxl.jar from the 4.2.3 server is because i was under the impression that the jxl.jar is a third-party jar and not one that ships JBoss(i have checked the original zips for both 4.2.3 and 5.1.0, it was not there).It seems jxl is a java api for manipulating excel spread-sheets.

                  At this point I think I need to provide more background. This is one of those cases where the guys who originally set things up have since moved on, so there is no one to ask why thing were done the way they were done. There is a folder in default/lib that contains a host of what looks like third-party jars(jxl included). I have tried putting the jxl.jar in my EAR(with the necessary changes to app.xml) but i ended up getting a large log with lots of errors. I noticed alot of them were related to the mysql driver, so i moved the driver from the folder that contains the third-party jars into the EAR as well. I am now getting this error:

                   

                  org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/cportal.war/ deployment failed     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)  

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)   

                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)   

                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)   

                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)   

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   

                  at java.lang.reflect.Method.invoke(Method.java:597)   

                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)   

                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)   

                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)   

                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)   

                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)   

                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)   

                  at $Proxy38.start(Unknown Source)   

                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)   

                  at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)   

                  at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)   

                  at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)   

                  at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)  

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                  at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)   

                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)  

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                  at org.jboss.system.ServiceController.doChange(ServiceController.java:688)   

                  at org.jboss.system.ServiceController.start(ServiceController.java:460)   

                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)   

                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)   

                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)   

                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)  

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)   

                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)   

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)   

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)   

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)  

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)   

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)   

                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)   

                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)   

                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)   

                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)   

                  at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)   

                  at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)   

                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                  at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)   

                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)   

                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)   

                  at org.jboss.Main.boot(Main.java:221)   

                  at org.jboss.Main$1.run(Main.java:556)   

                  at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container     at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)   

                  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)   

                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)   

                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)     ... 67 more Caused by: java.lang.IllegalStateException: Resolution should not happen via injection container   

                  at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:645)   

                  at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:72)  

                  at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)   

                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)     ... 70 more 2010-10-14 17:02:54,206 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):  DEPLOYMENTS IN ERROR:   Deployment "vfsfile:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: Resolution should not happen via injection container

                   

                  Any Ideas? Thank you for your time.

                  • 7. Re: Problems migrating from 4.2.3 to 5.1.0
                    Wolf-Dieter Fink Master

                    No idea ATM .

                    It looks like that some classes are missing. Or the classloading is slightly different between JBoss 4.x => 5.x

                    If I have such problems I try to splitt it.

                    a) use a part of code and implement a simple stand alone Java app to ensure that all necessary classes are within the JARs

                    b) attempt to strip the application ear

                     

                    Sorry I think it will be a painful way.

                    • 8. Re: Problems migrating from 4.2.3 to 5.1.0
                      jaikiran pai Master

                      Let's take one step at a time.

                       

                      abdul mohammed wrote:

                       

                      I noticed alot of them were related to the mysql driver, so i moved the driver from the folder that contains the third-party jars into the EAR as well.

                       

                      The JDBC driver jar file is expected to be located at JBOSS_HOME/server/< servername>/lib folder. Don't move it into the application packaging.

                       

                       

                      As for your other 3rd party jars, you can move them to .ear/lib folder. The jar file(s) within .ear/lib are by default made available to all the components in the .ear.

                      • 9. Re: Problems migrating from 4.2.3 to 5.1.0
                        abdul mohammed Newbie

                        Hi All,

                                 Jaikiran, I have done as you directed, here is the log output:

                        2010-10-15 15:01:40,589 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/ state=PreReal mode=Manual requiredState=Real org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/cportal.war/ deployment failed   

                        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)   

                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)   

                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)   

                        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)   

                        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)   

                        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)   

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   

                        at java.lang.reflect.Method.invoke(Method.java:597)   

                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)   

                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)   

                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)   

                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)   

                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)   

                        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)   

                        at $Proxy38.start(Unknown Source)   

                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)   

                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)   

                        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)   

                        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)   

                        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)   

                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)   

                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)   

                        at org.jboss.system.ServiceController.start(ServiceController.java:460)   

                        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)   

                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)   

                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)   

                        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)   

                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)   

                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)   

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) 

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)   

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)   

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)   

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)   

                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)   

                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)   

                        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)   

                        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)   

                        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)   

                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)   

                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)   

                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)   

                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)   

                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)   

                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)   

                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)   

                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)   

                        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)   

                        at org.jboss.Main.boot(Main.java:221) 

                          at org.jboss.Main$1.run(Main.java:556)   

                        at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container   

                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)   

                        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)   

                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)   

                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)     ... 67 more Caused by: java.lang.IllegalStateException: Resolution should not happen via injection container   

                        at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:645)   

                        at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:72)   

                        at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)   

                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)     ... 70 more 2010-10-15 15:01:40,763 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):  DEPLOYMENTS IN ERROR:   Deployment "vfsfile:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: Resolution should not happen via injection container

                         

                        Thanks

                        • 10. Re: Problems migrating from 4.2.3 to 5.1.0
                          abdul mohammed Newbie

                          Hello Jaikiran,

                                                  Sorry, I took another look at my log output again and noticed the following:

                          2010-10-27 09:32:03,160 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/cportal 2010-10-27 09:32:03,239 WARN  [org.jboss.web.tomcat.service.injection.WebEJBRemoteHandler] (main) EJBTHREE-1289: Using legacy EjbEncInjector, because mappedName for enc "env/ejb/PortalManager", field "null" is null (container.environmentRefGroup.annotatedEjbReferences = null) 2010-10-27 09:32:03,253 WARN  [org.jboss.web.tomcat.service.injection.WebEJBRemoteHandler] (main) EJBTHREE-1289: Using legacy EjbEncInjector, because mappedName for enc "env/ejb/UserManager", field "null" is null (container.environmentRefGroup.annotatedEjbReferences = null) 2010-10-27 09:32:04,112 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) ENC setup failed java.lang.IllegalStateException: Resolution should not happen via injection container

                          at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:645)

                          at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:72)

                          at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)

                          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)      at $Proxy38.start(Unknown Source)

                          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)      at org.jboss.system.ServiceController.start(ServiceController.java:460)

                          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                          at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)      at org.jboss.Main.boot(Main.java:221)

                          at org.jboss.Main$1.run(Main.java:556)      at java.lang.Thread.run(Thread.java:619) 2010-10-27 09:32:04,196 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.web.deployment:war=/cportal state=Create mode=Manual requiredState=Installed org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/appservers/jboss-5.1.0.GA/server/default/deploy/cportal.ear/cportal.war/ deployment failed

                          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)      at $Proxy38.start(Unknown Source)

                          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)      at org.jboss.system.ServiceController.start(ServiceController.java:460)

                          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                          at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)      at org.jboss.Main.boot(Main.java:221)

                          at org.jboss.Main$1.run(Main.java:556)      at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)

                          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)      ... 67 more Caused by: java.lang.IllegalStateException: Resolution should not happen via injection container

                          at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:645)

                          at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:72)

                          at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)

                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)

                           

                          The PortalManager and UserManager being referred to are EJB 2 Session Beans(the ear consists of mainly EJB 2 jars and a few EJB 3 jars). I have been made to understand that in EJB 3, dependency injection is used to make an EJB available in a servlet or another EJB but I am at a loss as to what to do here as the beans in question are EJB 2 and as the error messages make references to annotations.

                          Thanks very much for your help.