Unable to resolve real hostname for wsdl look up

igbch's picture
Hi everybody, I use wso2 esb 2.1.3 on IBM AIX with IBM JDK. So far wso2 esb is up and running. The only problem I have is to configure a proxy WebService. I had a look to all the posts and tutorials and I get always the same error: HTTPSender - Unable to sendViaPost to url[http://localhost:8280/services/RegistryEventingService] This error happens, when I try to look up the wsdl1.1 or wsdl2.0 definition. Instead of localhost there should be the . If I use http://:9443/?wsdl, I get the wsdl definition. But I think this is not the right way to use it. Thanks in advance for any help on this problem. regards, Igor
igbch's picture

Additional information

I have the following debug trace of what happens:

Why ServiceData.xml is not found? Is this normal?

best regards,

Igor

2010-02-04 13:47:04,716 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: []; ready ops: []]: Set event [r]
2010-02-04 13:47:04,721 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler HTTP connection [/10.51.240.225:2377]: Connected
2010-02-04 13:47:04,721 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler New incoming connection
2010-02-04 13:47:04,722 [-] [http-Listener I/O dispatcher-1] DEBUG DefaultNHttpServerConnection Consume input
2010-02-04 13:47:04,727 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: [r]; ready ops: [r]]: 560 bytes read
2010-02-04 13:47:04,732 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler HTTP connection [/10.51.240.225:2377]: GET /services/MIX_Mitarbeiter?wsdl HTTP/1.1
2010-02-04 13:47:04,732 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: [r]; ready ops: [r]]: Set attribute http.request
2010-02-04 13:47:04,732 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: [r]; ready ops: [r]]: Remove attribute REQUEST_READ
2010-02-04 13:47:04,733 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: [r]; ready ops: [r]]: Set attribute synapse.response-source-buffer
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> GET /services/MIX_Mitarbeiter?wsdl HTTP/1.1
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Host: 10.99.3.213:8280
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Accept-Encoding: gzip,deflate
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Keep-Alive: 300
2010-02-04 13:47:04,737 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Connection: keep-alive
2010-02-04 13:47:04,738 [-] [http-Listener I/O dispatcher-1] DEBUG headers >> Cookie: current-breadcrumb=manage_menu%2Cservices_menu%2Cservices_list_menu%23; MSG12652803334620.04863172136288896=true
2010-02-04 13:47:04,747 [-] [HttpServerWorker-1] DEBUG DataRetrievalUtil File does not exist in the Service Repository! File=META-INF/ServiceData.xml
2010-02-04 13:47:04,748 [-] [HttpServerWorker-1] DEBUG AxisDataLocatorImpl Check loading failure for file, META-INF/ServiceData.xml.Message = Failed to load from file, META-INF/ServiceData.xml
2010-02-04 13:47:04,748 [-] [HttpServerWorker-1] DEBUG AxisDataLocatorImpl Check loading failure for file, META-INF/ServiceData.xml
org.apache.axis2.dataretrieval.DataRetrievalException: Failed to load from file, META-INF/ServiceData.xml
at org.apache.axis2.dataretrieval.DataRetrievalUtil.buildOM(DataRetrievalUtil.java:64)
at org.apache.axis2.dataretrieval.AxisDataLocatorImpl.loadServiceData(AxisDataLocatorImpl.java:104)
at org.apache.axis2.description.AxisService.getDefaultDataLocator(AxisService.java:2920)
at org.apache.axis2.description.AxisService.getDataLocator(AxisService.java:2904)
at org.apache.axis2.description.AxisService.getData(AxisService.java:2821)
at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1534)
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1334)
at org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:442)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:237)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:735)
Caused by:
javax.xml.stream.XMLStreamException: File does not exist in the Service Repository! File=META-INF/ServiceData.xml
at org.apache.axis2.dataretrieval.DataRetrievalUtil.getInputStream(DataRetrievalUtil.java:103)
at org.apache.axis2.dataretrieval.DataRetrievalUtil.buildOM(DataRetrievalUtil.java:60)
... 12 more
2010-02-04 13:47:04,751 [-] [HttpServerWorker-1] DEBUG WSDLDataLocator Default WSDL DataLocator getData starts
2010-02-04 13:47:04,751 [-] [HttpServerWorker-1] DEBUG WSDLDataLocator Default WSDL DataLocator attempt to generates WSDL.
2010-02-04 13:47:04,813 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder START_ELEMENT:
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder QName: {http://www.w3.org/2001/XMLSchema}schema
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder CHARACTERS:
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder START_ELEMENT:
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder QName: {http://www.w3.org/2001/XMLSchema}element
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder END_ELEMENT:
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder QName: {http://www.w3.org/2001/XMLSchema}element
2010-02-04 13:47:04,814 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder CHARACTERS:
...
...
2010-02-04 13:47:04,866 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder CHARACTERS:
2010-02-04 13:47:04,866 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder END_ELEMENT:
2010-02-04 13:47:04,866 [-] [HttpServerWorker-1] DEBUG StAXOMBuilder QName: {http://www.w3.org/2001/XMLSchema}schema
2010-02-04 13:47:04,885 [-] [HttpServerWorker-1] DEBUG AddressingHelper getAddressingRequirementParemeterValue: value: 'null'
2010-02-04 13:47:04,885 [-] [HttpServerWorker-1] DEBUG AddressingHelper getAddressingRequirementParemeterValue: value: 'null'
2010-02-04 13:47:04,886 [-] [HttpServerWorker-1] DEBUG AddressingHelper getAddressingRequirementParemeterValue: value: 'null'
2010-02-04 13:47:04,886 [-] [HttpServerWorker-1] DEBUG AddressingHelper getAddressingRequirementParemeterValue: value: 'null'
2010-02-04 13:47:04,887 [-] [HttpServerWorker-1] DEBUG WSDLDataLocator Default WSDL DataLocator successfully generated WSDL.
2010-02-04 13:47:04,887 [-] [HttpServerWorker-1] DEBUG WSDLDataLocator Default WSDL DataLocator getData ends
2010-02-04 13:47:05,102 [-] [HttpServerWorker-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: [r]; ready ops: [r]]: Clear event [r]

2010-02-04 13:48:04,763 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler HTTP connection [/10.51.240.225:2377]: Timeout
2010-02-04 13:48:04,767 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler Keepalive connection was closed
2010-02-04 13:48:04,767 [-] [http-Listener I/O dispatcher-1] DEBUG DefaultNHttpServerConnection Shutdown connection
2010-02-04 13:48:04,767 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: []; ready ops: [r]]: Shutdown
2010-02-04 13:48:04,768 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler HTTP connection [closed]: Closed
2010-02-04 13:48:04,768 [-] [http-Listener I/O dispatcher-1] DEBUG DefaultNHttpServerConnection Shutdown connection
2010-02-04 13:48:04,768 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [invalid]: Shutdown
2010-02-04 13:48:04,768 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [invalid]: Remove attribute synapse.request-sink-buffer
2010-02-04 13:48:04,768 [-] [http-Listener I/O dispatcher-1] DEBUG IOSessionImpl I/O session server-1 [invalid]: Remove attribute synapse.response-source-buffer
2010-02-04 13:48:04,769 [-] [http-Listener I/O dispatcher-1] DEBUG ServerHandler Connection closed
2010-02-04 13:48:04,766 [-] [HttpServerWorker-1] DEBUG IOSessionImpl I/O session server-1 [interested ops: []; ready ops: [r]]: Set event [w]
2010-02-04 13:48:04,771 [-] [HttpServerWorker-1] ERROR ServerWorker Error generating ?wsdl output for service : MIX_Mitarbeiter
java.lang.IllegalStateException: Buffer already closed for writing
at org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.java:142)
at org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:71)
at org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:445)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:237)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:735)
2010-02-04 13:48:04,771 [-] [HttpServerWorker-1] DEBUG IOSessionImpl I/O session server-1 [invalid]: Shutdown

Hot Topic
Hot
Topic

Google Gadgets are a nice way to develop user interfaces for distributed services. The fact that they can be hosted anywhere over a network, not necessarily in the very portal server they eventually run in makes them re-usable and allows users to quickly...

Latest Webinar
In this webinar we'll share the range of concerns we've heard from the industry, and survey some of the new and sometimes subtle types of lock-in associated with cloud technologies.
Wednesday, 8 September, 10.00 AM (PDT)