You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by tsaha <Ta...@westernasset.com> on 2008/06/20 00:51:53 UTC

Remote configuration via HTTP-based registries

Can anybody pl tell how to make use of "Remote configuration via HTTP-based
registries" ? I have added few endpoints, wsdls, xsl and etc into our SVN.
Now I want my proxy to use those resources from SVN. My proxy configuration
synapse_sample_regproxy.xml and svn trunk structure are attached here.
<definitions xmlns="http://ws.apache.org/ns/synapse">
    <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
        <parameter
name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/trunk/</parameter>
        <parameter name="cachableDuration">15000</parameter>
    </registry>

    <proxy name="echoProxy" transports="jms">
        <target>
             
            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
            <outSequence>
			   <log level="full"/>
			   <out>
			        <xslt key="XSLT/echoProxy/echo_transform.xml"/>
			   </out>
	  <clone>
		  
		   <target>
	               <endpoint key="Endpoints/echoProxy/responseEndpointQ2.xml"
/>
		   </target>
	          
	           <target>
	            <endpoint key="Endpoints/echoProxy/responseEndpointQ3.xml" />
	           </target>
	          
	           <target>
	             <endpoint key="Endpoints/echoProxy/responseEndpointQ4.xml" />
	          </target>
		</clone>
	     </outSequence>
	</target>
        
        <parameter
name="transport.jms.ConnectionFactory">myTopicConnectionFactory</parameter>
	<parameter name="transport.jms.Destination">TopicXA</parameter>   
        <parameter name="transport.jms.DestinationType">topic</parameter>  
        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
      </proxy>

</definitions>

http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp 

But when I am starting the Synapse as "synapse -sample regproxy" , I am
getting the following error

roxyService Building Axis service for Proxy service : echoProxy
2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA] [WrapperSimpleAppMain]
FATAL S
erverManager Synaps startup failed...
java.lang.IllegalArgumentException: URI is not absolute
        at java.net.URI.toURL(Unknown Source)
        at
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
ice.java:244)
        at
org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
eInitializationModule.java:134)
        at
org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
igurationContextFactory.java:226)
        at
org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
onContextFactory.java:204)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:80)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:184)
        at org.apache.synapse.ServerManager.start(ServerManager.java:106)
        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
:240)
        at java.lang.Thread.run(Unknown Source)

WrapperSimpleApp: Encountered an error running main:
org.apache.synapse.SynapseE
xception: Synapse startup failed
org.apache.synapse.SynapseException: Synapse startup failed
        at org.apache.synapse.ServerManager.start(ServerManager.java:167)
        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
:240)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: URI is not absolute
        at java.net.URI.toURL(Unknown Source)

Any idea how to configure this and make it working?

-thanks
tanmay
-- 
View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Remote configuration via HTTP-based registries

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Tanmay,

I had a look at this and it seems to work, could you please have a look at
it again. If the issue is consistent, please send the DEBUG log with an
invocation after the cachableDuration.

Thanks,
Ruwan

On Fri, Jun 27, 2008 at 6:00 AM, tsaha <Ta...@westernasset.com> wrote:

>
> Ruwan:
>
> I have tested the SNAPSHOT code. It does not give the same error any more,
> but there is another issue, it does not refresh the cache after the
> specified interval ( cachableDuration=15000 ) consistently.
>
> -Thanks
> tanmay
>

-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: Remote configuration via HTTP-based registries

Posted by tsaha <Ta...@westernasset.com>.
Ruwan:

I have tested the SNAPSHOT code. It does not give the same error any more,
but there is another issue, it does not refresh the cache after the
specified interval ( cachableDuration=15000 ) consistently. 

-Thanks
tanmay



Ruwan Linton wrote:
> 
> Hi Andreas and Tanmay,
> 
> Indika has fixed the API to return a String in the trunk, so if you use
> the
> latest SNAPSHOT this should no longer be exist.
> 
> Thanks,
> Ruwan
> 
> On Tue, Jun 24, 2008 at 6:32 PM, Andreas Veithen
> <an...@skynet.be>
> wrote:
> 
>> Do you have the possibility to monitor the communication between Synapse
>> and the Subversion repository (using something like ngrep under Linux)?
>>
>>
>> On 23 juin 08, at 22:13, tsaha wrote:
>>
>>
>>> Hi Andreas:
>>>
>>> I set the content type text/xml as you have shown, but still getiing the
>>> same error.
>>>
>>> First time it works, but after cachableDuration=15 sec, it gives the
>>> same
>>> error
>>>
>>> -Thanks
>>> tanmay
>>>
>>>
>>>
>>> Ruwan Linton wrote:
>>>
>>>>
>>>> Hi Tanmay,
>>>>
>>>> At the same time keep an eye on this issue [1], fixing this issue
>>>> should
>>>> fix
>>>> your problem I guess.
>>>>
>>>> Andreas, shall I look into this? Or do you have any plans?
>>>>
>>>> Thanks,
>>>> Ruwan
>>>>
>>>> [1] - https://issues.apache.org/jira/browse/SYNAPSE-371
>>>>
>>>> On Mon, Jun 23, 2008 at 10:45 PM, Andreas Veithen
>>>> <an...@skynet.be>
>>>> wrote:
>>>>
>>>>  svn propset svn:mime-type text/xml echoEndpoint.xml
>>>>>
>>>>> Andreas
>>>>>
>>>>>
>>>>> On 23 juin 08, at 18:55, tsaha wrote:
>>>>>
>>>>>
>>>>>  Hi Ruwan:
>>>>>>
>>>>>> Yes it is consistent. I am attaching the resource "echoEndpoint.xml"
>>>>>> here.
>>>>>> Please tell where I have to set the content type?
>>>>>>
>>>>>> -Thanks
>>>>>> tanmay
>>>>>>
>>>>>>
>>>>>>
>>>>>> Ruwan Linton wrote:
>>>>>>
>>>>>>
>>>>>>> OK, I think the problem is the Content-Type, "text/html;
>>>>>>> charset=iso-8859-1"
>>>>>>>
>>>>>>> Can you set the content type to be text/xml on the resource and see?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ruwan
>>>>>>>
>>>>>>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton
>>>>>>> <ruwan.linton@gmail.com
>>>>>>> >
>>>>>>> wrote:
>>>>>>>
>>>>>>> Hi tanmay,
>>>>>>>
>>>>>>>>
>>>>>>>> Is this consistent? Please post the full log of synapse,
>>>>>>>> theoretically
>>>>>>>> it
>>>>>>>> should not lookup the registry second time and should get the
>>>>>>>> resources
>>>>>>>> from
>>>>>>>> the local cache, because you have used them once?
>>>>>>>>
>>>>>>>> May be an issue with the char encoding in the system... please post
>>>>>>>> the
>>>>>>>> full DEBUG log.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ruwan
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha
>>>>>>>> <Tanmay.Saha@westernasset.com
>>>>>>>> >
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>  Hi Andreas:
>>>>>>>>>
>>>>>>>>> Thansk it solves the problem. But works only one time, 2nd time
>>>>>>>>> when
>>>>>>>>> I
>>>>>>>>> put
>>>>>>>>> another SOAP Pay load on TopicXA , I am getting the following
>>>>>>>>> error.
>>>>>>>>>
>>>>>>>>> Registry URI Syntax error reading from URL
>>>>>>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>>>>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>>>>
>>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  java.net.URISyntaxException: Illegal character in path at index
>>>>>>>>> 10:
>>>>>>>>> text/html; c
>>>>>>>>> harset=iso-8859-1
>>>>>>>>>    at java.net.URI$Parser.fail(Unknown Source)
>>>>>>>>>    at java.net.URI$Parser.checkChars(Unknown Source)
>>>>>>>>>    at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>>>>>>    at java.net.URI$Parser.parse(Unknown Source)
>>>>>>>>>    at java.net.URI.<init>(Unknown Source)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>>>>>>> mpleURLRegistry.java:142)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>>>>>>> stry.java:77)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>>>>>>> figuration.java:462)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>>>>>>> ssageContext.java:146)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>>>>>>> ava:50)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>>>>>>> xyServiceMessageReceiver.java:179)
>>>>>>>>>    at
>>>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>>>>>>>>> omingMessage(AbstractTransportListener.java:256)
>>>>>>>>>    at
>>>>>>>>>
>>>>>>>>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>>>>>>>>> sageReceiver.java:218)
>>>>>>>>>    at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>>>>>>>> Source
>>>>>>>>> )
>>>>>>>>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>>>>>>> Source)
>>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]
>>>>>>>>> INFO
>>>>>>>>> LogMediat
>>>>>>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,
>>>>>>>>> Direction:
>>>>>>>>> request
>>>>>>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE =
>>>>>>>>> 00000,
>>>>>>>>> ERROR_MESSAG
>>>>>>>>> E = URI Syntax error reading from URL
>>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>>>>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>>>>
>>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>>>
>>>>>>>>>> ,
>>>>>>>>>>
>>>>>>>>> Envelope: <?xml
>>>>>>>>> version='1
>>>>>>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>>>>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>>>>>>> g/soap/envelope/"
>>>>>>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>>>>>>> dy>
>>>>>>>>>  <ejb:echo>
>>>>>>>>>     <!--Optional:-->
>>>>>>>>>     <arg0>WA 6</arg0>
>>>>>>>>>  </ejb:echo>
>>>>>>>>> </soapenv:Body></soapenv:Envelope>
>>>>>>>>>
>>>>>>>>> why it works only one time and I have not changed the
>>>>>>>>> echoEndpoint.xml
>>>>>>>>> ?
>>>>>>>>>
>>>>>>>>> thanks
>>>>>>>>> tanmay
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Andreas Veithen wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Instead of using the "uri" attribute in the <publishWSDL>
>>>>>>>>>> element,
>>>>>>>>>> you
>>>>>>>>>> need to use "key" as in the other mediators.
>>>>>>>>>>
>>>>>>>>>> Andreas
>>>>>>>>>>
>>>>>>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  Can anybody pl tell how to make use of "Remote configuration via
>>>>>>>>>>> HTTP-based
>>>>>>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc
>>>>>>>>>>> into
>>>>>>>>>>> our SVN.
>>>>>>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>>>>>>> configuration
>>>>>>>>>>> synapse_sample_regproxy.xml and svn trunk structure are attached
>>>>>>>>>>>
>>>>>>>>>>>  here.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>>>>>
>>>>>>>>>>> <registry
>>>>>>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>>>>>>    <parameter
>>>>>>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>>>>>>> trunk/</parameter>
>>>>>>>>>>>    <parameter name="cachableDuration">15000</parameter>
>>>>>>>>>>> </registry>
>>>>>>>>>>>
>>>>>>>>>>> <proxy name="echoProxy" transports="jms">
>>>>>>>>>>>    <target>
>>>>>>>>>>>
>>>>>>>>>>>        <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>>>>>>>>>>        <outSequence>
>>>>>>>>>>>                     <log level="full"/>
>>>>>>>>>>>                     <out>
>>>>>>>>>>>                          <xslt
>>>>>>>>>>>
>>>>>>>>>>>  key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                      </out>
>>>>>>>>>>
>>>>>>>>>>>    <clone>
>>>>>>>>>>>
>>>>>>>>>>>             <target>
>>>>>>>>>>>                 <endpoint key="Endpoints/echoProxy/
>>>>>>>>>>> responseEndpointQ2.xml"
>>>>>>>>>>> />
>>>>>>>>>>>             </target>
>>>>>>>>>>>
>>>>>>>>>>>             <target>
>>>>>>>>>>>              <endpoint key="Endpoints/echoProxy/
>>>>>>>>>>> responseEndpointQ3.xml" />
>>>>>>>>>>>             </target>
>>>>>>>>>>>
>>>>>>>>>>>             <target>
>>>>>>>>>>>               <endpoint key="Endpoints/echoProxy/
>>>>>>>>>>> responseEndpointQ4.xml" />
>>>>>>>>>>>            </target>
>>>>>>>>>>>          </clone>
>>>>>>>>>>>       </outSequence>
>>>>>>>>>>>  </target>
>>>>>>>>>>>
>>>>>>>>>>>    <parameter
>>>>>>>>>>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>>>>>>> parameter>
>>>>>>>>>>>  <parameter name="transport.jms.Destination">TopicXA</parameter>
>>>>>>>>>>>    <parameter name="transport.jms.DestinationType">topic</
>>>>>>>>>>> parameter>
>>>>>>>>>>>    <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>>>>>>  </proxy>
>>>>>>>>>>>
>>>>>>>>>>> </definitions>
>>>>>>>>>>>
>>>>>>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>>>>>>
>>>>>>>>>>> But when I am starting the Synapse as "synapse -sample regproxy"
>>>>>>>>>>> ,
>>>>>>>>>>> I
>>>>>>>>>>> am
>>>>>>>>>>> getting the following error
>>>>>>>>>>>
>>>>>>>>>>> roxyService Building Axis service for Proxy service : echoProxy
>>>>>>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>>>>>>> [WrapperSimpleAppMain]
>>>>>>>>>>> FATAL S
>>>>>>>>>>> erverManager Synaps startup failed...
>>>>>>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>>>>    at java.net.URI.toURL(Unknown Source)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>>>>>>> ice.java:244)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>>>>>>> eInitializationModule.java:134)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>>>>>>> igurationContextFactory.java:226)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>>>>>>> onContextFactory.java:204)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>>>>>>    at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>>>> 106)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>>  org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>
>>>>>>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>>>>>>>>>>> Source)
>>>>>>>>>>>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>>>> Source)
>>>>>>>>>>>    at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>>>> :240)
>>>>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>>>>>
>>>>>>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>>>>>>> org.apache.synapse.SynapseE
>>>>>>>>>>> xception: Synapse startup failed
>>>>>>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>>>>>>    at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>>>> 167)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>>  org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>
>>>>>>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>>>>>>>>>>> Source)
>>>>>>>>>>>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>>>> Source)
>>>>>>>>>>>    at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>>>    at
>>>>>>>>>>>
>>>>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>>>> :240)
>>>>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not
>>>>>>>>>>> absolute
>>>>>>>>>>>    at java.net.URI.toURL(Unknown Source)
>>>>>>>>>>>
>>>>>>>>>>> Any idea how to configure this and make it working?
>>>>>>>>>>>
>>>>>>>>>>> -thanks
>>>>>>>>>>> tanmay
>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>>>>>
>>>>>>>>>  Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  --
>>>>>>>>> View this message in context:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Ruwan Linton
>>>>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>>>>> http://ruwansblog.blogspot.com/
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ruwan Linton
>>>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>>>> http://ruwansblog.blogspot.com/
>>>>>>>
>>>>>>>
>>>>>>> http://www.nabble.com/file/p18073426/echoEndpoint.xmlechoEndpoint.xml
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> --
>>>> Ruwan Linton
>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>> http://ruwansblog.blogspot.com/
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18077417.html
>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>
>>>
>>
> 
> 
> -- 
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18146061.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Remote configuration via HTTP-based registries

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Andreas and Tanmay,

