org.eclipse.persistence.jaxb.JAXBContext无法强制转换为org.eclipse.persistence.jaxb.JAXBContext

时间:2014-04-03 10:31:32

标签: jaxb jax-ws

我有一个包含公开使用jaxws开发的SOAP服务的Web模块的EAR。 一切正常,但是当我有错误时,我会抛出新的BusinessFault(...)。 然后我得到以下错误。 EAR部署在WLS 12.1上,包含glassfish.jaxws.rt_2.0.0.0_2-2-5.jar。 由于错误消息完全没用。

如有必要,我会提供更多详细信息。

提前致谢

java.lang.ClassCastException:org.eclipse.persistence.jaxb.JAXBContext无法强制转换为org.eclipse.persistence.jaxb.JAXBContext         在com.sun.xml.ws.db.toplink.JAXBContextWrapper。(JAXBContextWrapper.java:78)         at com.sun.xml.ws.db.toplink.JAXBContextFactory.newContext(JAXBContextFactory.java:115)         at com.sun.xml.ws.spi.db.BindingContextFactory.create(BindingContextFactory.java:146)         在com.sun.xml.ws.message.jaxb.JAXBMe​​ssage.create(JAXBMe​​ssage.java:161)         在com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAP11Fault(SOAPFaultBuilder.java:423)         at com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAPFaultMessage(SOAPFaultBuilder.java:200)         at com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAPFaultMessage(SOAPFaultBuilder.java:188)         在com.sun.xml.ws.server.sei.TieHandler.createResponse(TieHandler.java:272)         在com.sun.xml.ws.server.sei.TieHandler.serializeResponse(TieHandler.java:338)         at com.sun.xml.ws.db.DatabindingImpl.serializeResponse(DatabindingImpl.java:200)         at com.sun.xml.ws.db.DatabindingImpl.serializeResponse(DatabindingImpl.java:264)         在com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:106)         在com.sun.xml.ws.api.pipe.Fiber .__ doRun(Fiber.java:892)         在com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:841)         在com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:804)         在com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:706)         at com.sun.xml.ws.server.WSEndpointImpl $ 2.process(WSEndpointImpl.java:430)         at com.sun.xml.ws.transport.http.HttpAdapter $ HttpToolkit.handle(HttpAdapter.java:640)         在com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:265)         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:163)         在weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)         在weblogic.wsee.jaxws.HttpServletAdapter $ AuthorizedInvoke.run(HttpServletAdapter.java:708)         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)         在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)         在weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)         在weblogic.wsee.jaxws.HttpServletAdapter $ 3.run(HttpServletAdapter.java:311)         在weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)         在weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)         在weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)         在javax.servlet.http.HttpServlet.service(HttpServlet.java:844)         在weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run(StubSecurityHelper.java:242)         在weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run(StubSecurityHelper.java:216)         在weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)         在weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)         在weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)         在weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.wrapRun(WebAppServletContext.java:3284)         at weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.run(WebAppServletContext.java:3254)         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)         在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)         在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)         在weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)         在weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)         在weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)         在weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)         在weblogic.servlet.provider.ContainerSupportProviderImpl $ WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)         在weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)         在weblogic.work.ExecuteThread.run(ExecuteThread.java:221) 03-Apr-2014 12:16:00 com.sun.xml.ws.transport.http.HttpAdapter $ HttpToolkit句柄 严重:org.eclipse.persistence.jaxb.JAXBContext无法强制转换为org.eclipse.persistence.jaxb.JAXBContext java.lang.ClassCastException:org.eclipse.persistence.jaxb.JAXBContext无法强制转换为org.eclipse.persistence.jaxb.JAXBContext         在com.sun.xml.ws.db.toplink.JAXBContextWrapper。(JAXBContextWrapper.java:78)         at com.sun.xml.ws.db.toplink.JAXBContextFactory.newContext(JAXBContextFactory.java:115)         at com.sun.xml.ws.spi.db.BindingContextFactory.create(BindingContextFactory.java:146)         在com.sun.xml.ws.message.jaxb.JAXBMe​​ssage.create(JAXBMe​​ssage.java:161)         在com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAP11Fault(SOAPFaultBuilder.java:423)         at com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAPFaultMessage(SOAPFaultBuilder.java:200)         at com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAPFaultMessage(SOAPFaultBuilder.java:188)         at com.sun.xml.ws.server.WSEndpointImpl $ 2.process(WSEndpointImpl.java:436)         at com.sun.xml.ws.transport.http.HttpAdapter $ HttpToolkit.handle(HttpAdapter.java:640)         在com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:265)         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:163)         在weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)         在weblogic.wsee.jaxws.HttpServletAdapter $ AuthorizedInvoke.run(HttpServletAdapter.java:708)         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)         在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)         在weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)         在weblogic.wsee.jaxws.HttpServletAdapter $ 3.run(HttpServletAdapter.java:311)         在weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)         在weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)         在weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)         在javax.servlet.http.HttpServlet.service(HttpServlet.java:844)         在weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run(StubSecurityHelper.java:242)         在weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run(StubSecurityHelper.java:216)         在weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)         在weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)         在weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)         在weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.wrapRun(WebAppServletContext.java:3284)         at weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.run(WebAppServletContext.java:3254)         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)         在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)         在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)         在weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)         在weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)         在weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)         在weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)         在weblogic.servlet.provider.ContainerSupportProviderImpl $ WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)         在weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)         在weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

0 个答案:

没有答案