Forum Discussion

jlandman's avatar
jlandman
Regular Visitor
8 years ago

Hermes config not found on Linux

We are trying to setep automatic regression testing using Jenkins, Maven and Soap UI + HermesJMS.

On Windows we have the following configuration working:

 

- <project dir.>/soapui-settings.xml

  Contains 

<con:setting id="ToolsSettings@hermesjms">src/test/resources/hermes</con:setting>

   referring to Hermes config dir

- <project dir>/src/test/resources/hermes/lib
  containing all hermes lib jars

- <project dir>/src/test/resources/hermes/hermes-config.xml

- <project dir>/CreateLoanApplication.xml
  Contains 

  

<con:setting id="ProjectSettings@hermesConfig">src/test/resources/hermes</con:setting>

  referring also to Hermes config dir

 

- <project dir>/pom.xml
  configuring the maven soap UI plugin:

<profiles>
<profile>
<id>integration-tests</id>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.5.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>CreateLoanApplication.xml</projectFile>
<junitReport>true</junitReport>
<outputFolder>${project.build.directory}/surefire-reports</outputFolder>
<testFailIgnore>true</testFailIgnore>
<settingsFile>soapui-settings.xml</settingsFile>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.tibco</groupId>
<artifactId>adapter</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>




When we execute the Maven test goal on Windows this runs succesful.

 

But when we try to run this on Linux via Jenkins then we get the following error:

[SoapUI] An error occured [Session name 'CreateLoanApplication-T-Phase2' does not exist in Hermes configuration or path to Hermes config ( /src/test/resources/hermes )is not valid !!!!]

So it seems that the Hermes config dir can't be found on Linux.

I have tried different alternatives to change the

ProjectSettings@hermesConfig

 to refer directly to the Hermes config dir but nothing was succesful.

 

 

I hope somebody from the Community can help.

 

Kind regards,

 

Jeroen Landman

No RepliesBe the first to reply