Forum Discussion

soapuiframework's avatar
soapuiframework
Occasional Contributor
11 years ago

getting error while running test using SoapUI Runner

Can anyone please help me in fixing the below error. I am trying to run soapui test in intellji, however I am not able to run successfully.

ERROR:

soapUI 4.5.1-SNAPSHOT TestCase Runner 22:55:12,251 WARN [SoapUI] Missing folder [C:\Users\glenys\IdeaProjects\webservice.\ext] for external libraries 22:55:12,257 INFO [DefaultSoapUICore] Creating new settings at [C:\Users\glenys\soapui-settings.xml]

java.lang.NoClassDefFoundError: com/eviware/soapui/config/SoapuiSettingsDocumentConfig$Factory at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:253) at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:146) at com.eviware.soapui.DefaultSoapUICore.(DefaultSoapUICore.java:136) at com.eviware.soapui.tools.AbstractSoapUIRunner.createSoapUICore(AbstractSoapUIRunner.java:178) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:146) at availabilityH4u.CheckingAvail(availabilityH4u.java:11) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.ClassNotFoundException: com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 32 more
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, it seems that some dependencies are missing in your classpath.
    See this post for more information viewtopic.php?f=2&t=20826. It should help you to add soapui jar that contain xmlbeans generated code.
    Note: with SoapUI 4.5.2, generated code is directly stored in the soapui jar
  • soapuiframework's avatar
    soapuiframework
    Occasional Contributor
    Hi,

    Thank you for the reply. I have read the suggested topic, however till I have added 20 jars manually and still not successful.

    Could you please advise the solution, when I was using soapui4.0.1.jar I used to just add Junit and Soapui jar that's it, but it looks like now it is asking me to all dependency. Is there a full package available as before?

    Best Regards,
    Kam
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, the easiest way is to use a dependency management tool (ivy, gradle, maven, ...) to avoid that kind of problem
    Alternatively, add all the jar from the SoapUI GUI lib directory (89 for SoapUI 4.5.1)

    did you also add the xbean-fixed-2.4.0.jar?