[ 
https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606807#action_12606807
 ] 

Gary Rudolph commented on SYNAPSE-362:
--------------------------------------

It doesn't handle the XSD import in the MyMatches.wsdl. I've attached 
resources.tgz that has the full configuration. Right now this has it as 
../SinglesProxy.xsd, but I also tried this without being in a subdirectory. The 
exception I get is:

2008-06-20 08:53:17,177 [10.0.30.27-yukon] [HttpServerWorker-1] ERROR 
ServerWorker Axis2 fault writing ?wsdl output
org.apache.axis2.dataretrieval.DataRetrievalException
        at 
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:85)
        at 
org.apache.axis2.description.AxisService.getData(AxisService.java:2722)
        at 
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1462)
        at 
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1334)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:341)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:192)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.apache.axis2.dataretrieval.DataRetrievalException
        at 
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:134)
        at 
org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.java:73)
        at 
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:81)
        ... 8 more
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:336)
        at 
org.apache.axis2.description.AxisService.getScheamLocationWithDot(AxisService.java:2585)
        at 
org.apache.axis2.description.AxisService.calculateSchemaNames(AxisService.java:2457)
        at 
org.apache.axis2.description.AxisService.populateSchemaMappings(AxisService.java:2425)
        at 
org.apache.axis2.description.AxisService.populateSchemaMappings(AxisService.java:2408)
        at 
org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2WSDL11.java:207)
        at 
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:130)
        ... 10 more
2008-06-20 08:53:17,228 [10.0.30.27-yukon] [HttpServerWorker-1] ERROR 
ServerHandler Unexpected HTTP protocol error : Transfer-encoding header already 
present
org.apache.http.ProtocolException: Transfer-encoding header already present
        at 
org.apache.http.protocol.ResponseContent.process(ResponseContent.java:67)
        at 
org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:304)
        at 
org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:212)
        at 
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:409)
        at 
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
        at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.handleException(ServerWorker.java:489)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:344)
        at 
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:192)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)



> WSDL Relative Imports/Includes break in Local Repository
> --------------------------------------------------------
>
>                 Key: SYNAPSE-362
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-362
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Gary Rudolph
>            Priority: Minor
>         Attachments: error.txt, MyMatches.wsdl, repository.tgz, 
> SinglesProxy.wsdl, SinglesSchema.xsd, synapse.xml
>
>
> We have a WSDL that performs a <wsdl:import> in which that wsdl then performs 
> an <xsd:include> both using relative paths. It appears that it wants to 
> locate the relative path from the SYNAPSE_HOME.
> i.e. in:
> repository/conf/resources/com/eharmony/singles/ws/proxy
> SinglesProxy.wsdl
> <wsdl:import namespace="urn:com:eharmony:singles:ws:proxy" 
> location="MyMatches.wsdl"/>
> MyMatches.wsdl
> <xsd:include schemaLocation="SinglesSchema.xsd"/>
> SinglesSchema.xsd
> Then in the synapse.xml I have:
> <localEntry key="SinglesProxy_wsdl" 
> src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/SinglesProxy.wsdl"
>  />
> This breaks trying to load the MyMatches.wsdl with the message:
> Caused by: java.io.FileNotFoundException: 
> /Users/grudolph/Applications/synapse-1.2/MyMatches.wsdl (No such file or 
> directory)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to