[jboss-user] [Beginner's Corner] - Migrating from jboss 4.2.3 to 5.1.0

gajendra jangid do-not-reply at jboss.com
Thu Jul 19 13:03:50 EDT 2012


gajendra jangid [https://community.jboss.org/people/gjangid] created the discussion

"Migrating from jboss 4.2.3 to 5.1.0"

To view the discussion, visit: https://community.jboss.org/message/749122#749122

--------------------------------------------------------------
Hi,

For the purpose to migrate to jboss 5.1.0 , I have placed the changes in the .xml files of .ear files of my application.

I encounterd following error while starting up the jboss.
Here is the error :-

08:39:12,126 [main] ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/opt/sonus/xauth/as/server/all_test/farm/trunkGroupActivator.ear/ state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/opt/sonus/xauth/as/server/all_test/farm/trunkGroupActivator.ear/
          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.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: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":display-name, " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":icon, " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":module}' is expected. @ vfsfile:/opt/sonus/xauth/as/server/all_test/farm/trunkGroupActivator.ear/META-INF/application.xml[8,16]*
          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.deployment.AppParsingDeployer.parse(AppParsingDeployer.java:79)
          at org.jboss.deployment.AppParsingDeployer.parse(AppParsingDeployer.java:46)
          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)
          ... 33 more
*Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":display-name, " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":icon, " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":module}' is expected. @ vfsfile:/opt/sonus/xauth/as/server/all_test/farm/trunkGroupActivator.ear/META-INF/application.xml[8,16]*
          at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
          at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
          at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
          at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
          at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
          at org.apache.xerces.xinclude.XIncludeHandler.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)

I think the error is due to the declaration in application.xml and web.xml. 

Here is my application.xml

*<?xml version="1.0" encoding="UTF-8"?>*
*<application xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"*
*xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"*
*xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/application_5.xsd http://java.sun.com/xml/ns/javaee/application_5.xsd"*
*version="5">*


*  <display-name>Trunk Group Activator </display-name>*
*  <description>Trunk Group Activator for the Sonus Networks Systems</description>*

*  <!-- IMPORTANT: No longer need to list jars for JBoss or for WebLogic -->*



*  <module>*
*    <ejb>AsyncRegistrationBean.jar</ejb>*
*  </module>*

*  <!-- deployment of the web application module -->*
*  <module>*
*    <web>*
*      <web-uri>trunkGroupActivator.war</web-uri>*
*      <context-root>/trunkGroupActivator</context-root>*
*    </web>*
*  </module>*
*   <module>*
*    <web>*
*      <web-uri>trunkGroupActivatorAPI.war</web-uri>*
*      <context-root>/trunkGroupActivatorAPI</context-root>*
*    </web>*
*  </module>*


*  <module>*
*    <web>*
*      <web-uri>jdcpool.war</web-uri>*
*      <context-root>/jdcpool_tga</context-root>*
*    </web>*
*  </module>*


*  <module>*
*    <ejb>common-utils-mdbs.jar</ejb>*
*  </module>*
*</application>*


Web.xml :-

*<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>*

*<web-app version="2.5"*
*  xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"*
*  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"*
*  xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">*
*........*
*......*
*</web-app>*

Any kind of help will be highly praised.

Thanks,
Gajendra.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/749122#749122]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120719/fb6cff69/attachment-0001.html 


More information about the jboss-user mailing list