I'm developing webservice using CXF 2.5.1, Spring 3.1.0, Websphere 6.1 and JDK 1.5. Its working fine with proper client program. but if I try to generate the WSDL from IE, getting error(says something configuration error) related to wsdl4j-1.6.2.jar.
In order to generate WSDL from IE, WebSphere server classpath order has to be modified(Application first) but this is just the work around. Need to find out the proper solution. Here is what I have done till now. I copied the jar from CXF bundle. I placed it inside WEB-INF/lib directory and mentioned in project build classpath Also I tried creating the shared library with wsdl4j jar and referenced in server console. Still getting the error. I have attached the error as a text file for your reference. WSDL getting generated only when I change the classloader order in server console from parent to last. did you face this problem in your experience ? Thanks Kumar [2/22/12 19:34:25:625 EST] 00000025 LnSetupLoanSe I org.apache.cxf.services.LnSetupLoanService.LnSetupLoanServiceImplPort.LnSetupLoanService Inbound Message ---------------------------- ID: 1 Address: http://localhost:9081/MortgageGateway/soap/LnSetupLoanService?wsdl Http-Method: GET Content-Type: Headers: {Accept=[*/*], accept-encoding=[gzip, deflate], Accept-Language=[en-us], connection=[Keep-Alive], Content-Type=[null], Host=[localhost:9081], User-Agent=[Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)]} -------------------------------------- [2/22/12 19:34:25:719 EST] 00000025 PhaseIntercep W org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging Interceptor for {http://LnSetupLoanService.manulife.com}LnSetupLoanService has thrown exception, unwinding now org.apache.cxf.frontend.WSDLQueryException: Exception occurred while trying to process http://localhost:9081/MortgageGateway/soap/LnSetupLoanService at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:248) at org.apache.cxf.frontend.WSDLGetInterceptor.getDocument(WSDLGetInterceptor.java:158) at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:110) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213) at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510) Caused by: java.lang.RuntimeException: Problem creating schema implementation at org.apache.cxf.wsdl11.ServiceWSDLBuilder.getSchemaImplementation(ServiceWSDLBuilder.java:285) at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:314) at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:198) at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:158) at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:174) ... 33 more Caused by: WSDLException: faultCode=CONFIGURATION_ERROR: No Java extensionType found to represent a '{http://www.w3.org/2001/XMLSchema}schema' element in the context of a 'javax.wsdl.Types'.: at javax.wsdl.extensions.ExtensionRegistry.createExtension(Unknown Source) at org.apache.cxf.wsdl11.ServiceWSDLBuilder.getSchemaImplementation(ServiceWSDLBuilder.java:283) ... 37 more [2/22/12 19:34:25:969 EST] 00000025 LnSetupLoanSe I org.apache.cxf.services.LnSetupLoanService.LnSetupLoanServiceImplPort.LnSetupLoanService Outbound Message --------------------------- ID: 1 Response-Code: 500 Encoding: UTF-8 Content-Type: text/xml Headers: {} Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception occurred while trying to process http://localhost:9081/MortgageGateway/soap/LnSetupLoanService</faultstring></soap:Fault></soap:Body></soap:Envelope> -------------------------------------- -- View this message in context: http://cxf.547215.n5.nabble.com/WSDLException-faultCode-CONFIGURATION-ERROR-org-apache-cxf-frontend-WSDLQueryException-tp5513793p5513793.html Sent from the cxf-user mailing list archive at Nabble.com.
