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 が見つからないようです。

Web 上でこのクラスへの参照が見つからないため、カスタム クラスであるか、間違った名前空間が使用されているとしか考えられません。

ファイルはあり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 への参照がありますか? webservices.jaxws.Math クラスが存在するよりも、java.lang.Math の名前が間違っている可能性がわずかに高いと思います (私のバージョンの jax-ws にはコピーがありません)。

于 2009-09-24T14:45:19.673 に答える