[
http://jira.jboss.com/jira/browse/JBIDE-1277?page=comments#action_12386633 ]
Denis Golovin commented on JBIDE-1277:
--------------------------------------
done for war project, by adding copy of ds.xml to web/src/model/WEB-INF folder. JBoss
Micro container can pick up the ds.file only from this location.
so now test case described above works only for Seam2 web projects in WAR deployment
configuration.
Seam2 projects in EAR deployment configuration cannot run at al because of exception
during starting JBoss Microcontainer se related issue
Caused by: java.lang.IllegalStateException: FileHandler@22464156[path=
context=file:/C:/exadel-projects/rhds/ws16/se22-ejb/build/classes/
real=file:/C:/exadel-projects/rhds/ws16/se22-ejb/build/classes/] has no parent.
at org.jboss.virtual.VFSUtils.addManifestLocations(VFSUtils.java:116)
at
org.jboss.deployers.plugins.structure.DefaultStructureBuilder.processContext(DefaultStructureBuilder.java:131)
at
org.jboss.deployers.plugins.structure.DefaultStructureBuilder.populateContext(DefaultStructureBuilder.java:89)
... 33 more
Test's can't run when -ds.xml is not on the sourcepath
------------------------------------------------------
Key: JBIDE-1277
URL:
http://jira.jboss.com/jira/browse/JBIDE-1277
Project: JBoss Tools
Issue Type: Bug
Components: Seam
Affects Versions: 2.0.0.Beta4
Environment: Seam 2.0
Reporter: Max Andersen
Assigned To: Denis Golovin
Priority: Blocker
Fix For: 2.0.0.CR1
the change from having -ds.xml in the classpath to a resources dir breaks the execution
of unit tests since the -ds.xml is not found by the deployer.
Since the resources folder where intended for non-classpath relevant things I suggest we
put the -ds.xml into the META-INF/ dir since they are special files being picked up by the
jboss deployers.
I guess this affect both WAR and EAR.
Test case is simple:
EXECUTE: Create New Seam Project
EXECUTE: Create New Seam Action
EXECUTE:right click the generated test xml and execute TestNG
ASSERT: Green light! and not some error about datasource not being found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira