webwervice发布时出错 java.security.PrivilegedActionException
来源:互联网 发布:2017社交聊天软件 编辑:程序博客网 时间:2024/06/06 01:49
错误信息:
信息: Dynamically creating response wrapper bean Class com.potevio.ws.jaxws.DealReqResponse
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to create JAXBContext
at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153)
at com.sun.xml.internal.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83)
at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:244)
at com.sun.xml.internal.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:312)
at com.sun.xml.internal.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:178)
at com.sun.xml.internal.ws.api.server.WSEndpoint.create(WSEndpoint.java:456)
at com.sun.xml.internal.ws.api.server.WSEndpoint.create(WSEndpoint.java:475)
at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:213)
at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:143)
at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:102)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at com.potevio.ws.SessionGatewayWs.main(SessionGatewayWs.java:79)
Caused by: java.security.PrivilegedActionException: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 10 counts of IllegalAnnotationExceptions
at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)
at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:95)
at com.sun.xml.internal.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:97)
at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148)
at com.sun.xml.internal.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:140)
... 13 more
错误原因:
服务类中的方法有用throws Exception抛出异常
解决办法:
使用try{} catch 在类内部捕获异常并处理异常
另外一点:服务修改后一定要记得重新发布,否则客户端访问的仍是上次发布的,容易引起错误。
- webwervice发布时出错 java.security.PrivilegedActionException
- TROUBLESHOOTING: java.security.PrivilegedActionException
- tomcat 5.5 调用 jboss 5.0 EJB java.security.PrivilegedActionException:
- 招商银行 支付接口开发 部署时出错分析 java.lang.NoClassDefFoundError: cmb/netpayment/Security Sette
- 发布BizTalk Application 时出错
- 调用外部webwervice测试
- 通过ArcCatalog发布服务时出错
- java security
- java security
- java.security
- java security
- java.security
- Java Security
- Java Security
- J2ME如何调用.net webwervice?
- 日志发布出错-Test
- iis发布出错
- bcb发布release出错
- Marklogic search development -2.3Search Term Completion Using search:suggest
- 随笔
- 排序问题
- Linux虚拟化技术Xen和KVM的优势特点对比
- 使用dgmgrl 切换报错 ORA-03113: end-of-file on communication channel
- webwervice发布时出错 java.security.PrivilegedActionException
- 第2章 栈
- AsyncTask总结(经典,附带源码)
- Linux 设置apache,mysql开机启动
- GNU nano使用简要说明
- 泛虚拟化技术(以Xen为例)
- UAP开发
- Paper Notes: Fast unfolding of communities in large networks
- 确保线程结束之前,传递给线程回调函数的参数的有效性