Hi All,

This is something slightly out of the topic. But I did not get a reply from
the CXF users group and hence posting it here so that someone knowledgeable
could help me out.


We have a slightly customized Tomcat bundled with the product.



Directory Structure

<product_root>/jre/lib.ext

<product_root>/Tomacat_instance/webapps/*cxfws/*

Under cxfws/WEB-INF  folder, following contents are present

wsdl folder (contains wsdl and xsd files)

cxf-beans.xml

web.xml

CXF related jars are copied to /jre/lib/ext

The Apache CXF based SOAP web services works fine in a setup with internet
connection available. However, it does not load in a setup with no internet
connection available. (parsing failure occurs).The wsdl files depend on a
couple of .xsd files which in turn references many external online sites.
(like http://www.w3.org/2000/09/xmldsig#) An extract from the error getting
is something similar as follows. (from catalina.log)


*javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem
parsing file *

*/........../webservices/WEB-INF/wsdl/xxx.xsd java.net.UnknownHostException
www.w3.org <http://www.w3.org> errors*

*//callstack*

















*Caused by: javax.wsdl.WSDLException: WSDLException (at
/definitions/types/xs:schema/xsd:schema/schema): faultCode=PARSER_ERROR:
Problem parsing
'file:/opt/Entrust/GetAccess/infrastructure/instance1/webapps/asicxfws/WEB-INF/wsdl/xmldsig-core-schema.xsd'.:
java.net.UnknownHostException: www.w3.org <http://www.w3.org> at
com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:864) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:864) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:654) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:610) at
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:320)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2352) at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2338) at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:255)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:165)
at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
... 43 moreCaused by: java.net.UnknownHostException: www.w3.org
<http://www.w3.org> at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)*

Is it possible to have web services loaded without validating wsdl files or
any other way to resolve this issue? The cxf-beans.xml too has external
references.

Does bundling CXF related jars in

<product_root>/Tomacat_instance/webapps/cxfws*/*WEB-INF/lib make any
difference?

Regards,

George

Reply via email to