6 Replies Latest reply on Apr 21, 2011 2:33 AM by jaikiran pai

    Problem Deploying Struts Jar to JBoss 6.0

    Robert Sullivan Novice

      Hey All,

       

      I'm trying to port an application to JBOSS.  When I attempt to start the EAR file I'm running into a lot of schema validation issues.  Currently I'm running into a DeploymentException because it cannot parse a TLD in the Struts 2.1.8.1 jar.  Are there any ways around this?  Should the Struts jar not be in the WEB-INF/lib?   Any help would be appreciated.  The stack trace is below.

       

      Thanks,

      Bob


      2010-03-01 22:43:52,546 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Parse: name=vfszip:/C:/apps/jboss-6.0.0.20100216-M2/server/default/deploy/Portal.ear/ state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/apps/jboss-6.0.0.20100216-M2/server/default/deploy/Portal.ear/Portal.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:1660)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1431)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'. @ vfszip:/C:/apps/jboss-6.0.0.20100216-M2/server/default/deploy/Portal.ear/Portal.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld[9,37]
          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:229)
          at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:206)
          at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
          at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:64)
          at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:38)
          at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
          at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.handleMultipleFiles(AbstractVFSParsingDeployer.java:397)
          at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:282)
          at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:355)
          ... 30 more
      Caused by: org.xml.sax.SAXException: cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'. @ vfszip:/C:/apps/jboss-6.0.0.20100216-M2/server/default/deploy/Portal.ear/Portal.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld[9,37]
          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)