Indika has fixed the API to return a String in the trunk, so if you use the
latest SNAPSHOT this should no longer be exist.

Thanks,
Ruwan

On Tue, Jun 24, 2008 at 6:32 PM, Andreas Veithen <an...@skynet.be>
wrote:

> Do you have the possibility to monitor the communication between Synapse
> and the Subversion repository (using something like ngrep under Linux)?
>
>
> On 23 juin 08, at 22:13, tsaha wrote:
>
>
>> Hi Andreas:
>>
>> I set the content type text/xml as you have shown, but still getiing the
>> same error.
>>
>> First time it works, but after cachableDuration=15 sec, it gives the same
>> error
>>
>> -Thanks
>> tanmay
>>
>>
>>
>> Ruwan Linton wrote:
>>
>>>
>>> Hi Tanmay,
>>>
>>> At the same time keep an eye on this issue [1], fixing this issue should
>>> fix
>>> your problem I guess.
>>>
>>> Andreas, shall I look into this? Or do you have any plans?
>>>
>>> Thanks,
>>> Ruwan
>>>
>>> [1] - https://issues.apache.org/jira/browse/SYNAPSE-371
>>>
>>> On Mon, Jun 23, 2008 at 10:45 PM, Andreas Veithen
>>> <an...@skynet.be>
>>> wrote:
>>>
>>>  svn propset svn:mime-type text/xml echoEndpoint.xml
>>>>
>>>> Andreas
>>>>
>>>>
>>>> On 23 juin 08, at 18:55, tsaha wrote:
>>>>
>>>>
>>>>  Hi Ruwan:
>>>>>
>>>>> Yes it is consistent. I am attaching the resource "echoEndpoint.xml"
>>>>> here.
>>>>> Please tell where I have to set the content type?
>>>>>
>>>>> -Thanks
>>>>> tanmay
>>>>>
>>>>>
>>>>>
>>>>> Ruwan Linton wrote:
>>>>>
>>>>>
>>>>>> OK, I think the problem is the Content-Type, "text/html;
>>>>>> charset=iso-8859-1"
>>>>>>
>>>>>> Can you set the content type to be text/xml on the resource and see?
>>>>>>
>>>>>> Thanks,
>>>>>> Ruwan
>>>>>>
>>>>>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ruwan.linton@gmail.com
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>> Hi tanmay,
>>>>>>
>>>>>>>
>>>>>>> Is this consistent? Please post the full log of synapse,
>>>>>>> theoretically
>>>>>>> it
>>>>>>> should not lookup the registry second time and should get the
>>>>>>> resources
>>>>>>> from
>>>>>>> the local cache, because you have used them once?
>>>>>>>
>>>>>>> May be an issue with the char encoding in the system... please post
>>>>>>> the
>>>>>>> full DEBUG log.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ruwan
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Tanmay.Saha@westernasset.com
>>>>>>> >
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>  Hi Andreas:
>>>>>>>>
>>>>>>>> Thansk it solves the problem. But works only one time, 2nd time when
>>>>>>>> I
>>>>>>>> put
>>>>>>>> another SOAP Pay load on TopicXA , I am getting the following error.
>>>>>>>>
>>>>>>>> Registry URI Syntax error reading from URL
>>>>>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>>>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>>>
>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>>
>>>>>>>>>
>>>>>>>>>  java.net.URISyntaxException: Illegal character in path at index
>>>>>>>> 10:
>>>>>>>> text/html; c
>>>>>>>> harset=iso-8859-1
>>>>>>>>    at java.net.URI$Parser.fail(Unknown Source)
>>>>>>>>    at java.net.URI$Parser.checkChars(Unknown Source)
>>>>>>>>    at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>>>>>    at java.net.URI$Parser.parse(Unknown Source)
>>>>>>>>    at java.net.URI.<init>(Unknown Source)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>>>>>> mpleURLRegistry.java:142)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>>>>>> stry.java:77)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>>>>>> figuration.java:462)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>>>>>> ssageContext.java:146)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>>>>>> ava:50)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>>>>>> xyServiceMessageReceiver.java:179)
>>>>>>>>    at
>>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>>>>>>>> omingMessage(AbstractTransportListener.java:256)
>>>>>>>>    at
>>>>>>>>
>>>>>>>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>>>>>>>> sageReceiver.java:218)
>>>>>>>>    at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>>>>>>> Source
>>>>>>>> )
>>>>>>>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>>>>>> Source)
>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]
>>>>>>>> INFO
>>>>>>>> LogMediat
>>>>>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,
>>>>>>>> Direction:
>>>>>>>> request
>>>>>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>>>>>>>> ERROR_MESSAG
>>>>>>>> E = URI Syntax error reading from URL
>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>>>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>>>
>>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>>
>>>>>>>>> ,
>>>>>>>>>
>>>>>>>> Envelope: <?xml
>>>>>>>> version='1
>>>>>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>>>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>>>>>> g/soap/envelope/"
>>>>>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>>>>>> dy>
>>>>>>>>  <ejb:echo>
>>>>>>>>     <!--Optional:-->
>>>>>>>>     <arg0>WA 6</arg0>
>>>>>>>>  </ejb:echo>
>>>>>>>> </soapenv:Body></soapenv:Envelope>
>>>>>>>>
>>>>>>>> why it works only one time and I have not changed the
>>>>>>>> echoEndpoint.xml
>>>>>>>> ?
>>>>>>>>
>>>>>>>> thanks
>>>>>>>> tanmay
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Andreas Veithen wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Instead of using the "uri" attribute in the <publishWSDL> element,
>>>>>>>>> you
>>>>>>>>> need to use "key" as in the other mediators.
>>>>>>>>>
>>>>>>>>> Andreas
>>>>>>>>>
>>>>>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  Can anybody pl tell how to make use of "Remote configuration via
>>>>>>>>>> HTTP-based
>>>>>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc into
>>>>>>>>>> our SVN.
>>>>>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>>>>>> configuration
>>>>>>>>>> synapse_sample_regproxy.xml and svn trunk structure are attached
>>>>>>>>>>
>>>>>>>>>>  here.
>>>>>>>>>
>>>>>>>>
>>>>>>>>  <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>>>>
>>>>>>>>>> <registry
>>>>>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>>>>>    <parameter
>>>>>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>>>>>> trunk/</parameter>
>>>>>>>>>>    <parameter name="cachableDuration">15000</parameter>
>>>>>>>>>> </registry>
>>>>>>>>>>
>>>>>>>>>> <proxy name="echoProxy" transports="jms">
>>>>>>>>>>    <target>
>>>>>>>>>>
>>>>>>>>>>        <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>>>>>>>>>        <outSequence>
>>>>>>>>>>                     <log level="full"/>
>>>>>>>>>>                     <out>
>>>>>>>>>>                          <xslt
>>>>>>>>>>
>>>>>>>>>>  key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>>>>>
>>>>>>>>
>>>>>>>>                      </out>
>>>>>>>>>
>>>>>>>>>>    <clone>
>>>>>>>>>>
>>>>>>>>>>             <target>
>>>>>>>>>>                 <endpoint key="Endpoints/echoProxy/
>>>>>>>>>> responseEndpointQ2.xml"
>>>>>>>>>> />
>>>>>>>>>>             </target>
>>>>>>>>>>
>>>>>>>>>>             <target>
>>>>>>>>>>              <endpoint key="Endpoints/echoProxy/
>>>>>>>>>> responseEndpointQ3.xml" />
>>>>>>>>>>             </target>
>>>>>>>>>>
>>>>>>>>>>             <target>
>>>>>>>>>>               <endpoint key="Endpoints/echoProxy/
>>>>>>>>>> responseEndpointQ4.xml" />
>>>>>>>>>>            </target>
>>>>>>>>>>          </clone>
>>>>>>>>>>       </outSequence>
>>>>>>>>>>  </target>
>>>>>>>>>>
>>>>>>>>>>    <parameter
>>>>>>>>>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>>>>>> parameter>
>>>>>>>>>>  <parameter name="transport.jms.Destination">TopicXA</parameter>
>>>>>>>>>>    <parameter name="transport.jms.DestinationType">topic</
>>>>>>>>>> parameter>
>>>>>>>>>>    <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>>>>>  </proxy>
>>>>>>>>>>
>>>>>>>>>> </definitions>
>>>>>>>>>>
>>>>>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>>>>>
>>>>>>>>>> But when I am starting the Synapse as "synapse -sample regproxy" ,
>>>>>>>>>> I
>>>>>>>>>> am
>>>>>>>>>> getting the following error
>>>>>>>>>>
>>>>>>>>>> roxyService Building Axis service for Proxy service : echoProxy
>>>>>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>>>>>> [WrapperSimpleAppMain]
>>>>>>>>>> FATAL S
>>>>>>>>>> erverManager Synaps startup failed...
>>>>>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>>>    at java.net.URI.toURL(Unknown Source)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>>>>>> ice.java:244)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>>>>>> eInitializationModule.java:134)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>>>>>> igurationContextFactory.java:226)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>>>>>> onContextFactory.java:204)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>>>>>    at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>>> 106)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>>  org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>>>
>>>>>>>>
>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>
>>>>>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>>>>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>    at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>>> :240)
>>>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>>>>
>>>>>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>>>>>> org.apache.synapse.SynapseE
>>>>>>>>>> xception: Synapse startup failed
>>>>>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>>>>>    at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>>> 167)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>>  org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>>>
>>>>>>>>
>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>
>>>>>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>>>>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>    at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>>    at
>>>>>>>>>>
>>>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>>> :240)
>>>>>>>>>>    at java.lang.Thread.run(Unknown Source)
>>>>>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>>>    at java.net.URI.toURL(Unknown Source)
>>>>>>>>>>
>>>>>>>>>> Any idea how to configure this and make it working?
>>>>>>>>>>
>>>>>>>>>> -thanks
>>>>>>>>>> tanmay
>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>>>>
>>>>>>>>  Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>> View this message in context:
>>>>>>>>
>>>>>>>>
>>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Ruwan Linton
>>>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>>>> http://ruwansblog.blogspot.com/
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ruwan Linton
>>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>>> http://ruwansblog.blogspot.com/
>>>>>>
>>>>>>
>>>>>> http://www.nabble.com/file/p18073426/echoEndpoint.xmlechoEndpoint.xml
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> Ruwan Linton
>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>> http://ruwansblog.blogspot.com/
>>>
>>>
>>>
>> --
>> View this message in context:
>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18077417.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: Remote configuration via HTTP-based registries

