Wednesday, January 06, 2010

SOAPUI : NoClassDefFoundError

Using SOAPUI 3.0.1 to test web services created using Netbeans, JAX-WS and Metro.

When I try and run the TestRunner, I get:

java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser

My solution was to edit soapui.bat (in the /bin directory) and add:

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16

at the top.

Then, instead of running soapui.exe from the desktop shortcut, I open a command prompt and run soapui.bat from there manually.

Problem solved.


1 comment:

Anonymous said...

This was helpful and works.I used -
set JAVA_HOME=C:\Program Files\Java\jre1.6.0_05