Forum Discussion
jkester
14 years agoOccasional Contributor
For me only adding junit dependency was not enough. I also had to add dependency for xmlbeans. Adding junit dep did help me a lot though, as it made the reason why this was failing more visible.
My failing asserts gave me a runtime exception now:
: RuntimeException: Trying XBeans
path engine... Trying XQRL... Trying delegated path engine... FAILED on //Response[1]/e[1]/tags[1]/e[1]/text()
I first checked with testrunner that the same test did work using soapui without maven:
bin\testrunner.bat -s layerId-stable C:\develop\SOAPUIprojects\FunctionalTests123.xml
As these were working fine, it had to be a classpath issue.
I checked in the lib directory of soapui installation, and noticed a jar xbean_xpath-2.4.0.jar. Due to its name, that was my best candidate.
The jar had been renamed for soapui installation, but inside the jar I could see which packages were required. Now on maven repository I could track the second missing dep:
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans-xpath</artifactId>
<version>2.4.0</version>
</dependency>
Seems to be working now.
My failing asserts gave me a runtime exception now:
: RuntimeException: Trying XBeans
path engine... Trying XQRL... Trying delegated path engine... FAILED on //Response[1]/e[1]/tags[1]/e[1]/text()
I first checked with testrunner that the same test did work using soapui without maven:
bin\testrunner.bat -s layerId-stable C:\develop\SOAPUIprojects\FunctionalTests123.xml
As these were working fine, it had to be a classpath issue.
I checked in the lib directory of soapui installation, and noticed a jar xbean_xpath-2.4.0.jar. Due to its name, that was my best candidate.
The jar had been renamed for soapui installation, but inside the jar I could see which packages were required. Now on maven repository I could track the second missing dep:
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans-xpath</artifactId>
<version>2.4.0</version>
</dependency>
Seems to be working now.