java webservice 启动,webService生成服务端以后,启动报错

在启动webService服务时遇到错误,具体表现为JAX-WS context listener初始化失败,原因是JAXB无法处理接口。错误详细信息显示www.tmzskj.com.bs.service.ChannelService接口没有无参构造函数,导致JAXBContext无法创建,从而影响了服务的正常启动。
摘要由CSDN通过智能技术生成

webService生成服务端之后,启动报错

信息: WSSERVLET12: JAX-WS context listener initializing

2013-9-12 15:35:47 com.sun.xml.ws.transport.http.servlet.WSServletContextListener parseAdaptersAndCreateDelegate

严重: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContext

javax.xml.ws.WebServiceException: Unable to create JAXBContext

at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:171)

at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:99)

at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:250)

at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:343)

at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:205)

at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)

at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257)

at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151)

at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)

at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:152)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)

at org.apache.catalina.startup.Catalina.start(Catalina.java:585)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions

www.tmzskj.com.bs.service.ChannelService is an interface, and JAXB can't handle interfaces.

this problem is related to the following location:

at www.tmzskj.com.bs.service.ChannelService

at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._return

at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse

www.tmzskj.com.bs.service.ChannelService does not have a no-arg default constructor.

this problem is related to the following location:

at www.tmzskj.com.bs.service.ChannelService

at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._return

at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)

... 33 more

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions

www.tmzskj.com.bs.service.ChannelService is an interface, and JAXB can't handle interfaces.

this problem is related to the following location:

at www.tmzskj.com.bs.service.ChannelService

at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._return

at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse

www.tmzskj.com.bs.service.ChannelService does not have a no-arg default constructor.

this problem is related to the following location:

at www.tmzskj.com.bs.service.ChannelService

at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._return

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值