[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2371) Integration testing Seam components with Maven

Jason Grant (JIRA) jira-events at lists.jboss.org
Thu May 29 01:30:16 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2371?page=comments#action_12414733 ] 
            
Jason Grant commented on JBSEAM-2371:
-------------------------------------

I've also tested attachment #2, even though some of the dependency versions seem old now.

If I understand comment

http://jira.jboss.org/jira/browse/JBSEAM-2371#action_12406363

Comment [2] suggests that TestNG tests should be working via 'mvn test' in the web pom.

Doesn't work for me.  I get the exception below.  Hopefully, this is due to a misunderstanding on my part.

Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException: [Ljavax/el/ELResolver;; nested exception is java.lang.NoClassDefFoundError: [Ljavax/el/ELResolver;
java.lang.NoClassDefFoundError: [Ljavax/el/ELResolver;
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
        at org.testng.internal.annotations.AnnotationHelper.findMethodsWithAnnotation(AnnotationHelper.java:197)
        at org.testng.internal.TestNGMethodFinder.getTestMethods(TestNGMethodFinder.java:47)
        at org.testng.TestClass.initMethods(TestClass.java:132)
        at org.testng.TestClass.init(TestClass.java:96)
        at org.testng.TestClass.<init>(TestClass.java:61)
        at org.testng.TestRunner.initMethods(TestRunner.java:288)
        at org.testng.TestRunner.init(TestRunner.java:212)
        at org.testng.TestRunner.init(TestRunner.java:184)
        at org.testng.TestRunner.<init>(TestRunner.java:121)
        at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:376)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:196)
        at org.testng.SuiteRunner.run(SuiteRunner.java:145)
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
        at org.testng.TestNG.run(TestNG.java:613)
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:136)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: java.lang.ClassNotFoundException: javax.el.ELResolver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


> Integration testing Seam components with Maven
> ----------------------------------------------
>
>                 Key: JBSEAM-2371
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2371
>             Project: Seam
>          Issue Type: Task
>          Components: Test Harness, Build
>    Affects Versions: 2.0.0.GA
>         Environment: Maven 2.0.7
>            Reporter: Siarhei Dudzin
>            Priority: Critical
>             Fix For: 2.1.0.BETA1
>
>         Attachments: maven-seam-microcontainer-testng-template.zip, testproject-master-JBSEAM-2371.zip
>
>
> Various users have reported integration testing with Seam is not working in 'Mavenized' projects.

-- 
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

        



More information about the seam-issues mailing list