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.