严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an int

1、错误描述

严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an interface.  class com.you.weixin.WeixinDelegate
com.sun.xml.ws.model.RuntimeModelerException: The serviceName cannot be retrieved from an interface.  class com.you.weixin.WeixinDelegate
	at com.sun.xml.ws.model.RuntimeModeler.getServiceName(RuntimeModeler.java:1223)
	at com.sun.xml.ws.server.EndpointFactory.getDefaultServiceName(EndpointFactory.java:356)
	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:230)
	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
	at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
四月 20, 2016 11:59:45 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an interface.  class com.you.weixin.WeixinDelegate
	at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:118)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.xml.ws.model.RuntimeModelerException: The serviceName cannot be retrieved from an interface.  class com.you.weixin.WeixinDelegate
	at com.sun.xml.ws.model.RuntimeModeler.getServiceName(RuntimeModeler.java:1223)
	at com.sun.xml.ws.server.EndpointFactory.getDefaultServiceName(EndpointFactory.java:356)
	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:230)
	at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
	at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
	... 13 more

2、错误原因

/**
 *
 * @title:Weixin.java
 * @Package:com.you.weixin.model
 * @Description:<h3>一句话描述功能</h3>
 * @author:
 * @date:2016-4-20下午11:55:45
 * @version V1.0
 *
 */
package com.you.weixin.model;

import com.you.weixin.WeixinDelegate;
import com.you.weixin.WeixinService;

/**
 *
 * 项目名称:UserService
 * 类名称:Weixin
 * 类描述:
 * 创建人:
 * 创建时间:2016-4-20下午11:55:45
 * 修改人:
 * 修改时间:2016-4-20下午11:55:45
 * 修改备注:
 * @version V1.0
 *
 */
public class Weixin 
{
	/**
	 * 
	 * 方法名:main
	 * 方法类型:Weixin
	 * 参数:@param args
	 * @return :void
	 * @throws
	 */
	public static void main(String[] args)
	{
		WeixinService weixin = new WeixinService();
		WeixinDelegate weixinDe = weixin.getWeixinPort();
		String result = weixinDe.findResult("you");
		System.out.println(result);
	}

}

         在创建了Web Service项目,接着生成客户端调用代码,发现出现这个错误


3、解决办法

  • 0
    点赞
  • 0
    收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:代码科技 设计师:Amelia_0503 返回首页
评论 4

打赏作者

翱翔天地

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值