JAX-WS Deployement error + LocatableWebServiceException:在运行时描述符中找不到类

时间:2009-09-24 14:21:59

标签: deployment tomcat jax-ws

我在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)

3 个答案:

答案 0 :(得分:1)

看起来无法找到类webservices.jaxws.Math。

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

是否有webservices/jaxws/Math.class个文件?

答案 1 :(得分:0)

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

答案 2 :(得分:0)

您是否在sun-jaxws.xml中引用了Math?我认为java.lang.Math更有可能被错误命名,而不是有一个webservices.jaxws.Math类(我在我的jax-ws版本中没有看到副本)。