[
http://jira.jboss.com/jira/browse/JBIDE-1277?page=comments#action_12386601 ]
Denis Golovin commented on JBIDE-1277:
--------------------------------------
it works for me in EAR configuration, but fails in WAR with exception:
14:42:17,250 INFO [Scanner] scanning:
/C:/exadel-projects/rhds/ws16/s/WebContent/WEB-INF/dev
FAILED CONFIGURATION: @BeforeClass init
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.seam.deployment.ComponentScanner.handleItem(ComponentScanner.java:59)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:156)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:152)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:152)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:152)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:152)
at org.jboss.seam.deployment.Scanner.scan(Scanner.java:114)
at org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:39)
at
org.jboss.seam.init.Initialization.scanForHotDeployableComponents(Initialization.java:573)
at org.jboss.seam.init.Initialization.init(Initialization.java:489)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:701)
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
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