7 Replies Latest reply on Jul 25, 2013 12:57 PM by aswin raj

    "Failed to parse source" Problem starting webapp when  migrating from 4.2.1GA to 5.1 EAS

    aswin raj Newbie

      Hello,  I am migrating from JBOSS 4.2.1 GA to JBOSS 5.1 EAP.  I have spent an unbelievable amount of time on this.  Our app use web_app 2.3 dtd and works fine in JBOSS 4.2.1.  However it appears that 5.1 EAP requires that we declare namespaces and I figured I would as well migrate to web_app 2.5 namespace.  I made many changes to the web.xml to confirm to 2.5 namespace.  It looks like I have fixed all the issues in web.xml.  However our app does not start up.  I am frustrated that the error message is not descriptive enough.  All I see is the following error which tells me nothing.  Searching on the internet or in the forums has been useless.  Any help will be much much appreciated. 

       

      2013-07-23 15:43:11,472 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/pgfiles/jboss-eap-5.1/jboss-as/server/default/deploy/idm.war/ state=PreParse mode=Manual requiredState=Parse

      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/pgfiles/jboss-eap-5.1/jboss-as/server/default/deploy/idm.war/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

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

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

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee}ejb-jar is not bound as a global element.

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

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

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

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)

      ... 33 more

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}ejb-jar is not bound as a global element.

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

      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.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.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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