You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by balaji hari <to...@gmail.com> on 2007/10/09 04:28:48 UTC

Problem in parsing WSDL when synapse is installed as service

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


Re: Problem in parsing WSDL when synapse is installed as service

Posted by indika kumara <in...@gmail.com>.
hi balaji

 I have fixed this issue and tested on solaris x89 32 bit machine.It also
should work for solaris sparc . Could you please check and if the issue is
still remain please let me know.

thanks
indika

On 10/12/07, balaji hari <to...@gmail.com> wrote:
>
>
> Thanks! the fix works.
>
> Now I am facing a problem with wrapper in solaris.
>
> I have used synapse-daemon.sh to start the synapse instance in solaris. It
> created a pid file in SYNAPSE_HOME.
>
> But when running
> http://www.nabble.com/file/p13165657/wrapper.log wrapper.log
> http://www.nabble.com/file/p13165657/synapse.log synapse.log
>
> synapse-daemon.sh stop
>
> it doesn't stop the synapse instance. It just removed the pid file.
>
> I have attached the log files.
>
> Solaris: (64 bit) SunOS callisto 5.9 Generic_118558-39 sun4u sparc
> SUNW,Sun-Fire-280R
> JDK : java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)
>
> I tried both 32 bit version and 64 bit version of files in native folder.
>
> wrapper-solaris-sparc-32
> wrapper-solaris-sparc-64
>
>
> Thanks
> Balaji
>
>
>

Re: Problem in parsing WSDL when synapse is installed as service

Posted by balaji hari <to...@gmail.com>.
Thanks! the fix works.

Now I am facing a problem with wrapper in solaris.

I have used synapse-daemon.sh to start the synapse instance in solaris. It
created a pid file in SYNAPSE_HOME. 

But when running 
http://www.nabble.com/file/p13165657/wrapper.log wrapper.log 
http://www.nabble.com/file/p13165657/synapse.log synapse.log    

synapse-daemon.sh stop 

it doesn't stop the synapse instance. It just removed the pid file.

I have attached the log files.

Solaris: (64 bit) SunOS callisto 5.9 Generic_118558-39 sun4u sparc
SUNW,Sun-Fire-280R
JDK : java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)

I tried both 32 bit version and 64 bit version of files in native folder.

 wrapper-solaris-sparc-32
 wrapper-solaris-sparc-64


Thanks
Balaji



Ruwan Linton wrote:
> 
> Balaji,
> 
> It is,
> mvn assembly:assembly -Drelease
> 
> Thanks,
> Ruwan
> 
> On 10/10/07, balaji hari <to...@gmail.com> wrote:
>>
>> A dumb question? what is the maven task for getting synapse regular build
>> (by
>> default it builds a war file) we need synapse distribution with bin
>> folders
>> (sh / bat and installables).
>>
>> I tried
>>
>> mvn clean install
>>
>> Balaji
>>
>> indika kumara wrote:
>> >
>> > done and checked . it works
>> >
>> > thanks
>> >
>> > indika
>> >
>> > On 10/9/07, Asankha C. Perera <as...@wso2.com> wrote:
>> >>
>> >>  Hi Balaji
>> >>
>> >> You need to wait a few more minutes :-)... We should also change the
>> >> other
>> >> paths relative to the new wrapper.working.dir as well.. Indika will be
>> >> checking this in shortly
>> >>
>> >> asankha
>> >>
>> >> indika kumara wrote:
>> >>
>> >> hi balaji
>> >>
>> >> I fixed the issue and committed the fix. you just have to add
>> following
>> >> property to the wrapper.conf file
>> >>
>> >> wrapper.working.dir=../..
>> >>
>> >> It should work now properly.
>> >>
>> >>  thanks
>> >>
>> >> indika
>> >>
>> >>
>> >>
>> >>
>> >> On 10/9/07, balaji hari <to...@gmail.com> wrote:
>> >> >
>> >> >
>> >> > Hi,
>> >> >
>> >> > Actually when synapse is installed as service in windows it starts
>> from
>> >> > bin/native directory. When parsing synapse configuration,
>> >> synapse.homeis
>> >> > 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: synapse-dev-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-in-parsing-WSDL-when-synapse-is-installed-as-service-tf4591759.html#a13125206
>> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Re: Problem in parsing WSDL when synapse is installed as service

Posted by ru...@gmail.com.
Balaji,

It is,
mvn assembly:assembly -Drelease

Thanks,
Ruwan

On 10/10/07, balaji hari <to...@gmail.com> wrote:
>
> A dumb question? what is the maven task for getting synapse regular build
> (by
> default it builds a war file) we need synapse distribution with bin folders
> (sh / bat and installables).
>
> I tried
>
> mvn clean install
>
> Balaji
>
> indika kumara wrote:
> >
> > done and checked . it works
> >
> > thanks
> >
> > indika
> >
> > On 10/9/07, Asankha C. Perera <as...@wso2.com> wrote:
> >>
> >>  Hi Balaji
> >>
> >> You need to wait a few more minutes :-)... We should also change the
> >> other
> >> paths relative to the new wrapper.working.dir as well.. Indika will be
> >> checking this in shortly
> >>
> >> asankha
> >>
> >> indika kumara wrote:
> >>
> >> hi balaji
> >>
> >> I fixed the issue and committed the fix. you just have to add following
> >> property to the wrapper.conf file
> >>
> >> wrapper.working.dir=../..
> >>
> >> It should work now properly.
> >>
> >>  thanks
> >>
> >> indika
> >>
> >>
> >>
> >>
> >> On 10/9/07, balaji hari <to...@gmail.com> wrote:
> >> >
> >> >
> >> > Hi,
> >> >
> >> > Actually when synapse is installed as service in windows it starts from
> >> > bin/native directory. When parsing synapse configuration,
> >> synapse.homeis
> >> > 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: synapse-dev-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >> >
> >> >
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-parsing-WSDL-when-synapse-is-installed-as-service-tf4591759.html#a13125206
> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Re: Problem in parsing WSDL when synapse is installed as service

Posted by balaji hari <to...@gmail.com>.
A dumb question? what is the maven task for getting synapse regular build (by
default it builds a war file) we need synapse distribution with bin folders
(sh / bat and installables).

I tried

mvn clean install

Balaji

indika kumara wrote:
> 
> done and checked . it works
> 
> thanks
> 
> indika
> 
> On 10/9/07, Asankha C. Perera <as...@wso2.com> wrote:
>>
>>  Hi Balaji
>>
>> You need to wait a few more minutes :-)... We should also change the
>> other
>> paths relative to the new wrapper.working.dir as well.. Indika will be
>> checking this in shortly
>>
>> asankha
>>
>> indika kumara wrote:
>>
>> hi balaji
>>
>> I fixed the issue and committed the fix. you just have to add following
>> property to the wrapper.conf file
>>
>> wrapper.working.dir=../..
>>
>> It should work now properly.
>>
>>  thanks
>>
>> indika
>>
>>
>>
>>
>> On 10/9/07, balaji hari <to...@gmail.com> wrote:
>> >
>> >
>> > Hi,
>> >
>> > Actually when synapse is installed as service in windows it starts from
>> > bin/native directory. When parsing synapse configuration,
>> synapse.homeis
>> > 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: synapse-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> >
>> >
>>
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Re: Problem in parsing WSDL when synapse is installed as service

Posted by indika kumara <in...@gmail.com>.
done and checked . it works

thanks

indika

On 10/9/07, Asankha C. Perera <as...@wso2.com> wrote:
>
>  Hi Balaji
>
> You need to wait a few more minutes :-)... We should also change the other
> paths relative to the new wrapper.working.dir as well.. Indika will be
> checking this in shortly
>
> asankha
>
> indika kumara wrote:
>
> hi balaji
>
> I fixed the issue and committed the fix. you just have to add following
> property to the wrapper.conf file
>
> wrapper.working.dir=../..
>
> It should work now properly.
>
>  thanks
>
> indika
>
>
>
>
> On 10/9/07, balaji hari <to...@gmail.com> wrote:
> >
> >
> > Hi,
> >
> > Actually when synapse is installed as service in windows it starts from
> > bin/native directory. When parsing synapse configuration, synapse.homeis
> > 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: synapse-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >
> >
>

Re: Problem in parsing WSDL when synapse is installed as service

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Balaji

You need to wait a few more minutes :-)... We should also change the 
other paths relative to the new wrapper.working.dir as well.. Indika 
will be checking this in shortly

asankha

indika kumara wrote:
>
> hi balaji
>
> I fixed the issue and committed the fix. you just have to add 
> following property to the wrapper.conf file
>
> wrapper.working.dir=../..
>
> It should work now properly.
>
> thanks
>
> indika
>
>
>
>
> On 10/9/07, *balaji hari* <to.haribalaji@gmail.com 
> <ma...@gmail.com>> wrote:
>
>
>     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
>     <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
>     <http://Nabble.com>.
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: synapse-dev-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>

Re: Problem in parsing WSDL when synapse is installed as service

Posted by indika kumara <in...@gmail.com>.
hi balaji

I fixed the issue and committed the fix. you just have to add following
property to the wrapper.conf file

wrapper.working.dir=../..

It should work now properly.

 thanks

indika




On 10/9/07, balaji hari <to...@gmail.com> wrote:
>
>
> 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: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>