Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11978

ds.xml created for Seam 2.3 project has wrong structure

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 3.3.0.Beta3
    • Fix Version/s: 3.3.0.CR1
    • Component/s: seam2
    • Labels:
      None
    • Environment:

      jbdevstudio-product-universal-5.0.0.v201205220143N-H1345-CR1.jar

      Description

      The datasource descriptor created by Seam Web Project wizard for Seam 2.3 uses wrong schema. It defines <local-tx-datasource> which worked fine with EAP 5, but EAP 6 refuses to accept it.

      09:44:41,653 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."myproj-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myproj-ds.xml".PARSE: JBAS018733: Failed to process phase PARSE of deployment "myproj-ds.xml"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_31]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_31]
      	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_31]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource
      	at org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:89)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
      	... 5 more
      Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource
      	at org.jboss.jca.common.metadata.ds.v10.DsParser.parseDataSources(DsParser.java:198)
      	at org.jboss.jca.common.metadata.ds.v10.DsParser.parse(DsParser.java:124)
      	at org.jboss.jca.common.metadata.ds.v10.DsParser.parse(DsParser.java:87)
      	at org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:84)
      	... 6 more
      

      Instead, the Seam 2.3 project should have <datasource> element defined. Example of what the -ds.xml should look like can be found in Max' article here: https://community.jboss.org/en/tools/blog/2012/02/28/excited-about-jboss-as-71-part-i-deployable-datasources

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  akazakov Alexey Kazakov
                  Reporter:
                  mmalina Martin Malina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: