今天,我的Web服务出现了以下错误。这是由于我的Web服务的迁移(从Weblogic 10.3.4上的JDK6迁移到Weblogic 12.1.3上的JDK7)。这真的让我很害怕。我不确定是代码程序还是Weblogic服务器的问题?
Error 500--Internal Server Error
java.lang.ClassCastException: org.apache.axis2.wsdl.util.WSDLDefinitionWrapper cannot be cast to oracle.j2ee.ws.wsdl.DefinitionImpl
at oracle.j2ee.ws.wsdl.xml.WSDLWriterImpl.writeWSDL(WSDLWriterImpl.java:87)
at org.apache.axis2.description.AxisService.printDefinitionObject(AxisService.java:1031)
at org.apache.axis2.description.AxisService.printUserWSDL(AxisService.java:1058)
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1332)
at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:198)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:258)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3432)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
1条答案
按热度按时间ioekq8ef1#
得到了同样的错误,从来没有明白为什么,从来没有遇到任何适当的解决方案。
了解到javax.servlet.jsp.jstl.jar和javax.servlet.jsp.jstl-api.jar库在默认情况下没有添加到我的WEB-INF/lib文件夹中,添加了这两个库,当我重新运行Web应用程序时,一切都正常工作。