Posted by Andreas Veithen <an...@skynet.be>.
Do you have the possibility to monitor the communication between  
Synapse and the Subversion repository (using something like ngrep  
under Linux)?

On 23 juin 08, at 22:13, tsaha wrote:

>
> Hi Andreas:
>
> I set the content type text/xml as you have shown, but still getiing  
> the
> same error.
>
> First time it works, but after cachableDuration=15 sec, it gives the  
> same
> error
>
> -Thanks
> tanmay
>
>
>
> Ruwan Linton wrote:
>>
>> Hi Tanmay,
>>
>> At the same time keep an eye on this issue [1], fixing this issue  
>> should
>> fix
>> your problem I guess.
>>
>> Andreas, shall I look into this? Or do you have any plans?
>>
>> Thanks,
>> Ruwan
>>
>> [1] - https://issues.apache.org/jira/browse/SYNAPSE-371
>>
>> On Mon, Jun 23, 2008 at 10:45 PM, Andreas Veithen
>> <an...@skynet.be>
>> wrote:
>>
>>> svn propset svn:mime-type text/xml echoEndpoint.xml
>>>
>>> Andreas
>>>
>>>
>>> On 23 juin 08, at 18:55, tsaha wrote:
>>>
>>>
>>>> Hi Ruwan:
>>>>
>>>> Yes it is consistent. I am attaching the resource  
>>>> "echoEndpoint.xml"
>>>> here.
>>>> Please tell where I have to set the content type?
>>>>
>>>> -Thanks
>>>> tanmay
>>>>
>>>>
>>>>
>>>> Ruwan Linton wrote:
>>>>
>>>>>
>>>>> OK, I think the problem is the Content-Type, "text/html;
>>>>> charset=iso-8859-1"
>>>>>
>>>>> Can you set the content type to be text/xml on the resource and  
>>>>> see?
>>>>>
>>>>> Thanks,
>>>>> Ruwan
>>>>>
>>>>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ruwan.linton@gmail.com 
>>>>> >
>>>>> wrote:
>>>>>
>>>>> Hi tanmay,
>>>>>>
>>>>>> Is this consistent? Please post the full log of synapse,  
>>>>>> theoretically
>>>>>> it
>>>>>> should not lookup the registry second time and should get the
>>>>>> resources
>>>>>> from
>>>>>> the local cache, because you have used them once?
>>>>>>
>>>>>> May be an issue with the char encoding in the system... please  
>>>>>> post
>>>>>> the
>>>>>> full DEBUG log.
>>>>>>
>>>>>> Thanks,
>>>>>> Ruwan
>>>>>>
>>>>>>
>>>>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Tanmay.Saha@westernasset.com 
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>> Hi Andreas:
>>>>>>>
>>>>>>> Thansk it solves the problem. But works only one time, 2nd  
>>>>>>> time when
>>>>>>> I
>>>>>>> put
>>>>>>> another SOAP Pay load on TopicXA , I am getting the following  
>>>>>>> error.
>>>>>>>
>>>>>>> Registry URI Syntax error reading from URL
>>>>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>>
>>>>>>> java.net.URISyntaxException: Illegal character in path at  
>>>>>>> index 10:
>>>>>>> text/html; c
>>>>>>> harset=iso-8859-1
>>>>>>>     at java.net.URI$Parser.fail(Unknown Source)
>>>>>>>     at java.net.URI$Parser.checkChars(Unknown Source)
>>>>>>>     at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>>>>     at java.net.URI$Parser.parse(Unknown Source)
>>>>>>>     at java.net.URI.<init>(Unknown Source)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>>>>> mpleURLRegistry.java:142)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>>>>> stry.java:77)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>>>>> figuration.java:462)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>>>>> ssageContext.java:146)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>>>>> ava:50)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>>>>> xyServiceMessageReceiver.java:179)
>>>>>>>     at
>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>>>>     at
>>>>>>> org 
>>>>>>> .apache 
>>>>>>> .synapse.transport.base.AbstractTransportListener.handleInc
>>>>>>> omingMessage(AbstractTransportListener.java:256)
>>>>>>>     at
>>>>>>> org.apache.synapse.transport.jms.JMSMessageReceiver 
>>>>>>> $Worker.run(JMSMes
>>>>>>> sageReceiver.java:218)
>>>>>>>     at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>>>>>> Source
>>>>>>> )
>>>>>>>     at java.util.concurrent.ThreadPoolExecutor 
>>>>>>> $Worker.run(Unknown
>>>>>>> Source)
>>>>>>>     at java.lang.Thread.run(Unknown Source)
>>>>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]
>>>>>>> INFO
>>>>>>> LogMediat
>>>>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,
>>>>>>> Direction:
>>>>>>> request
>>>>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE =  
>>>>>>> 00000,
>>>>>>> ERROR_MESSAG
>>>>>>> E = URI Syntax error reading from URL
>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>>>> ,
>>>>>>> Envelope: <?xml
>>>>>>> version='1
>>>>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>>>>> g/soap/envelope/"
>>>>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>>>>> dy>
>>>>>>>   <ejb:echo>
>>>>>>>      <!--Optional:-->
>>>>>>>      <arg0>WA 6</arg0>
>>>>>>>   </ejb:echo>
>>>>>>> </soapenv:Body></soapenv:Envelope>
>>>>>>>
>>>>>>> why it works only one time and I have not changed the
>>>>>>> echoEndpoint.xml
>>>>>>> ?
>>>>>>>
>>>>>>> thanks
>>>>>>> tanmay
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Andreas Veithen wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Instead of using the "uri" attribute in the <publishWSDL>  
>>>>>>>> element,
>>>>>>>> you
>>>>>>>> need to use "key" as in the other mediators.
>>>>>>>>
>>>>>>>> Andreas
>>>>>>>>
>>>>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Can anybody pl tell how to make use of "Remote configuration  
>>>>>>>>> via
>>>>>>>>> HTTP-based
>>>>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc  
>>>>>>>>> into
>>>>>>>>> our SVN.
>>>>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>>>>> configuration
>>>>>>>>> synapse_sample_regproxy.xml and svn trunk structure are  
>>>>>>>>> attached
>>>>>>>>>
>>>>>>>> here.
>>>>>>>
>>>>>>>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>>>> <registry
>>>>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>>>>     <parameter
>>>>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>>>>> trunk/</parameter>
>>>>>>>>>     <parameter name="cachableDuration">15000</parameter>
>>>>>>>>> </registry>
>>>>>>>>>
>>>>>>>>> <proxy name="echoProxy" transports="jms">
>>>>>>>>>     <target>
>>>>>>>>>
>>>>>>>>>         <endpoint key="Endpoints/echoProxy/ 
>>>>>>>>> echoEndpoint.xml" />
>>>>>>>>>         <outSequence>
>>>>>>>>>                      <log level="full"/>
>>>>>>>>>                      <out>
>>>>>>>>>                           <xslt
>>>>>>>>>
>>>>>>>> key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>>>
>>>>>>>>                      </out>
>>>>>>>>>     <clone>
>>>>>>>>>
>>>>>>>>>              <target>
>>>>>>>>>                  <endpoint key="Endpoints/echoProxy/
>>>>>>>>> responseEndpointQ2.xml"
>>>>>>>>> />
>>>>>>>>>              </target>
>>>>>>>>>
>>>>>>>>>              <target>
>>>>>>>>>               <endpoint key="Endpoints/echoProxy/
>>>>>>>>> responseEndpointQ3.xml" />
>>>>>>>>>              </target>
>>>>>>>>>
>>>>>>>>>              <target>
>>>>>>>>>                <endpoint key="Endpoints/echoProxy/
>>>>>>>>> responseEndpointQ4.xml" />
>>>>>>>>>             </target>
>>>>>>>>>           </clone>
>>>>>>>>>        </outSequence>
>>>>>>>>>   </target>
>>>>>>>>>
>>>>>>>>>     <parameter
>>>>>>>>> name 
>>>>>>>>> ="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>>>>> parameter>
>>>>>>>>>   <parameter name="transport.jms.Destination">TopicXA</ 
>>>>>>>>> parameter>
>>>>>>>>>     <parameter name="transport.jms.DestinationType">topic</
>>>>>>>>> parameter>
>>>>>>>>>     <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>>>>   </proxy>
>>>>>>>>>
>>>>>>>>> </definitions>
>>>>>>>>>
>>>>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>>>>
>>>>>>>>> But when I am starting the Synapse as "synapse -sample  
>>>>>>>>> regproxy" ,
>>>>>>>>> I
>>>>>>>>> am
>>>>>>>>> getting the following error
>>>>>>>>>
>>>>>>>>> roxyService Building Axis service for Proxy service :  
>>>>>>>>> echoProxy
>>>>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>>>>> [WrapperSimpleAppMain]
>>>>>>>>> FATAL S
>>>>>>>>> erverManager Synaps startup failed...
>>>>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>>     at java.net.URI.toURL(Unknown Source)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>>>>> ice.java:244)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>>>>> eInitializationModule.java:134)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>>>>> igurationContextFactory.java:226)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>>>>> onContextFactory.java:204)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .apache 
>>>>>>>>> .axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>>>>     at  
>>>>>>>>> org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>> 106)
>>>>>>>>>     at
>>>>>>>>>
>>>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>
>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>>>>>>>> Method)
>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown  
>>>>>>>>> Source)
>>>>>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>> Source)
>>>>>>>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .tanukisoftware 
>>>>>>>>> .wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>> :240)
>>>>>>>>>     at java.lang.Thread.run(Unknown Source)
>>>>>>>>>
>>>>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>>>>> org.apache.synapse.SynapseE
>>>>>>>>> xception: Synapse startup failed
>>>>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>>>>     at  
>>>>>>>>> org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>>> 167)
>>>>>>>>>     at
>>>>>>>>>
>>>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>>
>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>>>>>>>> Method)
>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown  
>>>>>>>>> Source)
>>>>>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>>> Source)
>>>>>>>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>>     at
>>>>>>>>> org 
>>>>>>>>> .tanukisoftware 
>>>>>>>>> .wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>>> :240)
>>>>>>>>>     at java.lang.Thread.run(Unknown Source)
>>>>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not  
>>>>>>>>> absolute
>>>>>>>>>     at java.net.URI.toURL(Unknown Source)
>>>>>>>>>
>>>>>>>>> Any idea how to configure this and make it working?
>>>>>>>>>
>>>>>>>>> -thanks
>>>>>>>>> tanmay
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>>
>>>>>>>>>
>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>>>
>>>>>>>> Sent from the Synapse - User mailing list archive at  
>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ruwan Linton
>>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>>> http://ruwansblog.blogspot.com/
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ruwan Linton
>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>> http://ruwansblog.blogspot.com/
>>>>>
>>>>>
>>>>> http://www.nabble.com/file/p18073426/echoEndpoint.xml  
>>>>> echoEndpoint.xml
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>
>>
>> -- 
>> Ruwan Linton
>> http://wso2.org - "Oxygenating the Web Services Platform"
>> http://ruwansblog.blogspot.com/
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18077417.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>


