On Friday, February 24, 2012 11:48:47 AM kumarasamyr wrote:
> 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.

That likely is the proper solution.   I'm not sure why you consider this a 
workaround.   Basically, WebSphere contains an older version of wsdl4j (and 
some other jars) and you need to make sure we grab the newer versions for them 
to work with CXF.

Dan






> 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.LnSetu
> pLoanService 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.ja
> va: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(ChainInitiationOb
> server.java:123) at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDes
> tination.java:207) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servlet
> Controller.java:213) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:154) at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServ
> let.java:126) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractH
> TTPServlet.java:185) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServl
> et.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>       at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPSer
> vlet.java:164) at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
> 66) at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
> java:478) at
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
> r.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(Ht
> tpInboundLink.java:465) at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
> tpInboundLink.java:394) at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.j
> ava:274) at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscrimin
> ators(NewConnectionInitialReadCallback.java:214) at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewCon
> nectionInitialReadCallback.java:113) at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
> dCompletionListener.java:152) at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
> :213) at
> com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFutu
> re.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(ServiceWSDL
> Builder.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(ServiceWSDL
> Builder.java:283) ... 37 more
> 
> [2/22/12 19:34:25:969 EST] 00000025 LnSetupLoanSe I
> org.apache.cxf.services.LnSetupLoanService.LnSetupLoanServiceImplPort.LnSetu
> pLoanService 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:Faul
> t><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.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to