【问题标题】:JAX-WS Deployement error + LocatableWebServiceException: class not found in runtime descriptorJAX-WS 部署错误 + LocatableWebServiceException:在运行时描述符中找不到类
【发布时间】:2009-09-24 14:21:58
【问题描述】:

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

【问题讨论】:

  • 你在这个问题上有什么突破吗?我在 tomcat 6 上面临同样的问题

标签: deployment tomcat jax-ws


【解决方案1】:

好像找不到类 webservices.jaxws.Math。

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

webservices/jaxws/Math.class 文件吗?

【讨论】:

    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

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

      【讨论】:

        猜你喜欢
        • 2011-06-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-01-10
        相关资源
        最近更新 更多