Re: Remote configuration via HTTP-based registries

Posted by tsaha <Ta...@westernasset.com>.
Hi Andreas:

I set the content type text/xml as you have shown, but still getiing the
same error. 

First time it works, but after cachableDuration=15 sec, it gives the same
error

-Thanks
tanmay



Ruwan Linton wrote:
> 
> Hi Tanmay,
> 
> At the same time keep an eye on this issue [1], fixing this issue should
> fix
> your problem I guess.
> 
> Andreas, shall I look into this? Or do you have any plans?
> 
> Thanks,
> Ruwan
> 
> [1] - https://issues.apache.org/jira/browse/SYNAPSE-371
> 
> On Mon, Jun 23, 2008 at 10:45 PM, Andreas Veithen
> <an...@skynet.be>
> wrote:
> 
>> svn propset svn:mime-type text/xml echoEndpoint.xml
>>
>> Andreas
>>
>>
>> On 23 juin 08, at 18:55, tsaha wrote:
>>
>>
>>> Hi Ruwan:
>>>
>>> Yes it is consistent. I am attaching the resource "echoEndpoint.xml"
>>> here.
>>> Please tell where I have to set the content type?
>>>
>>> -Thanks
>>> tanmay
>>>
>>>
>>>
>>> Ruwan Linton wrote:
>>>
>>>>
>>>> OK, I think the problem is the Content-Type, "text/html;
>>>> charset=iso-8859-1"
>>>>
>>>> Can you set the content type to be text/xml on the resource and see?
>>>>
>>>> Thanks,
>>>> Ruwan
>>>>
>>>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ru...@gmail.com>
>>>> wrote:
>>>>
>>>>  Hi tanmay,
>>>>>
>>>>> Is this consistent? Please post the full log of synapse, theoretically
>>>>> it
>>>>> should not lookup the registry second time and should get the
>>>>> resources
>>>>> from
>>>>> the local cache, because you have used them once?
>>>>>
>>>>> May be an issue with the char encoding in the system... please post
>>>>> the
>>>>> full DEBUG log.
>>>>>
>>>>> Thanks,
>>>>> Ruwan
>>>>>
>>>>>
>>>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Ta...@westernasset.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> Hi Andreas:
>>>>>>
>>>>>> Thansk it solves the problem. But works only one time, 2nd time when
>>>>>> I
>>>>>> put
>>>>>> another SOAP Pay load on TopicXA , I am getting the following error.
>>>>>>
>>>>>> Registry URI Syntax error reading from URL
>>>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>> >
>>>>>> java.net.URISyntaxException: Illegal character in path at index 10:
>>>>>> text/html; c
>>>>>> harset=iso-8859-1
>>>>>>      at java.net.URI$Parser.fail(Unknown Source)
>>>>>>      at java.net.URI$Parser.checkChars(Unknown Source)
>>>>>>      at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>>>      at java.net.URI$Parser.parse(Unknown Source)
>>>>>>      at java.net.URI.<init>(Unknown Source)
>>>>>>      at
>>>>>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>>>> mpleURLRegistry.java:142)
>>>>>>      at
>>>>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>>>> stry.java:77)
>>>>>>      at
>>>>>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>>>> figuration.java:462)
>>>>>>      at
>>>>>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>>>> ssageContext.java:146)
>>>>>>      at
>>>>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>>>> ava:50)
>>>>>>      at
>>>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>>>> xyServiceMessageReceiver.java:179)
>>>>>>      at
>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>>>      at
>>>>>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>>>>>> omingMessage(AbstractTransportListener.java:256)
>>>>>>      at
>>>>>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>>>>>> sageReceiver.java:218)
>>>>>>      at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>>>>> Source
>>>>>> )
>>>>>>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>>>> Source)
>>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4] 
>>>>>> INFO
>>>>>> LogMediat
>>>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,
>>>>>> Direction:
>>>>>> request
>>>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>>>>>> ERROR_MESSAG
>>>>>> E = URI Syntax error reading from URL
>>>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>>> >,
>>>>>> Envelope: <?xml
>>>>>> version='1
>>>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>>>> g/soap/envelope/"
>>>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>>>> dy>
>>>>>>    <ejb:echo>
>>>>>>       <!--Optional:-->
>>>>>>       <arg0>WA 6</arg0>
>>>>>>    </ejb:echo>
>>>>>>  </soapenv:Body></soapenv:Envelope>
>>>>>>
>>>>>> why it works only one time and I have not changed the
>>>>>> echoEndpoint.xml
>>>>>> ?
>>>>>>
>>>>>> thanks
>>>>>> tanmay
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Andreas Veithen wrote:
>>>>>>
>>>>>>>
>>>>>>> Instead of using the "uri" attribute in the <publishWSDL> element,
>>>>>>> you
>>>>>>> need to use "key" as in the other mediators.
>>>>>>>
>>>>>>> Andreas
>>>>>>>
>>>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Can anybody pl tell how to make use of "Remote configuration via
>>>>>>>> HTTP-based
>>>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc into
>>>>>>>> our SVN.
>>>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>>>> configuration
>>>>>>>> synapse_sample_regproxy.xml and svn trunk structure are attached
>>>>>>>>
>>>>>>> here.
>>>>>>
>>>>>>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>>>  <registry
>>>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>>>      <parameter
>>>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>>>> trunk/</parameter>
>>>>>>>>      <parameter name="cachableDuration">15000</parameter>
>>>>>>>>  </registry>
>>>>>>>>
>>>>>>>>  <proxy name="echoProxy" transports="jms">
>>>>>>>>      <target>
>>>>>>>>
>>>>>>>>          <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>>>>>>>          <outSequence>
>>>>>>>>                       <log level="full"/>
>>>>>>>>                       <out>
>>>>>>>>                            <xslt
>>>>>>>>
>>>>>>> key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>>
>>>>>>>                       </out>
>>>>>>>>      <clone>
>>>>>>>>
>>>>>>>>               <target>
>>>>>>>>                   <endpoint key="Endpoints/echoProxy/
>>>>>>>> responseEndpointQ2.xml"
>>>>>>>> />
>>>>>>>>               </target>
>>>>>>>>
>>>>>>>>               <target>
>>>>>>>>                <endpoint key="Endpoints/echoProxy/
>>>>>>>> responseEndpointQ3.xml" />
>>>>>>>>               </target>
>>>>>>>>
>>>>>>>>               <target>
>>>>>>>>                 <endpoint key="Endpoints/echoProxy/
>>>>>>>> responseEndpointQ4.xml" />
>>>>>>>>              </target>
>>>>>>>>            </clone>
>>>>>>>>         </outSequence>
>>>>>>>>    </target>
>>>>>>>>
>>>>>>>>      <parameter
>>>>>>>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>>>> parameter>
>>>>>>>>    <parameter name="transport.jms.Destination">TopicXA</parameter>
>>>>>>>>      <parameter name="transport.jms.DestinationType">topic</
>>>>>>>> parameter>
>>>>>>>>      <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>>>    </proxy>
>>>>>>>>
>>>>>>>> </definitions>
>>>>>>>>
>>>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>>>
>>>>>>>> But when I am starting the Synapse as "synapse -sample regproxy" ,
>>>>>>>> I
>>>>>>>> am
>>>>>>>> getting the following error
>>>>>>>>
>>>>>>>> roxyService Building Axis service for Proxy service : echoProxy
>>>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>>>> [WrapperSimpleAppMain]
>>>>>>>> FATAL S
>>>>>>>> erverManager Synaps startup failed...
>>>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>      at java.net.URI.toURL(Unknown Source)
>>>>>>>>      at
>>>>>>>> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>>>> ice.java:244)
>>>>>>>>      at
>>>>>>>> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>>>> eInitializationModule.java:134)
>>>>>>>>      at
>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>>>> igurationContextFactory.java:226)
>>>>>>>>      at
>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>>>> onContextFactory.java:204)
>>>>>>>>      at
>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>>>      at
>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>>>      at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>> 106)
>>>>>>>>      at
>>>>>>>>
>>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>
>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>> Source)
>>>>>>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>      at
>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>> :240)
>>>>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>>>>>
>>>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>>>> org.apache.synapse.SynapseE
>>>>>>>> xception: Synapse startup failed
>>>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>>>      at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>>> 167)
>>>>>>>>      at
>>>>>>>>
>>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>
>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>>> Source)
>>>>>>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>>      at
>>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>>> :240)
>>>>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>>      at java.net.URI.toURL(Unknown Source)
>>>>>>>>
>>>>>>>> Any idea how to configure this and make it working?
>>>>>>>>
>>>>>>>> -thanks
>>>>>>>> tanmay
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>>
>>>>>>>>
>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>>
>>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Ruwan Linton
>>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>>> http://ruwansblog.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ruwan Linton
>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>> http://ruwansblog.blogspot.com/
>>>>
>>>>
>>>>  http://www.nabble.com/file/p18073426/echoEndpoint.xml echoEndpoint.xml
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>
>>>
>>
> 
> 
> -- 
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18077417.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Remote configuration via HTTP-based registries

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Tanmay,

At the same time keep an eye on this issue [1], fixing this issue should fix
your problem I guess.

Andreas, shall I look into this? Or do you have any plans?

Thanks,
Ruwan

[1] - https://issues.apache.org/jira/browse/SYNAPSE-371

On Mon, Jun 23, 2008 at 10:45 PM, Andreas Veithen <an...@skynet.be>
wrote:

