Hi,

Actually when synapse is installed as service in windows it starts from
bin/native directory. When parsing synapse configuration, synapse.home is
used to resolve the files. But we have imported XSD files in WSDL file.

<wsdl:definitions 
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
        xmlns:tns="http://eta.sddc.army.mil/raterankservice";
        xmlns:ns1="http://eta.sddc.army.mil/xsd/raterankrequest";
        xmlns:ns2="http://eta.sddc.army.mil/xsd/raterankresponse";
        xmlns:ns3="http://eta.sddc.army.mil/xsd/raterankerror";
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        name="RateRankService" 
        targetNamespace="http://eta.sddc.army.mil/raterankservice";>
<wsdl:types>
        <xsd:schema
                        
targetNamespace="http://eta.sddc.army.mil/raterankservice";>
                <xsd:import
                                
namespace="http://eta.sddc.army.mil/xsd/raterankrequest";
                                schemaLocation="raterankrequest.xsd"
                                id="ns1" />
                <xsd:import
                                
namespace="http://eta.sddc.army.mil/xsd/raterankresponse"; id="ns2"
                                schemaLocation="raterankresponse.xsd" />
        </xsd:schema>
</wsdl:types>

When synapse is started as service it results in the following error, cause
Axis2 has no way of knowing about synapse.home.

INFO   | jvm 1    | 2007/10/08 22:06:57 | [WrapperSimpleAppMain] ERROR
WSDL11ToAxisServiceBuilder - WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error
occurred trying to resolve schema referenced at 'raterankresponse.xsd'.:
java.io.FileNotFoundException: This file was not found:
file:/C:/workdir/synapse-latest/synapse-SNAPSHOT/bin/native/raterankresponse.xsd
 
INFO   | jvm 1    | 2007/10/08 22:06:57 | javax.wsdl.WSDLException:
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced
at 'raterankresponse.xsd'.: java.io.FileNotFoundException: This file was not
found:
file:/C:/workdir/synapse-latest/synapse-SNAPSHOT/bin/native/raterankresponse.xsd
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.readInTheWSDLFile(WSDL11ToAxisServiceBuilder.java:2062)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.setup(WSDL11ToAxisServiceBuilder.java:636)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:224)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:268)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.synapse.core.axis2.SynapseInitializationModule.init(SynapseInitializationModule.java:111)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:222)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:200)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:76)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.synapse.ServerManager.start(ServerManager.java:68)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.apache.synapse.SynapseServer.main(SynapseServer.java:48)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
java.lang.reflect.Method.invoke(Method.java:585)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
java.lang.Thread.run(Thread.java:595)
INFO   | jvm 1    | 2007/10/08 22:06:57 | Caused by:
java.io.FileNotFoundException: This file was not found:
file:/C:/workdir/synapse-latest/synapse-SNAPSHOT/bin/native/raterankresponse.xsd
INFO   | jvm 1    | 2007/10/08 22:06:57 |       at
com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
INFO   | jvm 1    | 2007/10/08 22:06:57 |       ... 24 more

We need a fix for this issue.

thanks
Balaji


-- 
View this message in context: 
http://www.nabble.com/Problem-in-parsing-WSDL-when-synapse-is-installed-as-service-tf4591759.html#a13108243
Sent from the Synapse - Dev mailing list archive at Nabble.com.


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

Reply via email to