-
Bug
-
Resolution: Done
-
Critical
-
4.3.0.GA_CP05_FP01
-
None
-
Workaround Exists
-
-
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
-> jboss:service=invoker,type=jrmp
{Create:** NOT FOUND **}persistence.units:unitName=jbds5WarNew4
-> <UNKNOWN>
-
-
- 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
- relates to
-
JBPAPP-2236 Hibernate console does not work in JBDS
-
- Closed
-