0

我已经在 Tomcat 中部署了 JAX-WS Web 服务,并且在我重新启动 Tomcat 服务器时。我在控制台上收到此错误。

我已经按照此链接中给出的指南在 web.xml 和 sun-jaxws.xml 中输入了条目 - http://www.jroller.com/eldaaran/entry/using_jax_ws_2_0

请指教。

SEVERE: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.exception.LocatableWebServiceException: class not found in runtime descriptor: webservices.jaxws.Math
at line 6 of jndi:/localhost/jaxws/WEB-INF/sun-jaxws.xml

com.sun.xml.ws.util.exception.LocatableWebServiceException: class not found in runtime descriptor: webservices.jaxws.Math at line 6 of jndi:/localhost/jaxws/WEB-INF/sun-jaxws.xml
        at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.getImplementorClass(DeploymentDescriptorParser.java:525)
        at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:201)
        at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:132)
        at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:93)
4

3 回答 3

1

看起来类 webservices.jaxws.Math 找不到。

我在网上找不到对这个类的任何引用,所以我只能假设它是一个自定义类,或者使用了错误的命名空间。

webservices/jaxws/Math.class文件吗?

于 2009-09-24T14:38:06.940 回答
0

webservices.jaxws.Math似乎是您的端点实现类。这个类是否被很好地打包和部署?你确定它在类路径中吗?

于 2009-09-24T14:40:46.373 回答
0

您在 sun-jaxws.xml 中有对 Math 的引用吗?我认为 java.lang.Math 被错误命名的可能性略高于 webservices.jaxws.Math 类(我在我的 jax-ws 版本中没有看到副本)。

于 2009-09-24T14:45:19.673 回答