Forum Discussion

davidfmartin's avatar
Occasional Visitor
8 years ago

Trouble with SoapUITestCaseRunner

I am getting the following error when running 

SoapUITestCaseRunner using a Junit test


Error is:


java.lang.NoSuchMethodError: org.apache.log4j.ConsoleAppender.setWriter(Ljava/io/Writer;)V






My test:



@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)


public class SoapUITester {



public void testRunner() throws Exception


  SoapUITestCaseRunner runner = new SoapUITestCaseRunner();

  runner.setProjectFile( "src/test/soapui/CenterService-soapui-project.xml" );;




Anyone know how to solve this?


I am using spring-boot 1.5.2, Java 8.


Thank you.

1 Reply

  • jashadip's avatar
    New Contributor

    Did you try importing the jars from SOAPUI lib folder?


    I was facing a similar issue, where i had added a maven dependency for only soapui. When I ran my junit tests it an returned an error similar to yours. Went through the smartbear junit-soap intergration page and  added all the soapui jars present in the "lib" folder to my project and now it is successfully executing the junit tests.


    You can find the documentation for it here.


    Excerpt : "Copy all the jar files from the lib folder for SoapUI Pro Installation folder in class file path. Copy the soapui-pro-5.0.0.jar (or corresponding version) from the bin folder in SoapUI Pro intallation directory."