> svn propset svn:mime-type text/xml echoEndpoint.xml
>
> Andreas
>
>
> On 23 juin 08, at 18:55, tsaha wrote:
>
>
>> Hi Ruwan:
>>
>> Yes it is consistent. I am attaching the resource "echoEndpoint.xml" here.
>> Please tell where I have to set the content type?
>>
>> -Thanks
>> tanmay
>>
>>
>>
>> Ruwan Linton wrote:
>>
>>>
>>> OK, I think the problem is the Content-Type, "text/html;
>>> charset=iso-8859-1"
>>>
>>> Can you set the content type to be text/xml on the resource and see?
>>>
>>> Thanks,
>>> Ruwan
>>>
>>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ru...@gmail.com>
>>> wrote:
>>>
>>>  Hi tanmay,
>>>>
>>>> Is this consistent? Please post the full log of synapse, theoretically
>>>> it
>>>> should not lookup the registry second time and should get the resources
>>>> from
>>>> the local cache, because you have used them once?
>>>>
>>>> May be an issue with the char encoding in the system... please post the
>>>> full DEBUG log.
>>>>
>>>> Thanks,
>>>> Ruwan
>>>>
>>>>
>>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Ta...@westernasset.com>
>>>> wrote:
>>>>
>>>>
>>>>> Hi Andreas:
>>>>>
>>>>> Thansk it solves the problem. But works only one time, 2nd time when I
>>>>> put
>>>>> another SOAP Pay load on TopicXA , I am getting the following error.
>>>>>
>>>>> Registry URI Syntax error reading from URL
>>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>> >
>>>>> java.net.URISyntaxException: Illegal character in path at index 10:
>>>>> text/html; c
>>>>> harset=iso-8859-1
>>>>>      at java.net.URI$Parser.fail(Unknown Source)
>>>>>      at java.net.URI$Parser.checkChars(Unknown Source)
>>>>>      at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>>      at java.net.URI$Parser.parse(Unknown Source)
>>>>>      at java.net.URI.<init>(Unknown Source)
>>>>>      at
>>>>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>>> mpleURLRegistry.java:142)
>>>>>      at
>>>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>>> stry.java:77)
>>>>>      at
>>>>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>>> figuration.java:462)
>>>>>      at
>>>>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>>> ssageContext.java:146)
>>>>>      at
>>>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>>> ava:50)
>>>>>      at
>>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>>> xyServiceMessageReceiver.java:179)
>>>>>      at
>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>>      at
>>>>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>>>>> omingMessage(AbstractTransportListener.java:256)
>>>>>      at
>>>>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>>>>> sageReceiver.java:218)
>>>>>      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>>>> Source
>>>>> )
>>>>>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>>> Source)
>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]  INFO
>>>>> LogMediat
>>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,
>>>>> Direction:
>>>>> request
>>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>>>>> ERROR_MESSAG
>>>>> E = URI Syntax error reading from URL
>>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<
>>>>> http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
>>>>> >,
>>>>> Envelope: <?xml
>>>>> version='1
>>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>>> g/soap/envelope/"
>>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>>> dy>
>>>>>    <ejb:echo>
>>>>>       <!--Optional:-->
>>>>>       <arg0>WA 6</arg0>
>>>>>    </ejb:echo>
>>>>>  </soapenv:Body></soapenv:Envelope>
>>>>>
>>>>> why it works only one time and I have not changed the echoEndpoint.xml
>>>>> ?
>>>>>
>>>>> thanks
>>>>> tanmay
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Andreas Veithen wrote:
>>>>>
>>>>>>
>>>>>> Instead of using the "uri" attribute in the <publishWSDL> element, you
>>>>>> need to use "key" as in the other mediators.
>>>>>>
>>>>>> Andreas
>>>>>>
>>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>>
>>>>>>
>>>>>>> Can anybody pl tell how to make use of "Remote configuration via
>>>>>>> HTTP-based
>>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc into
>>>>>>> our SVN.
>>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>>> configuration
>>>>>>> synapse_sample_regproxy.xml and svn trunk structure are attached
>>>>>>>
>>>>>> here.
>>>>>
>>>>>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>>  <registry
>>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>>      <parameter
>>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>>> trunk/</parameter>
>>>>>>>      <parameter name="cachableDuration">15000</parameter>
>>>>>>>  </registry>
>>>>>>>
>>>>>>>  <proxy name="echoProxy" transports="jms">
>>>>>>>      <target>
>>>>>>>
>>>>>>>          <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>>>>>>          <outSequence>
>>>>>>>                       <log level="full"/>
>>>>>>>                       <out>
>>>>>>>                            <xslt
>>>>>>>
>>>>>> key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>
>>>>>>                       </out>
>>>>>>>      <clone>
>>>>>>>
>>>>>>>               <target>
>>>>>>>                   <endpoint key="Endpoints/echoProxy/
>>>>>>> responseEndpointQ2.xml"
>>>>>>> />
>>>>>>>               </target>
>>>>>>>
>>>>>>>               <target>
>>>>>>>                <endpoint key="Endpoints/echoProxy/
>>>>>>> responseEndpointQ3.xml" />
>>>>>>>               </target>
>>>>>>>
>>>>>>>               <target>
>>>>>>>                 <endpoint key="Endpoints/echoProxy/
>>>>>>> responseEndpointQ4.xml" />
>>>>>>>              </target>
>>>>>>>            </clone>
>>>>>>>         </outSequence>
>>>>>>>    </target>
>>>>>>>
>>>>>>>      <parameter
>>>>>>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>>> parameter>
>>>>>>>    <parameter name="transport.jms.Destination">TopicXA</parameter>
>>>>>>>      <parameter name="transport.jms.DestinationType">topic</
>>>>>>> parameter>
>>>>>>>      <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>>    </proxy>
>>>>>>>
>>>>>>> </definitions>
>>>>>>>
>>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>>
>>>>>>> But when I am starting the Synapse as "synapse -sample regproxy" , I
>>>>>>> am
>>>>>>> getting the following error
>>>>>>>
>>>>>>> roxyService Building Axis service for Proxy service : echoProxy
>>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>>> [WrapperSimpleAppMain]
>>>>>>> FATAL S
>>>>>>> erverManager Synaps startup failed...
>>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>      at java.net.URI.toURL(Unknown Source)
>>>>>>>      at
>>>>>>> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>>> ice.java:244)
>>>>>>>      at
>>>>>>> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>>> eInitializationModule.java:134)
>>>>>>>      at
>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>>> igurationContextFactory.java:226)
>>>>>>>      at
>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>>> onContextFactory.java:204)
>>>>>>>      at
>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>>      at
>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>>      at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>> 106)
>>>>>>>      at
>>>>>>>
>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>
>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>> Source)
>>>>>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>      at
>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>> :240)
>>>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>>>>
>>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>>> org.apache.synapse.SynapseE
>>>>>>> xception: Synapse startup failed
>>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>>      at org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>>> 167)
>>>>>>>      at
>>>>>>>
>>>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>
>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>>> Source)
>>>>>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>>      at
>>>>>>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>>> :240)
>>>>>>>      at java.lang.Thread.run(Unknown Source)
>>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>>>>>>>      at java.net.URI.toURL(Unknown Source)
>>>>>>>
>>>>>>> Any idea how to configure this and make it working?
>>>>>>>
>>>>>>> -thanks
>>>>>>> tanmay
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>>
>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>
>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> Ruwan Linton
>>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>>> http://ruwansblog.blogspot.com/
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Ruwan Linton
>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>> http://ruwansblog.blogspot.com/
>>>
>>>
>>>  http://www.nabble.com/file/p18073426/echoEndpoint.xml echoEndpoint.xml
>> --
>> View this message in context:
>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: Remote configuration via HTTP-based registries

Posted by Andreas Veithen <an...@skynet.be>.
svn propset svn:mime-type text/xml echoEndpoint.xml

Andreas

On 23 juin 08, at 18:55, tsaha wrote:

>
> Hi Ruwan:
>
> Yes it is consistent. I am attaching the resource "echoEndpoint.xml"  
> here.
> Please tell where I have to set the content type?
>
> -Thanks
> tanmay
>
>
>
> Ruwan Linton wrote:
>>
>> OK, I think the problem is the Content-Type, "text/html;
>> charset=iso-8859-1"
>>
>> Can you set the content type to be text/xml on the resource and see?
>>
>> Thanks,
>> Ruwan
>>
>> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton  
>> <ru...@gmail.com>
>> wrote:
>>
>>> Hi tanmay,
>>>
>>> Is this consistent? Please post the full log of synapse,  
>>> theoretically it
>>> should not lookup the registry second time and should get the  
>>> resources
>>> from
>>> the local cache, because you have used them once?
>>>
>>> May be an issue with the char encoding in the system... please  
>>> post the
>>> full DEBUG log.
>>>
>>> Thanks,
>>> Ruwan
>>>
>>>
>>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha  
>>> <Ta...@westernasset.com>
>>> wrote:
>>>
>>>>
>>>> Hi Andreas:
>>>>
>>>> Thansk it solves the problem. But works only one time, 2nd time  
>>>> when I
>>>> put
>>>> another SOAP Pay load on TopicXA , I am getting the following  
>>>> error.
>>>>
>>>> Registry URI Syntax error reading from URL
>>>> http://pasSCMdev/svn/incubator/wam-sy
>>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml 
>>>> >
>>>> java.net.URISyntaxException: Illegal character in path at index 10:
>>>> text/html; c
>>>> harset=iso-8859-1
>>>>       at java.net.URI$Parser.fail(Unknown Source)
>>>>       at java.net.URI$Parser.checkChars(Unknown Source)
>>>>       at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>>       at java.net.URI$Parser.parse(Unknown Source)
>>>>       at java.net.URI.<init>(Unknown Source)
>>>>       at
>>>> org 
>>>> .apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>>> mpleURLRegistry.java:142)
>>>>       at
>>>> org 
>>>> .apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>>> stry.java:77)
>>>>       at
>>>> org 
>>>> .apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>>> figuration.java:462)
>>>>       at
>>>> org 
>>>> .apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>>> ssageContext.java:146)
>>>>       at
>>>> org 
>>>> .apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>>> ava:50)
>>>>       at
>>>> org 
>>>> .apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>>> xyServiceMessageReceiver.java:179)
>>>>       at
>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>>       at
>>>> org 
>>>> .apache.synapse.transport.base.AbstractTransportListener.handleInc
>>>> omingMessage(AbstractTransportListener.java:256)
>>>>       at
>>>> org.apache.synapse.transport.jms.JMSMessageReceiver 
>>>> $Worker.run(JMSMes
>>>> sageReceiver.java:218)
>>>>       at java.util.concurrent.ThreadPoolExecutor 
>>>> $Worker.runTask(Unknown
>>>> Source
>>>> )
>>>>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>> Source)
>>>>       at java.lang.Thread.run(Unknown Source)
>>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]   
>>>> INFO
>>>> LogMediat
>>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0,  
>>>> Direction:
>>>> request
>>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>>>> ERROR_MESSAG
>>>> E = URI Syntax error reading from URL
>>>> http://pasSCMdev/svn/incubator/wam-synapse
>>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml 
>>>> >,
>>>> Envelope: <?xml
>>>> version='1
>>>> .0' encoding='utf-8'?><soapenv:Envelope
>>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>>> g/soap/envelope/"
>>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>>> dy>
>>>>     <ejb:echo>
>>>>        <!--Optional:-->
>>>>        <arg0>WA 6</arg0>
>>>>     </ejb:echo>
>>>>  </soapenv:Body></soapenv:Envelope>
>>>>
>>>> why it works only one time and I have not changed the  
>>>> echoEndpoint.xml ?
>>>>
>>>> thanks
>>>> tanmay
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Andreas Veithen wrote:
>>>>>
>>>>> Instead of using the "uri" attribute in the <publishWSDL>  
>>>>> element, you
>>>>> need to use "key" as in the other mediators.
>>>>>
>>>>> Andreas
>>>>>
>>>>> On 20 juin 08, at 00:51, tsaha wrote:
>>>>>
>>>>>>
>>>>>> Can anybody pl tell how to make use of "Remote configuration via
>>>>>> HTTP-based
>>>>>> registries" ? I have added few endpoints, wsdls, xsl and etc into
>>>>>> our SVN.
>>>>>> Now I want my proxy to use those resources from SVN. My proxy
>>>>>> configuration
>>>>>> synapse_sample_regproxy.xml and svn trunk structure are attached
>>>> here.
>>>>>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>>>>   <registry
>>>>>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>>>>>       <parameter
>>>>>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>>>>> trunk/</parameter>
>>>>>>       <parameter name="cachableDuration">15000</parameter>
>>>>>>   </registry>
>>>>>>
>>>>>>   <proxy name="echoProxy" transports="jms">
>>>>>>       <target>
>>>>>>
>>>>>>           <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>>>>>           <outSequence>
>>>>>>                        <log level="full"/>
>>>>>>                        <out>
>>>>>>                             <xslt
>>>> key="XSLT/echoProxy/echo_transform.xml"/>
>>>>>>                        </out>
>>>>>>       <clone>
>>>>>>
>>>>>>                <target>
>>>>>>                    <endpoint key="Endpoints/echoProxy/
>>>>>> responseEndpointQ2.xml"
>>>>>> />
>>>>>>                </target>
>>>>>>
>>>>>>                <target>
>>>>>>                 <endpoint key="Endpoints/echoProxy/
>>>>>> responseEndpointQ3.xml" />
>>>>>>                </target>
>>>>>>
>>>>>>                <target>
>>>>>>                  <endpoint key="Endpoints/echoProxy/
>>>>>> responseEndpointQ4.xml" />
>>>>>>               </target>
>>>>>>             </clone>
>>>>>>          </outSequence>
>>>>>>     </target>
>>>>>>
>>>>>>       <parameter
>>>>>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>>>>> parameter>
>>>>>>     <parameter name="transport.jms.Destination">TopicXA</ 
>>>>>> parameter>
>>>>>>       <parameter name="transport.jms.DestinationType">topic</
>>>>>> parameter>
>>>>>>       <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>>>>>     </proxy>
>>>>>>
>>>>>> </definitions>
>>>>>>
>>>>>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>>>>>
>>>>>> But when I am starting the Synapse as "synapse -sample  
>>>>>> regproxy" , I
>>>>>> am
>>>>>> getting the following error
>>>>>>
>>>>>> roxyService Building Axis service for Proxy service : echoProxy
>>>>>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>>>>> [WrapperSimpleAppMain]
>>>>>> FATAL S
>>>>>> erverManager Synaps startup failed...
>>>>>> java.lang.IllegalArgumentException: URI is not absolute
>>>>>>       at java.net.URI.toURL(Unknown Source)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>>>>> ice.java:244)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>>>>> eInitializationModule.java:134)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .axis2.context.ConfigurationContextFactory.initModules(Conf
>>>>>> igurationContextFactory.java:226)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .axis2.context.ConfigurationContextFactory.init(Configurati
>>>>>> onContextFactory.java:204)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>> ionContext(ConfigurationContextFactory.java:80)
>>>>>>       at
>>>>>> org 
>>>>>> .apache 
>>>>>> .axis2.context.ConfigurationContextFactory.createConfigurat
>>>>>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>>>>>       at  
>>>>>> org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>> 106)
>>>>>>       at
>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>>>>>> Method)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown  
>>>>>> Source)
>>>>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>> Source)
>>>>>>       at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>       at
>>>>>> org 
>>>>>> .tanukisoftware 
>>>>>> .wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>> :240)
>>>>>>       at java.lang.Thread.run(Unknown Source)
>>>>>>
>>>>>> WrapperSimpleApp: Encountered an error running main:
>>>>>> org.apache.synapse.SynapseE
>>>>>> xception: Synapse startup failed
>>>>>> org.apache.synapse.SynapseException: Synapse startup failed
>>>>>>       at  
>>>>>> org.apache.synapse.ServerManager.start(ServerManager.java:
>>>>>> 167)
>>>>>>       at
>>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>>>>>> Method)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown  
>>>>>> Source)
>>>>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>> Source)
>>>>>>       at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>>       at
>>>>>> org 
>>>>>> .tanukisoftware 
>>>>>> .wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>>>>> :240)
>>>>>>       at java.lang.Thread.run(Unknown Source)
>>>>>> Caused by: java.lang.IllegalArgumentException: URI is not  
>>>>>> absolute
>>>>>>       at java.net.URI.toURL(Unknown Source)
>>>>>>
>>>>>> Any idea how to configure this and make it working?
>>>>>>
>>>>>> -thanks
>>>>>> tanmay
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>> --
>>> Ruwan Linton
>>> http://wso2.org - "Oxygenating the Web Services Platform"
>>> http://ruwansblog.blogspot.com/
>>
>>
>>
>>
>> -- 
>> Ruwan Linton
>> http://wso2.org - "Oxygenating the Web Services Platform"
>> http://ruwansblog.blogspot.com/
>>
>>
> http://www.nabble.com/file/p18073426/echoEndpoint.xml echoEndpoint.xml
> -- 
> View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>


