13 Replies Latest reply on Mar 20, 2009 12:01 PM by Wolfgang Knauf

    JBoss5 CR1 and org.jboss.xb.binding.JBossXBException

    James Callaghan Newbie

      I've been using JBoss5.0.0.Beta4 and have managed to get a new set of applications deploying and working very nicely. However, now that CR1 has been released I would very much like to use that instead. Problem is that when I try and deploy any of these same applications I get the following errors for each EAR that is being deployed:

      07:37:53,841 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080701.1742.ear state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080701.1742.ear
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:544)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=persistence
       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:198)
       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.parse(AbstractVFSParsingDeployer.java:128)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:329)
       ... 21 more


      I've checked the forums and only found a little posing about adding the following to metadata-deployer-beans.xml:

      <entry>
       <key>persistence_1_0.xsd</key>
       <value>org.jboss.metadata.jpa.spec.PersistenceMetaData</value>
      </entry>
      


      Any suggestions anyone?

        • 1. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
          jaikiran pai Master

          Please post the contents of your persistence.xml. I had run into this same error on CR1 yesterday. I fixed my persistence.xml to include the xsd.

          • 2. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
            James Callaghan Newbie

            It's true that my persistence.xml doesn't include the xsd definition:

            <persistence>
             <persistence-unit name="mpee_client_soap">
             <jta-data-source>java:mpee_DS</jta-data-source>
             <class>com.telrock.platform.vo.PropertiesVO</class>
             <properties>
             <property name="hibernate.show_sql" value="false"/>
             </properties>
             </persistence-unit>
            </persistence>


            But I changed it to:

            <persistence
             xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
             version="1.0">
            
             <persistence-unit name="mpee_client_soap">
             <jta-data-source>java:mpee_DS</jta-data-source>
             <class>com.telrock.platform.vo.PropertiesVO</class>
             <properties>
             <property name="hibernate.show_sql" value="false"/>
             </properties>
             </persistence-unit>
            </persistence>


            and get the same problem.

            • 3. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
              jaikiran pai Master

              I would have expected it to work after you changed the persistence.xml. Are you sure your changes to that file are being picked up? Also, can you post the server.log contents when your application is being deployed?

              • 4. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                James Callaghan Newbie

                OK, so I turned logging up to DEBUG on all org.jboss so that I could get more information out of the server.log as I deploy. I removed all of the applications and deployed just this one to reproduce the error and ensure that I'm not looking at a different app. This is the bit of interest:

                12:03:39,465 DEBUG [JBossXBDeployerHelper] Parsing file: ZipEntryHandler@10127346[path=webs/10.mpee.local.20080702.1257.ear/META-INF/persistence.xml context=file:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/ real=vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080702.1257.ear/META-INF/persistence.xml] for type: class org.jboss.metadata.jpa.spec.PersistenceMetaData
                12:03:39,466 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@153505d, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                12:03:39,467 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                12:03:39,467 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
                12:03:39,467 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-language set to: false
                12:03:39,467 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
                12:03:39,467 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
                12:03:39,467 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/schema set to: true
                12:03:39,467 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                12:03:39,467 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@153505d, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                12:03:39,472 DEBUG [JBossEntityResolver] Cannot resolve [publicID=,systemID=persistence]
                12:03:39,472 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=]
                12:03:39,473 DEBUG [PersistenceUnitParsingDeployer] Error during deploy: vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080702.1257.ear
                org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080702.1257.ear


                I've opened up the EAR and looked at the persistence.xml file and can see that the relevant code is in it. I'm wondering if this is down to the location of my persistence.xml file. I know that in JBoss4 there were problems when the persistence.xml was in the META-INF directory of the EAR instead of the META-INF directory in the jar that held the entities. I'll investigate this possibility as well.

                • 5. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                  James Callaghan Newbie

                  False alarm. Sorry jaikiran. I've been having a build problem and the persistence.xml was not being updated properly. Apologies. Now that the xsd definition is being included correctly the problem has been resolved.

                  Thanks again for your help.

                  • 6. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                    jaikiran pai Master

                     

                    "jimmycallaghan" wrote:
                    Now that the xsd definition is being included correctly the problem has been resolved.



                    Great ! :)

                    • 7. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                      ucef karmoun Newbie

                      hello !! i am having the same exact probleme but i can't get it fixed.

                      here is my persistence.xml:

                      <?xml version="1.0" encoding="UTF-8" ?>
                      - <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
                      - <persistence-unit name="jtoolkitfwPU">
                       <jta-data-source>java:/smsactjndi</jta-data-source>
                       <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
                       <exclude-unlisted-classes>false</exclude-unlisted-classes>
                       <properties />
                       </persistence-unit>
                       </persistence>


                      and my server log is:
                      12:21:08,718 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/ state=Not Installed mode=Manual requiredState=Parse
                      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/
                       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.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.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(Unknown Source)



                      • 8. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                        jaikiran pai Master

                        The exception stacktrace, that you posted, doesn't show anything actually :)

                        Can you please post the entire exception stacktrace.

                        • 9. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                          ucef karmoun Newbie

                           

                          "jaikiran" wrote:
                          The exception stacktrace, that you posted, doesn't show anything actually :)

                          Can you please post the entire exception stacktrace.



                          ok sorry :)

                          JAVA_HOME is not set. Unexpected results may occur.
                          Set JAVA_HOME to the directory of your local JDK to avoid this message.
                          ===============================================================================

                          JBoss Bootstrap Environment

                          JBOSS_HOME: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA

                          JAVA: java

                          JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                          CLASSPATH: ;C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\bin\run.jar

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

                          12:20:47,312 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                          12:20:47,312 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)
                          12:20:47,312 INFO [ServerImpl] Bootstrap URL: null
                          12:20:47,312 INFO [ServerImpl] Home Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA
                          12:20:47,312 INFO [ServerImpl] Home URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/
                          12:20:47,312 INFO [ServerImpl] Library URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/lib/
                          12:20:47,312 INFO [ServerImpl] Patch URL: null
                          12:20:47,312 INFO [ServerImpl] Common Base URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/common/
                          12:20:47,312 INFO [ServerImpl] Common Library URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/common/lib/
                          12:20:47,312 INFO [ServerImpl] Server Name: default
                          12:20:47,312 INFO [ServerImpl] Server Base Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server
                          12:20:47,312 INFO [ServerImpl] Server Base URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/
                          12:20:47,312 INFO [ServerImpl] Server Config URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/conf/
                          12:20:47,312 INFO [ServerImpl] Server Home Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default
                          12:20:47,312 INFO [ServerImpl] Server Home URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/
                          12:20:47,312 INFO [ServerImpl] Server Data Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\data
                          12:20:47,328 INFO [ServerImpl] Server Library URL: file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/lib/
                          12:20:47,328 INFO [ServerImpl] Server Log Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\log
                          12:20:47,328 INFO [ServerImpl] Server Native Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\tmp\native
                          12:20:47,328 INFO [ServerImpl] Server Temp Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\tmp
                          12:20:47,328 INFO [ServerImpl] Server Temp Deploy Dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\tmp\deploy
                          12:20:48,062 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
                          12:20:48,718 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
                          12:20:48,718 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
                          12:20:49,187 INFO [CopyMechanism] VFS temp dir: C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server\default\tmp
                          12:20:49,187 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                          12:20:50,375 INFO [ServerInfo] Java version: 1.6.0_10,Sun Microsystems Inc.
                          12:20:50,375 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
                          12:20:50,375 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.0-b15,Sun Microsystems Inc.
                          12:20:50,375 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                          12:20:50,421 INFO [JMXKernel] Legacy JMX core initialized
                          12:20:52,515 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1c41e49(root=C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
                          12:20:52,515 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1c41e49(root=C:\java\jboss-5.0.1.GA-jdk6\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
                          12:20:52,515 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@7857a5{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
                          12:20:54,078 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                          12:21:00,687 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
                          12:21:00,687 INFO [NativeServerConfig] 3.0.5.GA
                          12:21:08,718 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/ state=Not Installed mode=Manual requiredState=Parse
                          org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/
                          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.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.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(Unknown Source)
                          Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":non-jta-data-source, "http://java.sun.com/xml/ns/persistence":mapping-file, "http://java.sun.com/xml/ns/persistence":jar-file, "http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected. @ vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/WEB-INF/classes/META-INF/persistence.xml[5,15]
                          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)
                          ... 22 more
                          Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":non-jta-data-source, "http://java.sun.com/xml/ns/persistence":mapping-file, "http://java.sun.com/xml/ns/persistence":jar-file, "http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected. @ vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/WEB-INF/classes/META-INF/persistence.xml[5,15]
                          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)
                          ... 30 more
                          12:21:15,046 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
                          12:21:15,281 INFO [MailService] Mail Service bound to java:/Mail
                          12:21:18,125 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
                          12:21:18,156 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
                          12:21:18,359 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
                          12:21:18,359 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
                          12:21:18,671 INFO [TransactionManagerService] Initializing recovery manager
                          12:21:18,906 INFO [TransactionManagerService] Recovery manager configured
                          12:21:18,906 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
                          12:21:18,953 INFO [TransactionManagerService] Starting transaction recovery manager
                          12:21:19,765 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
                          12:21:19,765 INFO [AjpProtocol] Inicializando Coyote AJP/1.3 en ajp-127.0.0.1-8009
                          12:21:19,765 INFO [StandardService] Arrancando servicio jboss.web
                          12:21:19,765 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
                          12:21:19,859 INFO [Catalina] Server startup in 200 ms
                          12:21:19,890 INFO [TomcatDeployment] deploy, ctxPath=/invoker
                          12:21:21,390 INFO [TomcatDeployment] deploy, ctxPath=/web-console
                          12:21:21,812 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
                          12:21:22,000 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
                          12:21:22,046 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
                          12:21:22,093 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
                          12:21:22,140 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
                          12:21:22,187 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
                          12:21:22,296 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
                          12:21:22,343 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
                          12:21:22,343 INFO [RAMJobStore] RAMJobStore initialized.
                          12:21:22,343 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
                          12:21:22,343 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
                          12:21:22,343 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                          12:21:23,718 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                          12:21:24,328 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
                          12:21:24,453 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
                          12:21:24,453 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
                          12:21:24,531 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                          12:21:24,531 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1fbc274 started
                          12:21:24,562 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                          12:21:24,562 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                          12:21:24,562 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@7518b started
                          12:21:24,562 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                          12:21:24,562 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@6dba0d started
                          12:21:24,562 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                          12:21:24,750 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                          12:21:24,828 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=smsactjndi' to JNDI name 'java:smsactjndi'
                          12:21:24,875 INFO [TomcatDeployment] deploy, ctxPath=/
                          12:21:24,984 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
                          12:21:25,093 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                          DEPLOYMENTS IN ERROR:
                          Deployment "vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/" is in error due to the following reason(s): org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":non-jta-data-source, "http://java.sun.com/xml/ns/persistence":mapping-file, "http://java.sun.com/xml/ns/persistence":jar-file, "http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected. @ vfszip:/C:/java/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/jtk_SENIC.war/WEB-INF/classes/META-INF/persistence.xml[5,15]

                          12:21:25,109 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
                          12:21:25,140 INFO [AjpProtocol] Arrancando Coyote AJP/1.3 en ajp-127.0.0.1-8009
                          12:21:25,140 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 37s:812ms


                          • 12. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                            jaikiran pai Master

                             

                            "BjPenn" wrote:
                            no one???

                            Wolfgang, in the other thread, explained why the error was occuring. Did it not solve the issue?


                            • 13. Re: JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
                              Wolfgang Knauf Master

                              @BjPenn: My answer is on page two of your other post. Maybe you didn't see that there are two pages ;-)?

                              Wolfgang