2 Replies Latest reply on Apr 8, 2011 2:10 AM by sanath_ko

    error deploying war in jboss 5.1.0ga

    sanath_ko Newbie

      When I try to deploy my war file I am getting this error....

       

       

      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/jboss/jboss-5.1.0.GA/server/default/deploy/jee6-blog-tutorial.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: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: Failed to parse schema for nsURI=http://java.sun.com/xml/ns/javaee, baseURI=null, schemaLocation=http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd

       

          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)

       

          ... 33 more

       

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for nsURI=http://java.sun.com/xml/ns/javaee, baseURI=null, schemaLocation=http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd

       

          at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:293)

       

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

       

          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)

       

          ... 41 more

       

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 31:3 The declaration for the entity "HTML.Version" must end with '>'.

       

          at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)

       

          at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)

       

          at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)

       

          at org.jboss.xb.binding.Util.loadSchema(Util.java:395)

       

          at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:176)

       

          at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:147)

       

          at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:285)

       

       

       

       

      My war file is build using maven... and I am using javaee 6

       

      this is my java dependency...

       

      <dependency>

       

                  <groupId>javax</groupId>

       

                  <artifactId>javaee-web-api</artifactId>

       

                  <version>6.0</version>

       

                  <scope>provided</scope>

       

              </dependency>

       

      confused over this....

      any help to resolve this issue is highly appriciated...

       

      BR

       

      san

        • 1. error deploying war in jboss 5.1.0ga
          Ales Justin Master
          Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 31:3 The declaration for the entity "HTML.Version" must end with '>'.

          This looks like the real cause.

          • 2. error deploying war in jboss 5.1.0ga
            sanath_ko Newbie

            since I have used jee 6 I tried to deploy my war in jboss 6.0 Final and got this error

             

            2011-04-08 11:31:20,121 ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

             

            DEPLOYMENTS IN ERROR:

              Deployment "vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jee6-blog-tutorial.war" is in error due to the following reason(s): java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract javax.xml.bind.annotation.XmlNsForm org.jboss.xb.annotations.JBossXmlSchema.elementFormDefault() (Found data of type Ljavax/xml/bind/annotation/XmlNsForm;.QUALIFIED)

             

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]

                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]

                at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

                at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at java.lang.Thread.run(Thread.java:619) [:1.6.0_14]

             

            2011-04-08 11:31:20,177 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

            2011-04-08 11:31:20,183 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

            2011-04-08 11:31:20,190 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.Final "Neo"] Started in 22s:925ms

             

            any clue on what has gone wrong is really appreciated...

             

            BR

            San