Forum Discussion

dwhitlock's avatar
12 years ago

Soapui error in Maven

I am attempting to run soapui thru maven. This is the error that I get:

2014-01-17 08:31:57,685 WARN [SoapUI] Missing folder [c:\CVS_ROOT\di.test.integration\di.test.cloud.core\.\ext] for external libraries
2014-01-17 08:31:57,815 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\David\soapui-settings.xml]
2014-01-17 08:31:58,285 ERROR [SoapUI] An error occured [Failed to load project from file [file:/c:/CVS_ROOT/di.test.integration/di.test.cloud.core/src/test/xml/StartWorkersForCI-soapui.xml]], see error log for details
2014-01-17 08:31:58,285 ERROR [errorlog] com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/c:/CVS_ROOT/di.test.integration/di.test.cloud.core/src/test/xml/StartWorkersForCI-soapui.xml]
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/c:/CVS_ROOT/di.test.integration/di.test.cloud.core/src/test/xml/StartWorkersForCI-soapui.xml]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:404)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:234)
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:319)
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:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.xmlbeans.XmlException: Element testSuite@http://eviware.com/soapui/config is not a valid soapui-project@http://eviware.com/soapui/config document or a valid substitution.
at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:328)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1279)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source)
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:314)

I am not sure what the problem is attached is a zip of my soapui project file and my pom

2 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, could you check and tell us what is the version of the maven plugin you use and also the version you use to create the project (you can find this information at the top of the xml project file) ?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    ok, i've just check your zip file. You did not provide a soapui project xml file.
    It seems that the xml file is a testsuite element of a composite project.

    If you want to use a composite project, in your maven configuration, set the projectFile parameter to the path to the root directory of your composite project