0

我在java中生成一个使用这个语句的webservice

 new TPFServiceStub(webserviceUrl);

我在 8088 的肥皂 UI 中创建了一个模拟服务。我在 webserviceUrl 变量中传递的 URL 相同。所有依赖的 jar 都放在 axis_home 中。我收到以下错误。

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axiom/om/OMDataSource
    at com.arcot.csso.credchangereportsvc.dao.CIWebserviceDAO.getServiceObject

你能帮帮我吗:)

4

2 回答 2

0

您的部署类路径中有包含 OMDataSource 类的公理 jar?

于 2010-08-15T20:33:33.500 回答
0

我猜您用来实现 WebService 端点的库/框架使用 Apache Axiom 作为 SOAP 消息工厂。所以,你应该确保你的类补丁上有 Axiom jar。

您可以在此处获取 Apache Axiom 的最新二进制文件:http ://ws.apache.org/axiom/download.cgi

如果您已经是 Maven 的另一个快乐用户,您可以简单地将以下依赖项添加到您的pom.xml文件中:

<dependency>
    <groupId>org.apache.ws.commons.axiom</groupId>
    <artifactId>axiom</artifactId>
    <version>1.2.11</version>
    <type>pom</type>
    <scope>runtime</scope>
</dependency>
于 2011-05-30T13:20:01.770 回答