10 Replies Latest reply on Jun 24, 2011 2:04 PM by Shivakumar Sundaram

    Migration from JBoss 4.0.5 to JBoss 5.0.1

    Shivakumar Sundaram Newbie

      Hi,

       

      I am trying to port an already developed application from JBoss 4.0.5 to JBoss 5.0.1. After initial config, and ant script changes, when I started up the server, I got some deploy errors and application failed to be deployed, even though server was up and running. I have resolved 3 out of the 4 startup deploy errors I got, and am left with just one. I do not know where to start on this one. We are not using JBoss' clustering feature; we run on the default config. Please point me in the right direction. Thanks, Shiva.

       

      09:45:46,002 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/jClaims.ear/ state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/jClaims.ear/jClaims-server.jar/
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
          at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
          at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
          at org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:95)
          at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
          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:1598)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
          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:698)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
          at org.jboss.Main.boot(Main.java:209)
          at org.jboss.Main$1.run(Main.java:547)
          at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: QName clustered error setting property clustered with value null to org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@17350328
          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.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
          at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
          at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
          at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
          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:323)
          ... 24 more
      Caused by: java.lang.RuntimeException: QName clustered error setting property clustered with value null to org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@17350328
          at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:65)
          at org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
          at org.jboss.xb.builder.runtime.BeanHandler.setParent(BeanHandler.java:207)
          at org.jboss.xb.builder.runtime.BuilderParticleHandler.setParent(BuilderParticleHandler.java:80)
          at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.setParent(SundayContentHandler.java:1335)
          at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:1234)
          at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:268)
          at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:373)
          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
          at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
          at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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)
          ... 32 more
      Caused by: java.lang.IllegalArgumentException: Wrong arguments. setClustered for target org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@93139 expected=[boolean] actual=[null]
          at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:69)
          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
          at org.jboss.beans.info.plugins.DefaultPropertyInfo.set(DefaultPropertyInfo.java:143)
          at org.jboss.xb.spi.AbstractBeanAdapter.set(AbstractBeanAdapter.java:95)
          at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:61)
          ... 51 more

        • 1. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
          Wolf-Dieter Fink Master

          I suppose you deploy a EJB2 application, right?

          For me it looks like that a SessionBean will be deployed with an attribute clustered (either jboss.xml or xdoclet annotation).

          and the element of the xml is empty.

          • 2. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
            Shivakumar Sundaram Newbie

            Yes, there are EJB 2 beans in there, session beans and some message driven beans. But I can confirm that at least jboss.xml does not have the "clustered" attribute set (or maybe I am wrong, let me know). For example:

            <session>
                    <ejb-name>JClaimsReportsBean</ejb-name>
                    <local-jndi-name>ejb/JClaimsReportsBean</local-jndi-name>
                    <clustered/>
                </session>

             

            This is how all of the session EJBs are defined (with the clustered attribute not set, atleast the way I see it).

             

            Shiva.

            • 3. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
              Shivakumar Sundaram Newbie

              Also, I can confirm there is no occurrence of 'xdoclet' in the workspace.

               

              Thanks,

              Shiva.

              • 4. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                Wolfgang Knauf Master

                Hi,

                 

                either remove "<clustered/>" or use "<clustered>false</clustered>" (which is the default value if the element is not present).

                 

                Best regards

                 

                Wolfgang

                1 of 1 people found this helpful
                • 5. Migration from JBoss 4.0.5 to JBoss 5.0.1
                  Shivakumar Sundaram Newbie

                  Sorry for the late reply.. the project was off for some time, now it may be on again :-). Thanks Wolfgang, your recommendation was ON THE DOT. I changed the tags to "<clustered>false</clustered>" and it worked.

                   

                  I think I am further along in the deploy process. I was able to fix a couple of other errors. Now, I am getting errors related to some web services we have in the project. The errors are relating to ".aar" files deployed on Axis2. Here is part of the stack trace when I start the server:

                  [ServiceDeployer] The version-1.3.aar service, which is not valid, caused java.lang.NoClassDefFoundError: org/codehaus/jam/JamServiceFactory

                      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:147)

                      at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:352)

                      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:347)

                      at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:95)

                      at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:137)

                      at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)

                      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)

                      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)

                      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)

                      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)

                      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)

                      at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:118)

                      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:272)

                      at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78)

                      at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)

                      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)

                      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

                      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

                      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

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

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

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

                      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:585)

                      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 $Proxy36.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:1598)

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

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

                      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:1598)

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

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

                      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:698)

                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

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

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

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

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

                      at java.lang.Thread.run(Thread.java:595)

                   

                  15:28:59,632 INFO  [DeploymentEngine] org.apache.axis2.deployment.DeploymentException: java.lang.NoClassDefFoundError: org/codehaus/jam/JamServiceFactory

                  15:29:00,007 INFO  [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@286527: display name [org.springframework.context.support.ClassPathXmlApplicationContext@286527]; startup date [Thu May 19 15:29:00 EDT 2011]; root of context hierarchy

                  15:29:00,491 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [serverContext.xml]

                  15:29:00,648 INFO  [ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@286527]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1124745

                  15:29:00,991 INFO  [PropertyPlaceholderConfigurer] Loading properties file from URL [file:c:/jboss-5.0.1.GA/server/default/conf/jclaims-server.properties]

                  15:29:01,038 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1124745: defining beans [jbossJndiTemplate,webServices,agentViewClaimService,isoReportBean,placeholderConfig,agentViewServiceProxy,isoReportServiceProxy,applicationContext]; root of factory hierarchy

                  15:29:01,476 INFO  [ServiceDeployer] The ws-claimsServices.aar service, which is not valid, caused java.lang.NoClassDefFoundError: org/codehaus/jam/JamServiceFactory

                      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:147)

                      at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:352)

                      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:347)

                      at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:95)

                      at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:137)

                      at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)

                      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)

                      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)

                      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)

                      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)

                      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)

                      at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:118)

                      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:272)

                      at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78)

                      at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)

                      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)

                      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

                      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

                      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

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

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

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

                      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:585)

                      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 $Proxy36.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:1598)

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

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

                      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:1598)

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

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

                      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:698)

                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

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

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

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

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

                      at java.lang.Thread.run(Thread.java:595)

                   

                  15:29:01,476 INFO  [DeploymentEngine] org.apache.axis2.deployment.DeploymentException: java.lang.NoClassDefFoundError: org/codehaus/jam/JamServiceFactory

                  15:29:01,554 ERROR [[/axis2]] StandardWrapper.Throwable

                  java.lang.NoClassDefFoundError: org/apache/neethi/Policy

                      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:433)

                      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

                      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

                      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

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

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

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

                      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:585)

                      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 $Proxy36.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:1598)

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

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

                      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:1598)

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

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

                      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:698)

                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

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

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

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

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

                      at java.lang.Thread.run(Thread.java:595)

                  15:29:01,570 ERROR [[/axis2]] Servlet /axis2 threw load() exception

                   

                   

                  =====================================================================

                   

                  I was curious, so I went and looked at the Happy Axis page, and this is what I saw:

                  happyaxis.png

                   

                  In case the red message cannot be seen, this is what the relevant part of the page says:

                  Examining Version Service

                  There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working.

                  ========================================================================================================

                   

                  Any help is welcome. Thanks.

                  • 6. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                    Shivakumar Sundaram Newbie

                    Ok, I decided to update to the latest Axis2 version to see if this error goes away. I installed Axis2 1.5.5. Had to pull out a xerces related JAR (xercesImpl-2.8.1.jar) out of the WAR. Now I am running all the way through, but am getting a wierd Class loading issue with JBoss with one of my classes. The class is referred inside a plugin that was written by us. I am attaching the full log, the relevant files (please let me know if more files are needed).

                     

                    The application is built with ant scripts as an EAR, inside which the webapp throwing the error (/claims) is present as a war.

                    • 7. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                      Wolfgang Knauf Master

                      Hi,

                       

                      could you provide more details on your app?

                      So you have an EAR file including a WAR file. Where does "com.nationwide.thi.jclaims.shared.AppRegistry" reside? Is it in a utility JAR or is it part of your WAR file?

                      According to the error message, "com.nationwide.thi.jclaims.web.menubuilder.TabSetsReader" was not found. I assume this class is placed in the WAR file? Or is it part of an utility jar?

                       

                      By the way: you use 5.0.1 GA. Any change to upgrade to 5.1.0? As there were some bugfixes, I would advice you to do this upgrade if possible.

                       

                      Best regards

                       

                      Wolfgang

                      • 8. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                        Shivakumar Sundaram Newbie

                        Thanks Wolfgang.

                         

                        The EAR is being built with Ant as I mentioned. I am attaching it (privately). The EAR has 2 WARs inside it: claims.war (the application in question), and axis2.war.

                         

                        claims.war has both AppRegistry and TabSetsReader (which is the wierd part). Since both are under the same app, it looks like a really wierd case of class-loading..

                         

                        (I am completely with you regards using a higher version; but any decision to upgrade to a higher version may mean a lengthy approvals process in the organization with extensive justification; and so I am not sure if I want to pursue it unless absolutely essential.)

                        • 9. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                          Wolfgang Knauf Master

                          Hi,

                           

                          I saw your private message - good luck with another sending attempt.

                           

                          I asked google a bit about JBoss and Axis2 and found e.g. this: http://community.jboss.org/thread/161285

                          The thread links to an Axis2 bugreport, and this sounds like Axis2 not working for JBoss at all...

                           

                          Best regards

                           

                          Wolfgang

                          • 10. Re: Migration from JBoss 4.0.5 to JBoss 5.0.1
                            Shivakumar Sundaram Newbie

                            Thanks Wolfgang.

                             

                            However, I think Axis2 modules are deployed, as we can see from the log:

                            =============================================================================

                            13:37:24,627 INFO  [TomcatDeployment] deploy, ctxPath=/axis2

                            13:37:28,080 INFO  [STDOUT] [INFO] Clustering has been disabled

                            13:37:30,283 INFO  [STDOUT] [INFO] Deploying module: addressing-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/addressing-1.5.5.mar

                            13:37:30,423 INFO  [STDOUT] [INFO] Deploying module: metadataExchange-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/mex-1.5.5.mar

                            13:37:30,455 INFO  [STDOUT] [INFO] Deploying module: mtompolicy-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/mtompolicy-1.5.5.mar

                            13:37:30,486 INFO  [STDOUT] [INFO] Deploying module: ping-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/ping-1.5.5.mar

                            13:37:30,517 INFO  [STDOUT] [INFO] Deploying module: script-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/scripting-1.5.5.mar

                            13:37:30,548 INFO  [STDOUT] [INFO] Deploying module: soapmonitor-1.5.5 - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/modules/soapmonitor-1.5.5.mar

                            13:37:31,330 INFO  [STDOUT] [INFO] Deploying Web service: version.aar - file:/C:/jboss-5.0.1.GA/server/default/tmp/a522p1k-w7cvwp-gp5pgmyn-1-gp5pjf8g-a0/axis2.war/WEB-INF/services/version.aar

                            13:37:31,377 INFO  [STDOUT] [WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!

                            13:37:31,455 INFO  [TomcatDeployment] deploy, ctxPath=/claims

                            =============================================================================

                             

                            This particular issue seems to be that somehow the classloader does not load the parent classes when a Struts Plugin class is being loaded. Notice that the validator and tiles plugins loaded correctly. It is only when it gets to the SubMenuStrutsPlugin (following along in struts-config.xml), that this error happens.

                             

                            I tried changing the order of the plugins in struts-config.xml, but the error stays. I can confirm that commenting the 2 lines in SubMenuStrutsPlugin.java, makes the startup clean:

                            AppRegistry.getInstance().getTabSetsReader().loadCache(physicalPath);

                                    AppRegistry.getInstance().getSubMenuReader().loadCache(physicalPath);

                             

                            I tried changing <property name="java2ClassLoadingCompliance">false</property> to true and <property name="useJBossWebLoader">false</property> to true under default\deployers\jbossweb.deployer\META-INF\war-deployers-jboss-beans.xml (all 4 combinations) and still am stuck with the same error.