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

错误描述:com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
严重: 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:158)
at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:262)
at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:322)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:188)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
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:4205)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
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:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
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:840)
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:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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: 4 counts of IllegalAnnotationExceptions
com.talkweb.apframe.common.service.ResourceService is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.talkweb.apframe.common.service.ResourceService
at private com.talkweb.apframe.common.service.ResourceService com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService
com.talkweb.apframe.common.service.ResourceService does not have a no-arg default constructor.
this problem is related to the following location:
at com.talkweb.apframe.common.service.ResourceService
at private com.talkweb.apframe.common.service.ResourceService com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService
com.talkweb.foundation.database.DataBaseDao is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.talkweb.foundation.database.DataBaseDao
at private com.talkweb.foundation.database.DataBaseDao com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao
com.talkweb.foundation.database.DataBaseDao does not have a no-arg default constructor.
this problem is related to the following location:
at com.talkweb.foundation.database.DataBaseDao
at private com.talkweb.foundation.database.DataBaseDao com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao

at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148)
... 32 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
com.talkweb.apframe.common.service.ResourceService is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.talkweb.apframe.common.service.ResourceService
at private com.talkweb.apframe.common.service.ResourceService com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService
com.talkweb.apframe.common.service.ResourceService does not have a no-arg default constructor.
this problem is related to the following location:
at com.talkweb.apframe.common.service.ResourceService
at private com.talkweb.apframe.common.service.ResourceService com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetResourceService
com.talkweb.foundation.database.DataBaseDao is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.talkweb.foundation.database.DataBaseDao
at private com.talkweb.foundation.database.DataBaseDao com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao
com.talkweb.foundation.database.DataBaseDao does not have a no-arg default constructor.
this problem is related to the following location:
at com.talkweb.foundation.database.DataBaseDao
at private com.talkweb.foundation.database.DataBaseDao com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao.arg0
at com.talkweb.ecard.storage.service.impl.jaxws.SetDataBaseDao

at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:153)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:149)
... 34 more

解决办法:JAX-WS中不能用接口
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值