Re: Remote configuration via HTTP-based registries

Posted by tsaha <Ta...@westernasset.com>.
Hi Ruwan:

Yes it is consistent. I am attaching the resource "echoEndpoint.xml" here.
Please tell where I have to set the content type?

-Thanks
tanmay



Ruwan Linton wrote:
> 
> OK, I think the problem is the Content-Type, "text/html;
> charset=iso-8859-1"
> 
> Can you set the content type to be text/xml on the resource and see?
> 
> Thanks,
> Ruwan
> 
> On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ru...@gmail.com>
> wrote:
> 
>> Hi tanmay,
>>
>> Is this consistent? Please post the full log of synapse, theoretically it
>> should not lookup the registry second time and should get the resources
>> from
>> the local cache, because you have used them once?
>>
>> May be an issue with the char encoding in the system... please post the
>> full DEBUG log.
>>
>> Thanks,
>> Ruwan
>>
>>
>> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Ta...@westernasset.com>
>> wrote:
>>
>>>
>>> Hi Andreas:
>>>
>>> Thansk it solves the problem. But works only one time, 2nd time when I
>>> put
>>> another SOAP Pay load on TopicXA , I am getting the following error.
>>>
>>> Registry URI Syntax error reading from URL
>>> http://pasSCMdev/svn/incubator/wam-sy
>>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>
>>> java.net.URISyntaxException: Illegal character in path at index 10:
>>> text/html; c
>>> harset=iso-8859-1
>>>        at java.net.URI$Parser.fail(Unknown Source)
>>>        at java.net.URI$Parser.checkChars(Unknown Source)
>>>        at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>>        at java.net.URI$Parser.parse(Unknown Source)
>>>        at java.net.URI.<init>(Unknown Source)
>>>        at
>>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>>> mpleURLRegistry.java:142)
>>>        at
>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>>> stry.java:77)
>>>        at
>>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>>> figuration.java:462)
>>>        at
>>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>>> ssageContext.java:146)
>>>        at
>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>>> ava:50)
>>>        at
>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>>> xyServiceMessageReceiver.java:179)
>>>        at
>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>>        at
>>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>>> omingMessage(AbstractTransportListener.java:256)
>>>        at
>>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>>> sageReceiver.java:218)
>>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>> Source
>>> )
>>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>> Source)
>>>        at java.lang.Thread.run(Unknown Source)
>>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]  INFO
>>> LogMediat
>>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0, Direction:
>>> request
>>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>>> ERROR_MESSAG
>>> E = URI Syntax error reading from URL
>>> http://pasSCMdev/svn/incubator/wam-synapse
>>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>,
>>> Envelope: <?xml
>>> version='1
>>> .0' encoding='utf-8'?><soapenv:Envelope
>>> xmlns:soapenv="http://schemas.xmlsoap.or
>>> g/soap/envelope/"
>>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>>> dy>
>>>      <ejb:echo>
>>>         <!--Optional:-->
>>>         <arg0>WA 6</arg0>
>>>      </ejb:echo>
>>>   </soapenv:Body></soapenv:Envelope>
>>>
>>> why it works only one time and I have not changed the echoEndpoint.xml ?
>>>
>>> thanks
>>> tanmay
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Andreas Veithen wrote:
>>> >
>>> > Instead of using the "uri" attribute in the <publishWSDL> element, you
>>> > need to use "key" as in the other mediators.
>>> >
>>> > Andreas
>>> >
>>> > On 20 juin 08, at 00:51, tsaha wrote:
>>> >
>>> >>
>>> >> Can anybody pl tell how to make use of "Remote configuration via
>>> >> HTTP-based
>>> >> registries" ? I have added few endpoints, wsdls, xsl and etc into
>>> >> our SVN.
>>> >> Now I want my proxy to use those resources from SVN. My proxy
>>> >> configuration
>>> >> synapse_sample_regproxy.xml and svn trunk structure are attached
>>> here.
>>> >> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>> >>    <registry
>>> >> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>> >>        <parameter
>>> >> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>>> >> trunk/</parameter>
>>> >>        <parameter name="cachableDuration">15000</parameter>
>>> >>    </registry>
>>> >>
>>> >>    <proxy name="echoProxy" transports="jms">
>>> >>        <target>
>>> >>
>>> >>            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>> >>            <outSequence>
>>> >>                         <log level="full"/>
>>> >>                         <out>
>>> >>                              <xslt
>>> key="XSLT/echoProxy/echo_transform.xml"/>
>>> >>                         </out>
>>> >>        <clone>
>>> >>
>>> >>                 <target>
>>> >>                     <endpoint key="Endpoints/echoProxy/
>>> >> responseEndpointQ2.xml"
>>> >> />
>>> >>                 </target>
>>> >>
>>> >>                 <target>
>>> >>                  <endpoint key="Endpoints/echoProxy/
>>> >> responseEndpointQ3.xml" />
>>> >>                 </target>
>>> >>
>>> >>                 <target>
>>> >>                   <endpoint key="Endpoints/echoProxy/
>>> >> responseEndpointQ4.xml" />
>>> >>                </target>
>>> >>              </clone>
>>> >>           </outSequence>
>>> >>      </target>
>>> >>
>>> >>        <parameter
>>> >> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>>> >> parameter>
>>> >>      <parameter name="transport.jms.Destination">TopicXA</parameter>
>>> >>        <parameter name="transport.jms.DestinationType">topic</
>>> >> parameter>
>>> >>        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>> >>      </proxy>
>>> >>
>>> >> </definitions>
>>> >>
>>> >> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>> >>
>>> >> But when I am starting the Synapse as "synapse -sample regproxy" , I
>>> >> am
>>> >> getting the following error
>>> >>
>>> >> roxyService Building Axis service for Proxy service : echoProxy
>>> >> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>>> >> [WrapperSimpleAppMain]
>>> >> FATAL S
>>> >> erverManager Synaps startup failed...
>>> >> java.lang.IllegalArgumentException: URI is not absolute
>>> >>        at java.net.URI.toURL(Unknown Source)
>>> >>        at
>>> >> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>>> >> ice.java:244)
>>> >>        at
>>> >> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>>> >> eInitializationModule.java:134)
>>> >>        at
>>> >> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>>> >> igurationContextFactory.java:226)
>>> >>        at
>>> >> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>>> >> onContextFactory.java:204)
>>> >>        at
>>> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>> >> ionContext(ConfigurationContextFactory.java:80)
>>> >>        at
>>> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>>> >> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
>>> >> 106)
>>> >>        at
>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> >> Source)
>>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>>> >>        at
>>> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>> >> :240)
>>> >>        at java.lang.Thread.run(Unknown Source)
>>> >>
>>> >> WrapperSimpleApp: Encountered an error running main:
>>> >> org.apache.synapse.SynapseE
>>> >> xception: Synapse startup failed
>>> >> org.apache.synapse.SynapseException: Synapse startup failed
>>> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
>>> >> 167)
>>> >>        at
>>> org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> >> Source)
>>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>>> >>        at
>>> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>>> >> :240)
>>> >>        at java.lang.Thread.run(Unknown Source)
>>> >> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>>> >>        at java.net.URI.toURL(Unknown Source)
>>> >>
>>> >> Any idea how to configure this and make it working?
>>> >>
>>> >> -thanks
>>> >> tanmay
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>>> >> Sent from the Synapse - User mailing list archive at Nabble.com.
>>> >>
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Ruwan Linton
>> http://wso2.org - "Oxygenating the Web Services Platform"
>> http://ruwansblog.blogspot.com/
> 
> 
> 
> 
> -- 
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/
> 
> 
http://www.nabble.com/file/p18073426/echoEndpoint.xml echoEndpoint.xml 
-- 
View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18073426.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Remote configuration via HTTP-based registries

Posted by Ruwan Linton <ru...@gmail.com>.
OK, I think the problem is the Content-Type, "text/html; charset=iso-8859-1"

Can you set the content type to be text/xml on the resource and see?

Thanks,
Ruwan

On Fri, Jun 20, 2008 at 7:08 AM, Ruwan Linton <ru...@gmail.com>
wrote:

> Hi tanmay,
>
> Is this consistent? Please post the full log of synapse, theoretically it
> should not lookup the registry second time and should get the resources from
> the local cache, because you have used them once?
>
> May be an issue with the char encoding in the system... please post the
> full DEBUG log.
>
> Thanks,
> Ruwan
>
>
> On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Ta...@westernasset.com>
> wrote:
>
>>
>> Hi Andreas:
>>
>> Thansk it solves the problem. But works only one time, 2nd time when I put
>> another SOAP Pay load on TopicXA , I am getting the following error.
>>
>> Registry URI Syntax error reading from URL
>> http://pasSCMdev/svn/incubator/wam-sy
>> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>
>> java.net.URISyntaxException: Illegal character in path at index 10:
>> text/html; c
>> harset=iso-8859-1
>>        at java.net.URI$Parser.fail(Unknown Source)
>>        at java.net.URI$Parser.checkChars(Unknown Source)
>>        at java.net.URI$Parser.parseHierarchical(Unknown Source)
>>        at java.net.URI$Parser.parse(Unknown Source)
>>        at java.net.URI.<init>(Unknown Source)
>>        at
>> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
>> mpleURLRegistry.java:142)
>>        at
>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
>> stry.java:77)
>>        at
>> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
>> figuration.java:462)
>>        at
>> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
>> ssageContext.java:146)
>>        at
>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
>> ava:50)
>>        at
>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
>> xyServiceMessageReceiver.java:179)
>>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>        at
>> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
>> omingMessage(AbstractTransportListener.java:256)
>>        at
>> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
>> sageReceiver.java:218)
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>> Source
>> )
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>> Source)
>>        at java.lang.Thread.run(Unknown Source)
>> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]  INFO
>> LogMediat
>> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0, Direction:
>> request
>> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
>> ERROR_MESSAG
>> E = URI Syntax error reading from URL
>> http://pasSCMdev/svn/incubator/wam-synapse
>> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>,
>> Envelope: <?xml
>> version='1
>> .0' encoding='utf-8'?><soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.or
>> g/soap/envelope/"
>> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
>> dy>
>>      <ejb:echo>
>>         <!--Optional:-->
>>         <arg0>WA 6</arg0>
>>      </ejb:echo>
>>   </soapenv:Body></soapenv:Envelope>
>>
>> why it works only one time and I have not changed the echoEndpoint.xml ?
>>
>> thanks
>> tanmay
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Andreas Veithen wrote:
>> >
>> > Instead of using the "uri" attribute in the <publishWSDL> element, you
>> > need to use "key" as in the other mediators.
>> >
>> > Andreas
>> >
>> > On 20 juin 08, at 00:51, tsaha wrote:
>> >
>> >>
>> >> Can anybody pl tell how to make use of "Remote configuration via
>> >> HTTP-based
>> >> registries" ? I have added few endpoints, wsdls, xsl and etc into
>> >> our SVN.
>> >> Now I want my proxy to use those resources from SVN. My proxy
>> >> configuration
>> >> synapse_sample_regproxy.xml and svn trunk structure are attached here.
>> >> <definitions xmlns="http://ws.apache.org/ns/synapse">
>> >>    <registry
>> >> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>> >>        <parameter
>> >> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
>> >> trunk/</parameter>
>> >>        <parameter name="cachableDuration">15000</parameter>
>> >>    </registry>
>> >>
>> >>    <proxy name="echoProxy" transports="jms">
>> >>        <target>
>> >>
>> >>            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>> >>            <outSequence>
>> >>                         <log level="full"/>
>> >>                         <out>
>> >>                              <xslt
>> key="XSLT/echoProxy/echo_transform.xml"/>
>> >>                         </out>
>> >>        <clone>
>> >>
>> >>                 <target>
>> >>                     <endpoint key="Endpoints/echoProxy/
>> >> responseEndpointQ2.xml"
>> >> />
>> >>                 </target>
>> >>
>> >>                 <target>
>> >>                  <endpoint key="Endpoints/echoProxy/
>> >> responseEndpointQ3.xml" />
>> >>                 </target>
>> >>
>> >>                 <target>
>> >>                   <endpoint key="Endpoints/echoProxy/
>> >> responseEndpointQ4.xml" />
>> >>                </target>
>> >>              </clone>
>> >>           </outSequence>
>> >>      </target>
>> >>
>> >>        <parameter
>> >> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
>> >> parameter>
>> >>      <parameter name="transport.jms.Destination">TopicXA</parameter>
>> >>        <parameter name="transport.jms.DestinationType">topic</
>> >> parameter>
>> >>        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>> >>      </proxy>
>> >>
>> >> </definitions>
>> >>
>> >> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>> >>
>> >> But when I am starting the Synapse as "synapse -sample regproxy" , I
>> >> am
>> >> getting the following error
>> >>
>> >> roxyService Building Axis service for Proxy service : echoProxy
>> >> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
>> >> [WrapperSimpleAppMain]
>> >> FATAL S
>> >> erverManager Synaps startup failed...
>> >> java.lang.IllegalArgumentException: URI is not absolute
>> >>        at java.net.URI.toURL(Unknown Source)
>> >>        at
>> >> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>> >> ice.java:244)
>> >>        at
>> >> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>> >> eInitializationModule.java:134)
>> >>        at
>> >> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>> >> igurationContextFactory.java:226)
>> >>        at
>> >> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>> >> onContextFactory.java:204)
>> >>        at
>> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>> >> ionContext(ConfigurationContextFactory.java:80)
>> >>        at
>> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>> >> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
>> >> 106)
>> >>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> >> Source)
>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>> >>        at
>> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>> >> :240)
>> >>        at java.lang.Thread.run(Unknown Source)
>> >>
>> >> WrapperSimpleApp: Encountered an error running main:
>> >> org.apache.synapse.SynapseE
>> >> xception: Synapse startup failed
>> >> org.apache.synapse.SynapseException: Synapse startup failed
>> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
>> >> 167)
>> >>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> >> Source)
>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>> >>        at
>> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>> >> :240)
>> >>        at java.lang.Thread.run(Unknown Source)
>> >> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>> >>        at java.net.URI.toURL(Unknown Source)
>> >>
>> >> Any idea how to configure this and make it working?
>> >>
>> >> -thanks
>> >> tanmay
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>> >> Sent from the Synapse - User mailing list archive at Nabble.com.
>> >>
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/




-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: Remote configuration via HTTP-based registries

Posted by Ruwan Linton <ru...@gmail.com>.
Hi tanmay,

Is this consistent? Please post the full log of synapse, theoretically it
should not lookup the registry second time and should get the resources from
the local cache, because you have used them once?

May be an issue with the char encoding in the system... please post the full
DEBUG log.

Thanks,
Ruwan

On Fri, Jun 20, 2008 at 5:11 AM, tsaha <Ta...@westernasset.com> wrote:

>
> Hi Andreas:
>
> Thansk it solves the problem. But works only one time, 2nd time when I put
> another SOAP Pay load on TopicXA , I am getting the following error.
>
> Registry URI Syntax error reading from URL
> http://pasSCMdev/svn/incubator/wam-sy
> napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>
> java.net.URISyntaxException: Illegal character in path at index 10:
> text/html; c
> harset=iso-8859-1
>        at java.net.URI$Parser.fail(Unknown Source)
>        at java.net.URI$Parser.checkChars(Unknown Source)
>        at java.net.URI$Parser.parseHierarchical(Unknown Source)
>        at java.net.URI$Parser.parse(Unknown Source)
>        at java.net.URI.<init>(Unknown Source)
>        at
> org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
> mpleURLRegistry.java:142)
>        at
> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
> stry.java:77)
>        at
> org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
> figuration.java:462)
>        at
> org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
> ssageContext.java:146)
>        at
> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
> ava:50)
>        at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
> xyServiceMessageReceiver.java:179)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>        at
> org.apache.synapse.transport.base.AbstractTransportListener.handleInc
> omingMessage(AbstractTransportListener.java:256)
>        at
> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
> sageReceiver.java:218)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source
> )
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>        at java.lang.Thread.run(Unknown Source)
> 2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]  INFO
> LogMediat
> or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0, Direction:
> request
> , MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
> ERROR_MESSAG
> E = URI Syntax error reading from URL
> http://pasSCMdev/svn/incubator/wam-synapse
> -registry/trunk/Endpoints/echoProxy/echoEndpoint.xml<http://pasSCMdev/svn/incubator/wam-synapse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml>,
> Envelope: <?xml
> version='1
> .0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.or
> g/soap/envelope/"
> xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
> dy>
>      <ejb:echo>
>         <!--Optional:-->
>         <arg0>WA 6</arg0>
>      </ejb:echo>
>   </soapenv:Body></soapenv:Envelope>
>
> why it works only one time and I have not changed the echoEndpoint.xml ?
>
> thanks
> tanmay
>
>
>
>
>
>
>
>
>
> Andreas Veithen wrote:
> >
> > Instead of using the "uri" attribute in the <publishWSDL> element, you
> > need to use "key" as in the other mediators.
> >
> > Andreas
> >
> > On 20 juin 08, at 00:51, tsaha wrote:
> >
> >>
> >> Can anybody pl tell how to make use of "Remote configuration via
> >> HTTP-based
> >> registries" ? I have added few endpoints, wsdls, xsl and etc into
> >> our SVN.
> >> Now I want my proxy to use those resources from SVN. My proxy
> >> configuration
> >> synapse_sample_regproxy.xml and svn trunk structure are attached here.
> >> <definitions xmlns="http://ws.apache.org/ns/synapse">
> >>    <registry
> >> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> >>        <parameter
> >> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/
> >> trunk/</parameter>
> >>        <parameter name="cachableDuration">15000</parameter>
> >>    </registry>
> >>
> >>    <proxy name="echoProxy" transports="jms">
> >>        <target>
> >>
> >>            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
> >>            <outSequence>
> >>                         <log level="full"/>
> >>                         <out>
> >>                              <xslt
> key="XSLT/echoProxy/echo_transform.xml"/>
> >>                         </out>
> >>        <clone>
> >>
> >>                 <target>
> >>                     <endpoint key="Endpoints/echoProxy/
> >> responseEndpointQ2.xml"
> >> />
> >>                 </target>
> >>
> >>                 <target>
> >>                  <endpoint key="Endpoints/echoProxy/
> >> responseEndpointQ3.xml" />
> >>                 </target>
> >>
> >>                 <target>
> >>                   <endpoint key="Endpoints/echoProxy/
> >> responseEndpointQ4.xml" />
> >>                </target>
> >>              </clone>
> >>           </outSequence>
> >>      </target>
> >>
> >>        <parameter
> >> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</
> >> parameter>
> >>      <parameter name="transport.jms.Destination">TopicXA</parameter>
> >>        <parameter name="transport.jms.DestinationType">topic</
> >> parameter>
> >>        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
> >>      </proxy>
> >>
> >> </definitions>
> >>
> >> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
> >>
> >> But when I am starting the Synapse as "synapse -sample regproxy" , I
> >> am
> >> getting the following error
> >>
> >> roxyService Building Axis service for Proxy service : echoProxy
> >> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]
> >> [WrapperSimpleAppMain]
> >> FATAL S
> >> erverManager Synaps startup failed...
> >> java.lang.IllegalArgumentException: URI is not absolute
> >>        at java.net.URI.toURL(Unknown Source)
> >>        at
> >> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
> >> ice.java:244)
> >>        at
> >> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
> >> eInitializationModule.java:134)
> >>        at
> >> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
> >> igurationContextFactory.java:226)
> >>        at
> >> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
> >> onContextFactory.java:204)
> >>        at
> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> >> ionContext(ConfigurationContextFactory.java:80)
> >>        at
> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> >> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
> >> 106)
> >>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >> Source)
> >>        at java.lang.reflect.Method.invoke(Unknown Source)
> >>        at
> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
> >> :240)
> >>        at java.lang.Thread.run(Unknown Source)
> >>
> >> WrapperSimpleApp: Encountered an error running main:
> >> org.apache.synapse.SynapseE
> >> xception: Synapse startup failed
> >> org.apache.synapse.SynapseException: Synapse startup failed
> >>        at org.apache.synapse.ServerManager.start(ServerManager.java:
> >> 167)
> >>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >> Source)
> >>        at java.lang.reflect.Method.invoke(Unknown Source)
> >>        at
> >> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
> >> :240)
> >>        at java.lang.Thread.run(Unknown Source)
> >> Caused by: java.lang.IllegalArgumentException: URI is not absolute
> >>        at java.net.URI.toURL(Unknown Source)
> >>
> >> Any idea how to configure this and make it working?
> >>
> >> -thanks
> >> tanmay
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
> >> Sent from the Synapse - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Re: Remote configuration via HTTP-based registries

Posted by tsaha <Ta...@westernasset.com>.
Hi Andreas:

Thansk it solves the problem. But works only one time, 2nd time when I put
another SOAP Pay load on TopicXA , I am getting the following error.

Registry URI Syntax error reading from URL
http://pasSCMdev/svn/incubator/wam-sy
napse-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml
java.net.URISyntaxException: Illegal character in path at index 10:
text/html; c
harset=iso-8859-1
        at java.net.URI$Parser.fail(Unknown Source)
        at java.net.URI$Parser.checkChars(Unknown Source)
        at java.net.URI$Parser.parseHierarchical(Unknown Source)
        at java.net.URI$Parser.parse(Unknown Source)
        at java.net.URI.<init>(Unknown Source)
        at
org.apache.synapse.registry.url.SimpleURLRegistry.getRegistryEntry(Si
mpleURLRegistry.java:142)
        at
org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegi
stry.java:77)
        at
org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseCon
figuration.java:462)
        at
org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2Me
ssageContext.java:146)
        at
org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.j
ava:50)
        at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
xyServiceMessageReceiver.java:179)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at
org.apache.synapse.transport.base.AbstractTransportListener.handleInc
omingMessage(AbstractTransportListener.java:256)
        at
org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMes
sageReceiver.java:218)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)
2008-06-19 16:36:28,639 [10.200.182.100-PS-TSAHA] [jms-Worker-4]  INFO
LogMediat
or To: , MessageID: ID:ffffffffcbed081a:2e080004:11AA32FAEB0, Direction:
request
, MESSAGE = Executing default "fault" sequence, ERROR_CODE = 00000,
ERROR_MESSAG
E = URI Syntax error reading from URL
http://pasSCMdev/svn/incubator/wam-synapse
-registry/trunk/Endpoints/echoProxy/echoEndpoint.xml, Envelope: <?xml
version='1
.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.or
g/soap/envelope/"
xmlns:ejb="http://ejbwebservice.westernasset.com/"><soapenv:Bo
dy>
      <ejb:echo>
         <!--Optional:-->
         <arg0>WA 6</arg0>
      </ejb:echo>
   </soapenv:Body></soapenv:Envelope>

why it works only one time and I have not changed the echoEndpoint.xml ?

thanks
tanmay









Andreas Veithen wrote:
> 
> Instead of using the "uri" attribute in the <publishWSDL> element, you  
> need to use "key" as in the other mediators.
> 
> Andreas
> 
> On 20 juin 08, at 00:51, tsaha wrote:
> 
>>
>> Can anybody pl tell how to make use of "Remote configuration via  
>> HTTP-based
>> registries" ? I have added few endpoints, wsdls, xsl and etc into  
>> our SVN.
>> Now I want my proxy to use those resources from SVN. My proxy  
>> configuration
>> synapse_sample_regproxy.xml and svn trunk structure are attached here.
>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>    <registry  
>> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>>        <parameter
>> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/ 
>> trunk/</parameter>
>>        <parameter name="cachableDuration">15000</parameter>
>>    </registry>
>>
>>    <proxy name="echoProxy" transports="jms">
>>        <target>
>>
>>            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>>            <outSequence>
>> 			   <log level="full"/>
>> 			   <out>
>> 			        <xslt key="XSLT/echoProxy/echo_transform.xml"/>
>> 			   </out>
>> 	  <clone>
>> 		
>> 		   <target>
>> 	               <endpoint key="Endpoints/echoProxy/ 
>> responseEndpointQ2.xml"
>> />
>> 		   </target>
>> 	
>> 	           <target>
>> 	            <endpoint key="Endpoints/echoProxy/ 
>> responseEndpointQ3.xml" />
>> 	           </target>
>> 	
>> 	           <target>
>> 	             <endpoint key="Endpoints/echoProxy/ 
>> responseEndpointQ4.xml" />
>> 	          </target>
>> 		</clone>
>> 	     </outSequence>
>> 	</target>
>>
>>        <parameter
>> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</ 
>> parameter>
>> 	<parameter name="transport.jms.Destination">TopicXA</parameter>
>>        <parameter name="transport.jms.DestinationType">topic</ 
>> parameter>
>>        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>>      </proxy>
>>
>> </definitions>
>>
>> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>>
>> But when I am starting the Synapse as "synapse -sample regproxy" , I  
>> am
>> getting the following error
>>
>> roxyService Building Axis service for Proxy service : echoProxy
>> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]  
>> [WrapperSimpleAppMain]
>> FATAL S
>> erverManager Synaps startup failed...
>> java.lang.IllegalArgumentException: URI is not absolute
>>        at java.net.URI.toURL(Unknown Source)
>>        at
>> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
>> ice.java:244)
>>        at
>> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
>> eInitializationModule.java:134)
>>        at
>> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
>> igurationContextFactory.java:226)
>>        at
>> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
>> onContextFactory.java:204)
>>        at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>> ionContext(ConfigurationContextFactory.java:80)
>>        at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
>> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>>        at org.apache.synapse.ServerManager.start(ServerManager.java: 
>> 106)
>>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
>> Source)
>>        at java.lang.reflect.Method.invoke(Unknown Source)
>>        at
>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>> :240)
>>        at java.lang.Thread.run(Unknown Source)
>>
>> WrapperSimpleApp: Encountered an error running main:
>> org.apache.synapse.SynapseE
>> xception: Synapse startup failed
>> org.apache.synapse.SynapseException: Synapse startup failed
>>        at org.apache.synapse.ServerManager.start(ServerManager.java: 
>> 167)
>>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
>> Source)
>>        at java.lang.reflect.Method.invoke(Unknown Source)
>>        at
>> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
>> :240)
>>        at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>>        at java.net.URI.toURL(Unknown Source)
>>
>> Any idea how to configure this and make it working?
>>
>> -thanks
>> tanmay
>> -- 
>> View this message in context:
>> http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18020345.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Remote configuration via HTTP-based registries

Posted by Andreas Veithen <an...@skynet.be>.
Instead of using the "uri" attribute in the <publishWSDL> element, you  
need to use "key" as in the other mediators.

Andreas

On 20 juin 08, at 00:51, tsaha wrote:

>
> Can anybody pl tell how to make use of "Remote configuration via  
> HTTP-based
> registries" ? I have added few endpoints, wsdls, xsl and etc into  
> our SVN.
> Now I want my proxy to use those resources from SVN. My proxy  
> configuration
> synapse_sample_regproxy.xml and svn trunk structure are attached here.
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>    <registry  
> provider="org.apache.synapse.registry.url.SimpleURLRegistry">
>        <parameter
> name="root">http://devsvnhost/svn/incubator/wam-synapse-egistry/ 
> trunk/</parameter>
>        <parameter name="cachableDuration">15000</parameter>
>    </registry>
>
>    <proxy name="echoProxy" transports="jms">
>        <target>
>
>            <endpoint key="Endpoints/echoProxy/echoEndpoint.xml" />
>            <outSequence>
> 			   <log level="full"/>
> 			   <out>
> 			        <xslt key="XSLT/echoProxy/echo_transform.xml"/>
> 			   </out>
> 	  <clone>
> 		
> 		   <target>
> 	               <endpoint key="Endpoints/echoProxy/ 
> responseEndpointQ2.xml"
> />
> 		   </target>
> 	
> 	           <target>
> 	            <endpoint key="Endpoints/echoProxy/ 
> responseEndpointQ3.xml" />
> 	           </target>
> 	
> 	           <target>
> 	             <endpoint key="Endpoints/echoProxy/ 
> responseEndpointQ4.xml" />
> 	          </target>
> 		</clone>
> 	     </outSequence>
> 	</target>
>
>        <parameter
> name="transport.jms.ConnectionFactory">myTopicConnectionFactory</ 
> parameter>
> 	<parameter name="transport.jms.Destination">TopicXA</parameter>
>        <parameter name="transport.jms.DestinationType">topic</ 
> parameter>
>        <publishWSDL uri="XSLT/echoProxy/echo_proxy.wsdl"/>
>      </proxy>
>
> </definitions>
>
> http://www.nabble.com/file/p18019866/svn_repo.bmp svn_repo.bmp
>
> But when I am starting the Synapse as "synapse -sample regproxy" , I  
> am
> getting the following error
>
> roxyService Building Axis service for Proxy service : echoProxy
> 2008-06-19 15:50:24,324 [10.200.182.100-PS-TSAHA]  
> [WrapperSimpleAppMain]
> FATAL S
> erverManager Synaps startup failed...
> java.lang.IllegalArgumentException: URI is not absolute
>        at java.net.URI.toURL(Unknown Source)
>        at
> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyServ
> ice.java:244)
>        at
> org.apache.synapse.core.axis2.SynapseInitializationModule.init(Synaps
> eInitializationModule.java:134)
>        at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(Conf
> igurationContextFactory.java:226)
>        at
> org.apache.axis2.context.ConfigurationContextFactory.init(Configurati
> onContextFactory.java:204)
>        at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContext(ConfigurationContextFactory.java:80)
>        at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
> ionContextFromFileSystem(ConfigurationContextFactory.java:184)
>        at org.apache.synapse.ServerManager.start(ServerManager.java: 
> 106)
>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
> :240)
>        at java.lang.Thread.run(Unknown Source)
>
> WrapperSimpleApp: Encountered an error running main:
> org.apache.synapse.SynapseE
> xception: Synapse startup failed
> org.apache.synapse.SynapseException: Synapse startup failed
>        at org.apache.synapse.ServerManager.start(ServerManager.java: 
> 167)
>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:81)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
> :240)
>        at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.IllegalArgumentException: URI is not absolute
>        at java.net.URI.toURL(Unknown Source)
>
> Any idea how to configure this and make it working?
>
> -thanks
> tanmay
> -- 
> View this message in context: http://www.nabble.com/Remote-configuration-via-HTTP-based-registries-tp18019866p18019866.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>