Forum Discussion

sha09's avatar
sha09
Occasional Contributor
9 years ago

NoClassDefFoundError: com/eviware/soapui/tools/SoapUITestCaseRunner JUnit SoapUI

Hello,
I am getting a NoClassDefFoundError when trying to build my project.

I can run my test cases successfully, but when I try to build my project I get the following error.

Can anybody please suggest what I am missing?

I am using SoapUI 5.0.0, I have the same problem with 5.2.1.

 

I am using the codes mentioned in:

https://www.soapui.org/test-automation/junit/junit-integration.html

 

Thank you.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • I tried to manually dowload the jar files to reposittory and it seems to be working now.

    Anyways thank you for your help.!

  • nmrao's avatar
    nmrao
    Champion Level 3

    Include SOAPUI_HOME/bin/soapui-xxx.jar into your classpath.

    Note:xxx refers to version.

    • sha09's avatar
      sha09
      Occasional Contributor

      hello Rao,

       

      I included the classpath in windows - environmental variable.

      I have also added the SoapUI jar in build path -Libraries.

       

      If I try to run the test cases, it runs normally. But when I do the run as -> Maven test. I get

      (package com.eviware.soapui.*) errors.

       

      Can you please suggest what is going wrong here, or did I missed something?

       

      Thank you!

      • nmrao's avatar
        nmrao
        Champion Level 3
        Hmm. can't comment at the moment. Would it be possible to attach SoapUIProjectRunTest.java?