Forum Discussion

billybong's avatar
15 years ago

Can't read the hermes-config.xml file

I've started to look into testing JMS services with soapui and have a problem with finding my endpoints.
Hermes works fine, and I've set up sessions and destinations to IBM Websphere MQ which are browsable and able to put/get messages.

However when I try to add JMS endpoints to soapui it does not seem to find the c:\.hermes\hermes-config.xml file even though its there.
Defining endpoints manually for my requests does not work either as all I get from the logs is that the config-file cant be found:

"Hermes configuration is not valid. Please check that 'Hermes Config' project property is set to path of proper hermes-config.xml file"

My colleague has copied the file to his environment and he can get the session and endpoints correctly, so it's not a problem with the config file.

I also note that whenever I start up SoapUI I get the exception:
"Fri Nov 19 16:36:50 CET 2010:ERROR:An error occured [No message, linked exception is : null], see error log for details
Fri Nov 19 16:36:50 CET 2010:WARN:no HermesJMS context!"

I have set the correct hermes installation directory in my Preferences and I can startup hermes from SoapUI, so there should not be a problem there. I also went as far as trying to copy the required Websphere MQ jars into the %SoapUI"/bin/ext folder, but with the same result.

Any idea of how to solve my problem? I'm attaching the config-file, but as noted above, I dont think that the file is invalid since my colleague can use it. And what goes on with the HermesJMS context problem?

FYI I'm using SoapUI Pro 3.5.1 Build Date 2010/04/13 06:24, HermesJMS 1.13 installed separately and Sun JDK 1.6.0_18

Best regards

/Billy Sjöberg
  • Hi 2gether,
    I had a similar problem running soapUI 3.6.1 on linux.
    When I added the JMS endpoint the location for the hermes config was sth. like "/home/user\.hermes". As you can see there is an incorrect path separator in there (linux uses / instead of \).
    I recognized that soapUI doesnt seem to update the JMS sessions and stuff when you enter/browse a different path.
    So what I did, I downloaded the sources and changed the WsdlProject.java file (line 1471 method resolveHermesConfig should use File.separator instead of "\\").
    So for me line 1471 now looks like:

    return "${#System#user.home}" + File.separator + ".hermes";


    compiling this code and running soapUI solved the issue for me.
    Maybe as a quickfix you can just hardcode your correct path to the hermes config and recomplile the code yourself. If I suggest copying your hermes config to the exact location which is first displayed in the textbox when you try to add the JMS Endpoint, this might also solve the issue?!

    Let me know how it works out,

    best

    Korgen
  • Hello Billybong,

    Can you please post the hermes.log content, so that I can suggest you based on the error.

    Thanks
    Rohit Shingalapur
  • HI.

    The same issue I've got with v4.0.0 on Linux.

    Any help ?
  • I have rebuilt soapui as Korgen suggested... doesn't help
  • qrlJava's avatar
    qrlJava
    New Contributor
    I had same issue on Windows. It would work fine through GUI but throw above error when running testrunner from command prompt. I tried all combinations of path but didn't work. Following this link: http://sourceforge.net/tracker/index.ph ... tid=737763 I put the provider JAR files under soapui/bin/ext and it worked like a charm. Now only if I can figure out how to put env variable in the soapui project xml to point to hermes config.