严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an int
来源:互联网 发布:linux 软件安装方式 编辑:程序博客网 时间:2024/06/06 10:05
1、错误描述
严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an interface. class com.you.weixin.WeixinDelegatecom.sun.xml.ws.model.RuntimeModelerException: The serviceName cannot be retrieved from an interface. class com.you.weixin.WeixinDelegateat 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.WSServletContextListenercom.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.WeixinDelegateat 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.WeixinDelegateat 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 3
- 严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an int
- WSSERVLET11:failed to parse runtime descriptor: java.lang.LinkageError
- WSSERVLET11:failed to parse runtime descriptor: java.lang.LinkageError
- Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
- Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
- 映射异常: An association from the table tb_baoxiao refers to an unmapped class: int
- Swift outlet from the to the is invalid ,outlets cannot be connected to repeating
- How to Parse a string to an int? [C#]
- The requested URL could not be retrieved
- The requested URL could not be retrieved
- String cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- An SSL error has occurred and a secure connection to the server cannot be made
- An SSL error has occurred and a secure connection to the server cannot be made.
- What does it mean to be an Open Source author? A story from the inside
- Failed to parse plugin descriptor for org.apache.hadoop:hadoop-maven-plugins
- 类似Build Error: #513: a value of type "int" cannot be assigned to an entity of type "char *"
- There was a problem getting an AppDomain to run the transformation from the host. The process cannot
- cannot convert parameter 1 from 'int' to 'int []'
- Device Tree(三):代码分析
- Xcode 【本地git 篇(2)】
- ProgressBar进度条相关
- Android FrameWork——Touch事件派发过程详解
- linux
- 严重: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an int
- 1007
- ARM Linux 3.x的设备树(Device Tree)
- HDU 2063过山车
- java web笔记——随机图片验证码实现看不清换一张
- vim常用快捷键
- light oj1265 Island of Survivalm
- WebStorm下使用TypeScript
- Device Tree(一):背景介绍