jQuery in Action, 2nd edition*
The moose likes Testing and the fly likes Testng And Maven Error Log. Can not understand Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testng And Maven Error Log. Can not understand" Watch "Testng And Maven Error Log. Can not understand" New topic

Testng And Maven Error Log. Can not understand

kartik krishnan
Ranch Hand

Joined: Nov 19, 2006
Posts: 63
Hi ,

I am a newbie to both Maven and Testng. So I hope this is not a silly question.

I am trying to run unit tests using TestNg and using Maven 2 . I am getting the following error, that I can not understand.

If anyone know what is wrong, then please help me.


My testng is directly under Project Tree and is as follows.

The Maven 2 Set up.

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29220

Since the stack trace refers to TestNG classes, it looks like the Maven part is correct. Maven is finding the TestNG jar and kicking off TestNG.

The stack trace also gives us a clue that TestNG is looking for a number in an XML file where you currently have the string "true." The testng.xml file comes to mind. Then go through any place you have "true" and confirm that is allowed (per the documentation.) One thing I've done a few times was set the verbose attribute to "true" instead of "1". It's a common mistake.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Testng And Maven Error Log. Can not understand
Similar Threads
FATAL ERROR:The PluginDescriptor for the plugin Plugin [org.jvnet.jaxb2.maven2:mavenjaxb2-plugin]
Unable to create one single jar file in maven with dependencies included inside
Cannot find setter nor field in org.apache.maven.plugins.site.ReportPlugin
SAXException: Invalid byte 2 of 2-byte UTF-8 sequence