latest seam from CVS (CR3) & TestNG problems
mmarcom May 24, 2006 7:22 AMhello all,
i know this partially OT since i am using Maven2 to compile my code..
i have recently moved from jboss-seamCR2 to CR3 and while running tests (together with testNG) i am getting a huge exception..
I dont' know if this is a testng/seam/maven problems but only file changed was jboss-seam.. i was wondering if someone has find same situation already...
here's my pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>ExpenseControl</groupId>
<artifactId>ejbs</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>enterprise java beans</name>
<parent>
<groupId>ExpenseControl</groupId>
<artifactId>project</artifactId>
<version>1.0</version>
</parent>
<dependencies>
<!-- JBoss Microcontainer dependencies (for tests)-->
<dependency>
<groupId>microcontainer</groupId>
<artifactId>ehcache</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\optional-lib\ehcache-alpha6.jar</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>hibernate-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\hibernate-all-alpha6.jar</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>jboss-ejb3-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\jboss-ejb3-all-alpha6.jar</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>thirdparty-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\thirdparty-all-alpha6.jar</systemPath>
</dependency>
<!-- end of jboss microcontainer dependencies -->
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jboss-seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<version>1.0.0CR3</version>
</dependency>
<dependency>
<groupId>jboss-seam</groupId>
<artifactId>jboss-seam</artifactId>
<version>1.0.0CR3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>4.7</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>iso-8859-1</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.2-SNAPSHOT</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo message="--------Properties Configured ----------"/>
<echo message="------- deploy.dir=${deploy.directory}"/>
<echo message="------- ear.name=${ear.name}"/>
<echo message="------- project.parent.version=${project.parent.version}"/>
<echo message="------- project.version=${project.version}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<!--<reporting>
<plugins>
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<childDelegation>false</childDelegation>
</configuration>
</plugin>
</plugins>
</reporting>-->
<!-- The following two sections should be unnecessary shortly.
surefire-2.2 is due for release yesterday. -->
<repositories>
<repository>
<id>apache.snapshots</id>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
and this is teh excepiton that i am receiving
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested except ion is java.lang.NullPointerException: null java.lang.NullPointerException at org.apache.maven.surefire.report.AbstractTextReporter.testFailed(Abst ractTextReporter.java:106) at org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterM anager.java:299) at org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterM anager.java:281) at org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGR eporter.java:97) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1138) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1123) at org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:1 87) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:166) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:216) at org.testng.SuiteRunner.run(SuiteRunner.java:146) at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713) at org.testng.TestNG.runSuitesLocally(TestNG.java:676) at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGE xecutor.java:64) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXml TestSuite.java:75) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:220) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:733) [INFO] ------------------------------------------------------------------------
anyone could help? i tried already maven&testng lists with no luck :(
rgds
marco