[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to