Ask a Question

Problem with external library and dependencies - SoapUi do not see class

Szajba
New Contributor

Problem with external library and dependencies - SoapUi do not see class

Hi,

I'm trying to run some java code from SoapUI I've builded jar with dependencies however while running I'm getting no class def found "ERROR:java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl".

Any idea what could be the problem?

 

 When I go to jar I see that ProviderImpl class is there.

 

Error log:

 

  • Fri Jul 10 13:24:03 CEST 2015:ERROR:cannot get error line number!
  • Fri Jul 10 13:24:03 CEST 2015:ERROR:java.lang.IllegalStateException: No match found
  • java.lang.IllegalStateException: No match found
  • at java.util.regex.Matcher.group(Unknown Source)
  • at com.eviware.soapui.support.GroovyUtils.extractErrorLineNumber(GroovyUtils.java:132)
  • at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:160)
  • at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250)
  • at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  • at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  • at java.lang.Thread.run(Unknown Source)
  • Fri Jul 10 13:24:03 CEST 2015:ERROR:java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl
  • java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl
  • at java.lang.ClassLoader.defineClass1(Native Method)
  • at java.lang.ClassLoader.defineClass(Unknown Source)
  • at java.security.SecureClassLoader.defineClass(Unknown Source)
  • at java.net.URLClassLoader.defineClass(Unknown Source)
  • at java.net.URLClassLoader.access$100(Unknown Source)
  • at java.net.URLClassLoader$1.run(Unknown Source)
  • at java.net.URLClassLoader$1.run(Unknown Source)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.net.URLClassLoader.findClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • at java.lang.Class.forName0(Native Method)
  • at java.lang.Class.forName(Unknown Source)
  • at java.util.ServiceLoader$LazyIterator.next(Unknown Source)
  • at java.util.ServiceLoader$1.next(Unknown Source)
  • at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Unknown Source)
  • at javax.xml.ws.spi.Provider.provider(Unknown Source)
  • at javax.xml.ws.Service.(Unknown Source)
  • at eu.europa.ec.rdg.jagate.ws.transaction.v2.TransactionServiceV2.(TransactionServiceV2.java:50)
  • at eu.europa.ec.rdg.jagate.business.transaction.v2.TransactionComponent.(TransactionComponent.java:43)
  • at eu.europa.ec.rdg.jagate.business.transaction.v2.TransactionComponent.getInstance(TransactionComponent.java:49)
  • at eu.europa.ec.rdg.jagate.business.transaction.v2.TransactionComponent.getService(TransactionComponent.java:86)
  • at eu.europa.ec.rtd.testautomation.datagenerator.services.jagate.JAgateTransactionService.(JAgateTransactionService.java:75)
  • at eu.europa.ec.rtd.testautomation.datagenerator.context.JAgateContext.getTransactionService(JAgateContext.java:48)
  • at eu.europa.ec.rtd.testautomation.datagenerator.jagate.workflow.AbstractAbacWorkflowStep.getTransactionStatus(AbstractAbacWorkflowStep.java:59)
  • at eu.europa.ec.rtd.testautomation.datagenerator.jagate.workflow.AbstractAbacWorkflowStep.processStep(AbstractAbacWorkflowStep.java:41)
  • at eu.europa.ec.rtd.testautomation.datagenerator.jagate.WorkflowHandler.completeWorkflow(WorkflowHandler.java:128)
  • at eu.europa.ec.rtd.testautomation.datagenerator.util.WorkflowHandlerUtil.completeWorkflow(WorkflowHandlerUtil.java:26)
  • at eu.europa.ec.rtd.testautomation.datagenerator.util.WorkflowHandlerUtil$completeWorkflow.call(Unknown Source)
  • at eu.europa.ec.rtd.testautomation.datagenerator.util.Script1.run(Script1.groovy:12)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92)
  • at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:79)
  • at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:138)
  • at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250)
  • at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  • at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  • at java.lang.Thread.run(Unknown Source)
  • Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl
  • at java.net.URLClassLoader$1.run(Unknown Source)
  • at java.net.URLClassLoader$1.run(Unknown Source)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.net.URLClassLoader.findClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • at java.lang.ClassLoader.loadClass(Unknown Source)
  • ... 40 more
6 REPLIES 6
nmrao
Community Hero

1. Have you restarted soapui after placing the jar file under SOAPUI_HOME/bin/ext directory?
2. Can soapui.log file be attached?


Regards,
Rao.
Szajba
New Contributor

Hi Rao,
Yes, it was restarted.
Log i will attach on Monday.

Thanks anyway.
Szajba
New Contributor

Rao,

here is the sopaui.log

 

Thanks

nmrao
Community Hero

Thank you for promptly uploading the log. Not sure in jar your class is.
See there could be different reasons that could lead to what you see.
http://stackoverflow.com/questions/1457863/what-is-the-difference-between-noclassdeffounderror-and-c...


Regards,
Rao.
Szajba
New Contributor

Hi Rao,

unfortunetly I already saw this item and class is in the jar.

I can run it from command line without problems(the same jar) so it seems that is a SOAPUI problem.

 

Any other sugestions ?

 

Thanks

 

nmrao
Community Hero

As you said it is working in the command line, that means you must be running soapUI testrunner, again it uses the same libraries. And at times it may be difficult to locate the class loading issue. May be keep looking on the net for other instances post by others to see if that helps.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: