project structure:
main pom 
\-ear
\-ejb
\-war

I have the ejb pom set up to run surfire, like so:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>${surefire.version}</version>
    <configuration>
        <systemProperties>
            <property>
                <name>user.timezone</name>
                <value>Etc/UTC</value>
            </property>
            <property>
                <name>java.protocol.handler.pkgs</name>
                <value>org.jboss.virtual.protocol</value>
            </property>
            <property>
                <name>sun.lang.ClassLoader.allowArraySyntax</name>
                <value>true</value>
            </property>
        </systemProperties>                         
        <argLine>
            -Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=256m
        </argLine>
        <parallel>false</parallel>
        <forkMode>once</forkMode>
        <parallel>tests</parallel>
        <threadCount>1</threadCount>
        <suiteXmlFiles>
            <suiteXmlFile>
                ${basedir}/src/test/resources/testng.xml
            </suiteXmlFile>
        </suiteXmlFiles>
        <additionalClasspathElements>
            <additionalClasspathElement>
                ${basedir}/bootstrap
            </additionalClasspathElement>
            <additionalClasspathElement>
                ${basedir}/bootstrap/deploy/quartz-ra.rar/quartz-ra.jar
            </additionalClasspathElement>
        </additionalClasspathElements>
        <reportFormat>plain</reportFormat>
        <trimStackTrace>false</trimStackTrace>
    </configuration>
</plugin>

I'm getting this error when I run "mvn test".  Not sure what the error is,
and there is nothing on the web with this error message.  I do have the
jboss-embedded bootstrap directory setup for the project.  Can someone
translate this error for a maven noob?  Thanks!

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException: Cannot set
option parallel with value tests; nested exception is java.lang.refl
ect.InvocationTargetException: null; nested exception is
org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
parallel w
ith value tests; nested exception is
java.lang.reflect.InvocationTargetException: null
org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
parallel with value tests; nested exception is java.lang.reflect.In
vocationTargetException: null
java.lang.reflect.InvocationTargetException
        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:585)
        at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator$Setter.invoke(AbstractDirectConfigurator.java:87)
        at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator.configure(AbstractDirectConfigurator.java:58)
        at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:73)
        at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
Caused by: java.lang.NullPointerException
        at org.testng.TestNG.setParallel(TestNG.java:345)
        ... 15 more
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
for the individual test results.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to
E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
for the individual test results.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.

Please refer to
E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
for the individual test results.
        at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:519)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more


-- 
View this message in context: 
http://www.nabble.com/surefire-with-jboss-embedded-tp21814900p21814900.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to