Forum Discussion

abcfan's avatar
abcfan
New Contributor
12 years ago

"Failed to load sopaui project File" with maven

I am using soapui pro 4.6.2 with maven 3.1.1.

It seems that instead of using <projectFile> specified in pom.xml, default project file name is being used i.e. <artifact-id>-soapui-project.xml.

[DEBUG] Configuring mojo com.smartbear.soapui:soapui-maven-plugin:4.6.1:test from plugin realm ClassRealm[plugin>com.smartbear.soapui:soapui-maven-plugin:4.6.1, parent: sun.misc.Launcher$AppClassLoader@baf1915]
[DEBUG] Configuring mojo 'com.smartbear.soapui:soapui-maven-plugin:4.6.1:test' with basic configurator -->
[DEBUG] (f) globalProperties = []
[DEBUG] (f) projectFile = ms4-od-soapui-project.xml
[DEBUG] (f) projectProperties = []
[DEBUG] (f) soapuiProperties = {}
[DEBUG] -- end configuration --
SoapUI 4.6.1 Maven2 TestCase Runner
12:11:59,589 WARN [SoapUI] Missing folder [C:\Users\Vivek\Documents\DevSmokeProject\trunk\rni_support\Modularized\ms4-od\.\ext] for external libraries
12:11:59,829 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\Vivek\soapui-settings.xml]
12:12:00,541 INFO [SoapUI] File [C:\Users\Vivek\Documents\DevSmokeProject\trunk\rni_support\Modularized\ms4-od\ms4-od-soapui-project.xml] does not exist, trying URL instead
12:12:00,542 ERROR [SoapUI] An error occurred [no protocol: ms4-od-soapui-project.xml], see error log for details
java.net.MalformedURLException: no protocol: ms4-od-soapui-project.xml
at java.net.URL.<init>(URL.java:585)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:215)

at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:41)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:24)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:337)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:113)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] java.lang.Exception: Failed to load SoapUI project file [ms4-od-soapui-project.xml]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.614s
[INFO] Finished at: Mon Feb 17 12:12:00 EST 2014
[INFO] Final Memory: 13M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:4.6.1:test (default-cli) on project ms4-od: SoapUI Test(s) failed: SoapUI Test(s) failed
:
[ERROR] Failed to load SoapUI project file [ms4-od-soapui-project.xml]
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:4.6.1:test (default-cli) on project ms4-od: SoapUI Test(s) failed
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)








pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>GatewayModularizedTests</groupId>
<artifactId>ms4-od</artifactId>
<version>0.0.1-SNAPSHOT</version>
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro-maven-plugin</artifactId>
<version>4.6.2</version>
<dependencies>
<dependency>
<groupId>com.microsoft</groupId>
<artifactId>sqlserver2005-jdbc</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.16</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle-ojdbc6</artifactId>
<version>11.1.0.7.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>${project.basedir}/ms4-od-WebServiceStatusCheck-soapui-project.xml</projectFile>
<outputFolder>${project.basedir}/target/soapui-reports</outputFolder>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
  • abcfan's avatar
    abcfan
    New Contributor
    Just found out that everything works fine with soapui maven plugin version 4.5.1.....
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi abcfan
    regarding what you explain, the plugin behaves as if the projectFile parameter does not exist in your plugin configuration
    I have tested both pro and open source plugins and I didn't see this behaviour

    I have notice something strange in the information you provided
    You 1st say you are using "soapui pro 4.6.2" but the log shows that you are using the open source 4.6.1 maven plugin.
    Then you provide a pom with the use of soapui-pro-maven-plugin 4.6.2
    Could you explain please? Maybe you firs tried to use oss 4.6.1, then pro 4.6.2?
  • abcfan's avatar
    abcfan
    New Contributor
    Yes that is right...I tried plugin version 4.6.1 and 4.6.2... SoI might have mixed up the logs...
    But I still am not able to get it to run with plugin version 4.6.x
    Everything works fine with plugin v4.5.1