I have a wsdl and set of associated XSD files (attached) that causes the javax.xml.ws.Service within CXF to hang within it's constructor.
All I do is make the call: CDAService cdaService = new CDAService(wsdlURL, new QName(cdaNamespace, cdaServiceName)); CDAService extends javax.xml.ws.Service and simply calls super(wsdlURL,namespace) within the constructor. The reason why it is hanging is because multiple http GETs are being made on the XSDs on two connections (details below) which I assume is causing some sort of a deadlock. I have created another similar service that uses the large "DATEXIISchema_1_0_1_0.xsd", but this seems to get the WSDL in one GET then all the XSDs in another single GET. I can only think it's some specific way in which my wsdl and XSDs are structured or a different service provider is being used, but I can't for the life of me figure out what is it. HTTP GETs: First connection: ------------------------ GET /SubscriptionManager?wsdl HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegCDA.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=DATEXIISchema_1_0_1_0.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTYP.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegCDA-Tables.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTEC.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=DATEXIISchema_1_0_1_0.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive ------------------------------------------------------------------- Second connection (that starts before the first is complete): ------------------------------------------------------------------- GET /SubscriptionManager?xsd=tpegTYP.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegCDA.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTYP.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegCDA-Tables.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTEC.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTYP.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=tpegTEC-Tables.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=DATEXIISchema_1_0_1_0.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive GET /SubscriptionManager?xsd=DATEXIISchema_1_0_1_0.xsd HTTP/1.1 User-Agent: Java/1.5.0_16 Host: localhost:7777 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive http://www.nabble.com/file/p20090523/Schema.zip Schema.zip -- View this message in context: http://www.nabble.com/javax.xml.ws.Service-hangs-while-getting-wsdl-tp20090523p20090523.html Sent from the cxf-dev mailing list archive at Nabble.com.