Forum Discussion

Kronos_-_soapUI_1's avatar
Kronos_-_soapUI_1
Occasional Contributor
13 years ago

Running SoapUI project with HermesJMS in IntelliJ

Hi. I use IntelliJ Community to develop my scripts and then deploy in SoapUI. I'm trying to run a SoapUI suite programatically in IntelliJ that uses HermesJMS. I am using the HermesJMS libraries found in the SoapUI distribution. It runs fine from within the SoapUI application, but inside IntelliJ, it gives me an exception. Any ideas?

==========================================================================

javax.naming.NamingException: Session name 'foo' does not exist in Hermes configuration or path to Hermes config ( C:\.hermes )is not valid !!!!
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.getHermes(HermesUtils.java:209)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils$getHermes.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)16:56:29,493 ERROR [SoapUI] An error occured [Session name 'chalertr2' does not exist in Hermes configuration or path to Hermes config ( C:\.hermes )is not valid !!!!], see error log for details

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script1.run(Script1.groovy:22)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:149)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:77)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:638)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:73)
at com.eviware.soapui.model.testsuite.TestCase$run.call(Unknown Source)

2 Replies

  • Kronos_-_soapUI_1's avatar
    Kronos_-_soapUI_1
    Occasional Contributor
    After some digging around in the logs and trying other SoapUI hermes API calls, here is the root cause. Can you help me get out of this classloader hell? Is there a jar ordering dependency?

    ================================================
    Caught: javax.naming.NamingException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
    - with linked exception:
    [java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
    javax.naming.NamingException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
    - with linked exception:
    [java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
  • Hi,

    hmm... could you try removing all jaxb-related jars from the soapui plugin libraries folder to see if that helps!?

    regards,

    /Ole
    SmartBear Software