XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.3.0.GA_CP05_FP01
    • 4.3.0.GA_CP05_FP01
    • Seam
    • None
    • Workaround Exists
    • Hide

      remove "<use-java-context>false</use-java-context>" from the datasource file and add "java:/" prefix to the content of jta-data-source element in persistence.xml

      Show
      remove "<use-java-context>false</use-java-context>" from the datasource file and add "java:/" prefix to the content of jta-data-source element in persistence.xml
    • Regression

      Changes in r10289 break the execution of tests in created projects. While seam-gen uses test-specific persistence.xml file which configures the application to use HSQLDB and no *-ds.xml file is needed, JBDS uses the same persistence.xml and *-ds.xml during the testrun as for the deployment to a real application server. Therefore, a datasource file that contains "<use-java-context>false</use-java-context>" and persistence.xml with a JNDI name without "java:/" prefix is used during test run. Since jboss embedded is probably not able to handle the JNDI format without the java context, the test fails with the following output:

      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

          • CONTEXTS MISSING DEPENDENCIES: Name -> Dependency {Required State:Actual State}

      jboss.jca:name=jbds5WarNew4Datasource,service=DataSourceBinding
      -> jboss:service=invoker,type=jrmp

      {Start:** NOT FOUND **}

      -> jboss:service=invoker,type=jrmp

      {Create:** NOT FOUND **}

      persistence.units:unitName=jbds5WarNew4
      -> <UNKNOWN>

      {Described:** UNRESOLVED Demands 'jboss.jca:name=jbds5WarNew4Datasource,service=DataSourceBinding **}
          • CONTEXTS IN ERROR: Name -> Error

      jboss:service=invoker,type=jrmp -> ** NOT FOUND **

      <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=jbds5WarNew4Datasource,service=DataSourceBinding **

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
      at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
      at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
      at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
      at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
      at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
      at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      ... Removed 22 stack frames
      SKIPPED CONFIGURATION: @BeforeMethod begin
      SKIPPED CONFIGURATION: @AfterMethod end
      SKIPPED CONFIGURATION: @AfterClass cleanup
      SKIPPED: test_ping

            mnovotny@redhat.com Marek Novotny
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: