2015-01-12 94 views
-1

我遇到了一個錯誤嘗試使用的soapUI Maven插件來測試WS:的soapUI Maven插件JMS沒有找到

15:06:45,391 ERROR [AbstractTestRunner] Exception during Test Execution 
java.lang.NoClassDefFoundError: javax/jms/JMSException 
    at com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry.<clinit>(RequestTransportRegistry.java:47) 
    at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:240) 
    at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:419) 
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:239) 
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52) 
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:152) 
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:47) 
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:744) 
Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException 
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) 
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) 
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) 
    ... 13 more 

我POM是像soapUI的網站爲例。

我想只是我的WS運行一個簡單的測試:

<pluginRepositories> 
     <pluginRepository> 
      <id>smartbear-sweden-plugin-repository</id> 
      <url>http://www.soapui.org/repository/maven2/</url> 
     </pluginRepository> 
    </pluginRepositories> 

    <properties> 
     <soapui.version>5.0.0</soapui.version> 
    </properties> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>com.smartbear.soapui</groupId> 
       <artifactId>soapui-maven-plugin</artifactId> 
       <version>${soapui.version}</version> 
       <executions> 
        <execution> 
         <phase>test</phase> 
         <goals> 
          <goal>test</goal> 
         </goals> 
         <configuration> 
          <projectFile>test-soapui-project.xml</projectFile> 
         </configuration> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 

我tryed到依賴性增加的插件和/或進行插件JMS。 這從何而來? 任何人都有這個錯誤嗎? 我錯過了什麼?

+0

'configuration'假設爲'plugin'的子元素。 – SiKing

+0

在這裏它並不是http://www.soapui.org/Test-Automation/maven-2x.html中的完整例子,我仍然在配置中看到插件中的錯誤。 – Sirttas

+0

我認爲該頁面上的「完整示例」是錯誤的。 – SiKing

回答