You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Gary Rudolph (JIRA)" <ji...@apache.org> on 2008/06/18 09:00:45 UTC

[jira] Created: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

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


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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Gary Rudolph (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606654#action_12606654 ] 

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

I didn't see that in the documentation until seeing it here (and then finding it in the documentation).

This worked well for SinglesProxy.wsdl to load MyMatches.wsdl.

But, I wasn't able to have MyMatches.wsdl load SinglesSchema.xsd. Does this only apply to WSDL imports, and not XSD imports/includes? Or is it a result of not being transitive?

One easy way would be if a <localEntry> would also handle a <resource> child. i.e.

<localEntry key="SinglesProxy_wsdl" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/SinglesProxy.wsdl" >
	<resource location="MyMatches.wsdl" key="MyMatches_wsdl"/>
</localEntry>

<localEntry key="MyMatches_wsdl" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/mymatches/MyMatches.wsdl">
	<resource location="SinglesSchema.xsd" key="SinglesSchema_xsd"/>
</localEntry>


> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Gary Rudolph (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Rudolph updated SYNAPSE-362:
---------------------------------

    Attachment: MyMatches.wsdl
                SinglesProxy.wsdl
                error.txt

> 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, SinglesProxy.wsdl
>
>
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Gary Rudolph (JIRA)" <ji...@apache.org>.
    [ 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Assigned: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned SYNAPSE-362:
---------------------------------------

    Assignee: Andreas Veithen

> 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
>            Assignee: Andreas Veithen
>            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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606641#action_12606641 ] 

Evanthika Amarasiri commented on SYNAPSE-362:
---------------------------------------------

Hi Gary,

When you specify the location of the MyMatches.wsdl and save the Proxy Service it looks for the wsdl at the SYNAPSE_HOME level (i.e. - /Users/grudolph/Applications/synapse-1.2) but actually your wsdl is located at repository/conf/resources/com/eharmony/singles/ws/proxy. As a solution specify your MyMatches.wsdl as a resource in the Proxy service. To do this you can create a local entry or and integrated registry pointing to your MyMatches.wsdl and then specify this WSDL as a resource under <publishWSDL.....>

For example 

<publishWSDL key="SinglesProxy_wsdl" >
      <resource location="MyMatches.wsdl" key="the registry entry key pointing to your MyMatches.wsdl"/>
</publishWSDL>

By specifying this parameter it will locate your MyMatches.wsdl file



> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Gary Rudolph (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Rudolph updated SYNAPSE-362:
---------------------------------

    Attachment: repository.tgz

> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606695#action_12606695 ] 

Andreas Veithen commented on SYNAPSE-362:
-----------------------------------------

This is the same error as in SYNAPSE-363. I think that Synapse correctly loads the imported WSDL and XSD files, but Axis2 has a problem with the content. Gary, now that you found the issue with the WSDL, can you check wether the import works correctly?

> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606679#action_12606679 ] 

Andreas Veithen commented on SYNAPSE-362:
-----------------------------------------

Gary,

Normally the following should work:

<localEntry key="SinglesProxy_wsdl" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/SinglesProxy.wsdl"/> 
<localEntry key="MyMatches_wsdl" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/mymatches/MyMatches.wsdl"/> 
<localEntry key="SinglesSchema_xsd" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/mymatches/SinglesSchema.xsd"/> 

...

<publishWSDL key="SinglesProxy_wsdl" > 
      <resource location="MyMatches.wsdl" key="MyMatches_wsdl"/> 
      <resource location="SinglesSchema.xsd" key="SinglesSchema_xsd"/> 
</publishWSDL> 

If not, then this is a bug. Can you test this?

> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606686#action_12606686 ] 

Evanthika Amarasiri commented on SYNAPSE-362:
---------------------------------------------

Andreas,

I tried this out but it did not work for me. I received the following exception when I tried to save the Proxy Service.

2008-06-20 15:01:40,625 [127.0.0.1-evanthika-laptop] [http-9444-Processor4] ERROR ProxyServiceAdmin Unable to save changes made for the proxy service : synapse_362. Restored the existing proxy... :: Unable to add proxy service. Invalid definition :: Error building service from WSDL
org.apache.axis2.AxisFault: Unable to add proxy service. Invalid definition :: Error building service from WSDL
        at org.wso2.esb.services.AbstractESBAdmin.handleFault(AbstractESBAdmin.java:79)
        at org.wso2.esb.services.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:268)
        at org.wso2.esb.services.ProxyServiceAdmin.saveProxyService(ProxyServiceAdmin.java:303)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:133)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.synapse.SynapseException: Error building service from WSDL
        at org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java:615)
        at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:362)
        at org.wso2.esb.services.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:232)
        ... 30 more
Caused by: org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
        at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
        ... 31 more
Caused by: java.lang.NullPointerException
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
        ... 32 more
2008-06-20 15:01:40,650 [127.0.0.1-evanthika-laptop] [http-9444-Processor4] ERROR RPCInOnlyMessageReceiver Unable to save changes made for the proxy service : synapse_362. Restored the existing proxy... :: Unable to add proxy service. Invalid definition :: Error building service from WSDL
org.apache.axis2.AxisFault: Unable to save changes made for the proxy service : synapse_362. Restored the existing proxy... :: Unable to add proxy service. Invalid definition :: Error building service from WSDL
        at org.wso2.esb.services.AbstractESBAdmin.handleFault(AbstractESBAdmin.java:79)
        at org.wso2.esb.services.ProxyServiceAdmin.saveProxyService(ProxyServiceAdmin.java:341)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:133)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.AxisFault: Unable to add proxy service. Invalid definition :: Error building service from WSDL
        at org.wso2.esb.services.AbstractESBAdmin.handleFault(AbstractESBAdmin.java:79)
        at org.wso2.esb.services.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:268)
        at org.wso2.esb.services.ProxyServiceAdmin.saveProxyService(ProxyServiceAdmin.java:303)
        ... 29 more
Caused by: org.apache.synapse.SynapseException: Error building service from WSDL
        at org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java:615)
        at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:362)
        at org.wso2.esb.services.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:232)
        ... 30 more
Caused by: org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
        at org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:349)
        ... 31 more
Caused by: java.lang.NullPointerException
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1143)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1085)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:686)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
        ... 32 more
2008-06-20 15:01:40,659 [127.0.0.1-evanthika-laptop] [http-9444-Processor4] ERROR AxisEngine Unable to save changes made for the proxy service : synapse_362. Restored the existing proxy... :: Unable to add proxy service. Invalid definition :: Error building service from WSDL


> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved SYNAPSE-362.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Fixed in trunk (see commit log for details).

> 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
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.3
>
>         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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606662#action_12606662 ] 

Evanthika Amarasiri commented on SYNAPSE-362:
---------------------------------------------

Gary,

I'm afraid you will not be able to refer the SingleSchema.xsd the same way you referred the MyMatches.wsdl since this is not transitive. As you have proposed it would be better if one can specify resources inside localEntries. We will look into this. Meanwhile would it be possible for you to refer to your schema in some other way?

> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-362) WSDL Relative Imports/Includes break in Local Repository

Posted by "Gary Rudolph (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Rudolph updated SYNAPSE-362:
---------------------------------

    Attachment: synapse.xml
                SinglesSchema.xsd

> 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, 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org