У меня есть устаревшее приложение, которое отлично работает на Java 1.6 и Weblogic 10.3.и мне нужно переместить его в java 1.8 и weblogic 12., поэтому я скомпилировал его с java 1.8 и развернул в weblogic 12. До сих пор у нас были проблемы с файлами .xsd, и они были решены.теперь он отображается как активный на экране консоли weblogic.
существуют веб-сервисы, которые предоставляются через apache cxf.я могу видеть конечные точки и службы, но когда я щелкаю по любому из них, чтобы получить wsdl, я получаю сообщение об ошибке, приведенное ниже.
До сих пор я пробовал эти шаги, которые я нашел в Интернете, но ничего не помогло:
* updated woodstox-core jar file to version 5 from 4.
* update weblogic xml file to use my stax.jar not systems one
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>org.codehaus.stax2.*</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
спасибо заранее ...
ошибка, которую я получил, когда хочу достичь wsdl
89519160 [qtp1388861484-84] WARN org.eclipse.jetty.server.AbstractHttpConnection - /ABCEndpoint? Wsdl java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance () Lorg / codehaus / stax2 / ri / EmptyIterator;в com.ctc.wstx.sw.OutputElementBase.getPrefixes (OutputElementBase.java:358) в org.apache.cxf.staxutils.StaxUtils.writeStartElement (StaxUtils.java:785) в org.apache.cxf.staxutils.(StaxUtils.java:733) в org.apache.cxf.staxutils.StaxUtils.copy (StaxUtils.java:697) в org.apache.cxf.staxutils.StaxUtils.copy (StaxUtils.java:621) в org.apache.cxf.wsdl11.SchemaSerializer.writeXml (SchemaSerializer.java:58) в org.apache.cxf.wsdl11.SchemaSerializer.marshall (SchemaSerializer.java:49) в oracle.j2ee.ws.wsdl.extensions.lejava: 138) в oracle.j2ee.ws.wsdl.xml.WSDLWriterImpl.writeDefinition (WSDLWriterImpl.java:217) в oracle.j2ee.ws.wsdl.xml.WSDLWriterImpl.writeWSDjIl1j1j1j11L11L11L11L11L11L11L11L11L11L1.ws.wsdl.xml.WSDLWriterImpl.writeWSDL (WSDLWriterImpl.java:126) при oracle.j2ee.ws.wsdl.xml.WSDLWriterImpl.getDocument (WSDLWriterImpl.java:49) при org.apache.cxf.frontend.WSDLGetUtils.writeWSDLDocument(WSDLGetUtils.java:673) в org.apache.cxf.frontend.WSDLGetUtils.getDocument (WSDLGetUtils.java:150) по адресу org.apache.cxf.frontend.WSDLGetInterceptor.getDocument (WSDLGetInterceptor.java:129) по адресу org.apache.cxfessetor.LD.InD.LD.Inter.LD77) на org.apache.cxf.phase.PhaseInterceptorChain.doIntercept (PhaseInterceptorChain.java:272) на org.apache.cxf.transport.ChainInitiationObserver.onMessage (ChainInitiationObserver.javat.tport.jct.pache.tp.tache.tache.tache) .t1).JettyHTTPDestination.: 66) в org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1088) в org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1024) в org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:135) в org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:255) в org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:116) в org.eclipse.jetty.server.Server.handle (Server.jj)370) в org.eclipse.jetty.server.AbstractHttpConnection.handleRequest (AbstractHttpConnection.java:494) в org.eclipse.jetty.server.AbstractHttpConnection.headerComplete (AbstractHttpConnection.javajetl.t.$ RequestHandler.headerComplete (AbstractHttpConnection.java:1033) в org.eclipse.jetty.http.HttpParser.parseNext (HttpParser.java:644) в org.eclipse.jetty.http.HttpParail.arse.arseorg.eclipse.jetty.server.AsyncHttpConnection.handle (AsyncHttpConnection.java:82)в org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle (SelectChannelEndPoint.java:696)
в org.eclipse.jetty.io.nio.SelectChannelEndPoint $ 1.run (SelectChannelEndPoint.java:53)
в org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:608)
в org.eclipse.jetty.util.thread.QueuedThreadPool $ 3.run (QueuedThreadPool.java:543)
на java.lang.Thread.run (Thread.java:748