Sorry forgot the log
here it is.

Shared archive: sharing disabled for server vm
2008-06-18 15:09:20,768 [-] [main]  INFO ServerManager Using Synapse home as : 
/Users/orchid/Projects/TestZone/ESB/synapse-1.2
2008-06-18 15:09:20,771 [-] [main]  INFO ServerManager Using the Axis2 
Repository : /Users/orchid/Projects/TestZone/ESB/synapse-1.2/repository
2008-06-18 15:09:20,772 [-] [main]  INFO ServerManager Using the axis2.xml : 
/Users/orchid/Projects/TestZone/ESB/synapse-1.2/repository/conf/axis2.xml
2008-06-18 15:09:20,772 [-] [main]  INFO ServerManager Using server name : 
localhost
2008-06-18 15:09:20,773 [-] [main]  INFO ServerManager The timeout handler will 
run every : 15s
2008-06-18 15:09:21,834 [-] [main]  INFO SynapseInitializationModule 
Initializing Synapse at : Wed Jun 18 15:09:21 CEST 2008
2008-06-18 15:09:21,835 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Loading mediator extensions...
2008-06-18 15:09:21,836 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Initializing the Synapse configuration ...
2008-06-18 15:09:21,839 [10.0.0.12-equilibrium.local] [main] DEBUG 
SynapseConfigurationBuilder synapse.properties file is loading from classpath
2008-06-18 15:09:21,847 [10.0.0.12-equilibrium.local] [main] DEBUG 
DataSourceRegistrar No DataSources defined for initialization..
2008-06-18 15:09:21,849 [10.0.0.12-equilibrium.local] [main]  INFO 
XMLConfigurationBuilder Generating the Synapse configuration model by parsing 
the XML configuration
2008-06-18 15:09:21,868 [10.0.0.12-equilibrium.local] [main] DEBUG 
ConfigurationFactoryAndSerializerFinder 
getConfiguration({http://ws.apache.org/ns/synapse}definitions)
2008-06-18 15:09:21,963 [10.0.0.12-equilibrium.local] [main] DEBUG 
MediatorFactoryFinder Added MediatorFactory class 
org.apache.synapse.mediators.spring.SpringMediatorFactory to handle 
{http://ws.apache.org/ns/synapse/spring}spring
2008-06-18 15:09:21,965 [10.0.0.12-equilibrium.local] [main] DEBUG 
MediatorFactoryFinder Added MediatorFactory class 
org.apache.synapse.mediators.bsf.ScriptMediatorFactory to handle 
{http://ws.apache.org/ns/synapse}script
2008-06-18 15:09:21,968 [10.0.0.12-equilibrium.local] [main] DEBUG 
MediatorFactoryFinder Added MediatorFactory class 
org.apache.synapse.mediators.throttle.ThrottleMediatorFactory to handle 
{http://ws.apache.org/ns/synapse}throttle
2008-06-18 15:09:21,975 [10.0.0.12-equilibrium.local] [main] DEBUG 
MediatorFactoryFinder Added MediatorFactory class 
org.apache.synapse.mediators.xquery.XQueryMediatorFactory to handle 
{http://ws.apache.org/ns/synapse}xquery
2008-06-18 15:09:21,976 [10.0.0.12-equilibrium.local] [main] DEBUG 
MediatorFactoryFinder getMediator({http://ws.apache.org/ns/synapse}send)
2008-06-18 15:09:22,085 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseConfigurationBuilder Loaded Synapse configuration from : 
/Users/orchid/Projects/TestZone/ESB/synapse-1.2/repository/conf/synapse.xml
2008-06-18 15:09:22,101 [10.0.0.12-equilibrium.local] [main] DEBUG 
SynapseConfiguration Initializing the Synapse Configuration
2008-06-18 15:09:22,101 [10.0.0.12-equilibrium.local] [main] DEBUG 
SequenceMediator Initializing child mediators
2008-06-18 15:09:22,101 [10.0.0.12-equilibrium.local] [main] DEBUG 
SequenceMediator Initializing child mediators
2008-06-18 15:09:22,101 [10.0.0.12-equilibrium.local] [main] DEBUG 
SequenceMediator Initializing child mediators
2008-06-18 15:09:22,102 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Deploying the Synapse service..
2008-06-18 15:09:22,149 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Synapse server name : localhost
2008-06-18 15:09:22,149 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Deploying Proxy services...
2008-06-18 15:09:22,149 [10.0.0.12-equilibrium.local] [main]  INFO ProxyService 
Building Axis service for Proxy service : Forwarder
2008-06-18 15:09:22,155 [10.0.0.12-equilibrium.local] [main]  INFO ProxyService 
Adding service Forwarder to the Axis2 configuration
2008-06-18 15:09:22,156 [10.0.0.12-equilibrium.local] [main]  INFO ProxyService 
Successfully created the Axis2 service for Proxy service : Forwarder
2008-06-18 15:09:22,157 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Deployed Proxy service : Forwarder
2008-06-18 15:09:22,157 [10.0.0.12-equilibrium.local] [main]  INFO 
SynapseInitializationModule Synapse initialized successfully...!
2008-06-18 15:09:22,219 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSSLSender Loading Identity Keystore from : lib/identity.jks
2008-06-18 15:09:22,351 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSSLSender Loading Trust Keystore from : lib/trust.jks
2008-06-18 15:09:22,366 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSender HTTPS Sender starting
2008-06-18 15:09:22,499 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSender HTTP Sender starting
2008-06-18 15:09:22,509 [10.0.0.12-equilibrium.local] [main]  INFO 
VFSTransportSender VFS Sender started
2008-06-18 15:09:22,511 [10.0.0.12-equilibrium.local] [HttpCoreNIOSender] DEBUG 
NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,512 [10.0.0.12-equilibrium.local] [HttpCoreNIOSender] DEBUG 
NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,746 [10.0.0.12-equilibrium.local] [main]  INFO JMSSender 
JMS Sender started
2008-06-18 15:09:22,764 [10.0.0.12-equilibrium.local] [main]  INFO 
ServerManager Starting transport https on port 8243
2008-06-18 15:09:22,766 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSSLListener Loading Identity Keystore from : lib/identity.jks
2008-06-18 15:09:22,768 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOSSLListener Loading Trust Keystore from : lib/trust.jks
2008-06-18 15:09:22,772 [10.0.0.12-equilibrium.local] [main] DEBUG 
HttpCoreNIOListener Starting Listener...
2008-06-18 15:09:22,774 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOListener HTTPS Listener starting on port : 8243
2008-06-18 15:09:22,774 [10.0.0.12-equilibrium.local] [main]  INFO 
ServerManager Starting transport http on port 8280
2008-06-18 15:09:22,775 [10.0.0.12-equilibrium.local] [main] DEBUG 
HttpCoreNIOListener Starting Listener...
2008-06-18 15:09:22,776 [10.0.0.12-equilibrium.local] [main]  INFO 
HttpCoreNIOListener HTTP Listener starting on port : 8280
2008-06-18 15:09:22,776 [10.0.0.12-equilibrium.local] [main]  INFO 
ServerManager Starting transport vfs
2008-06-18 15:09:22,777 [10.0.0.12-equilibrium.local] [main] DEBUG 
NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,810 [10.0.0.12-equilibrium.local] [HttpCoreNIOListener] 
DEBUG NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,816 [10.0.0.12-equilibrium.local] [HttpCoreNIOListener] 
DEBUG NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,830 [10.0.0.12-equilibrium.local] [main]  INFO 
VFSTransportListener VFS Listener started
2008-06-18 15:09:22,843 [10.0.0.12-equilibrium.local] [main]  WARN 
VFSTransportListener Error configuring the File/VFS transport for Service : 
Forwarder :: Cannot find parameter : transport.vfs.FileURI for service : 
Forwarder
2008-06-18 15:09:22,844 [10.0.0.12-equilibrium.local] [main]  WARN 
VFSTransportListener Disabling the vfs transport for the service Forwarder, 
because it is not configured properly for the service
2008-06-18 15:09:22,846 [10.0.0.12-equilibrium.local] [main]  INFO 
ServerManager Starting transport mailto
2008-06-18 15:09:22,847 [10.0.0.12-equilibrium.local] [main] DEBUG 
NativeWorkerPool Using native util.concurrent package..
2008-06-18 15:09:22,847 [10.0.0.12-equilibrium.local] [main]  INFO 
MailTransportListener MAILTO Listener started
2008-06-18 15:09:22,850 [10.0.0.12-equilibrium.local] [main]  WARN 
MailTransportListener Error configuring the Mail transport for Service : 
Forwarder :: Cannot find parameter : transport.mail.Address for service : 
Forwarder
2008-06-18 15:09:22,850 [10.0.0.12-equilibrium.local] [main]  WARN 
MailTransportListener Disabling the mailto transport for the service Forwarder, 
because it is not configured properly for the service
2008-06-18 15:09:22,864 [10.0.0.12-equilibrium.local] [main]  INFO 
ServerManager Ready for processing


Here i do a:
curl -G -H "Content-Type:application/xml" 
http://localhost:8280/soap/Forwarder/mediate
which immediately returns nothing.
synapse does the following:

2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET 
/soap/Forwarder/mediate HTTP/1.1
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
headers >> GET /soap/Forwarder/mediate HTTP/1.1
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 
OpenSSL/0.9.7l zlib/1.2.3
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
headers >> Host: localhost:8280
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
headers >> Accept: */*
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
headers >> Content-Type:application/xml
2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG TransportUtils createSOAPEnvelope using Builder (class 
org.apache.axis2.builder.ApplicationXMLBuilder) selected from type 
(application/xml)
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SynapseMessageReceiver Synapse received a new message for message 
mediation...
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SynapseMessageReceiver Received To: null
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SynapseMessageReceiver SOAPAction: null
2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SynapseMessageReceiver WSA-Action: null
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG Axis2SynapseEnvironment Injecting MessageContext
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SequenceMediator Start : Sequence <main>
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG LogMediator Start : Log mediator
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  
INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, 
Direction: request
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG LogMediator End : Log mediator
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG DropMediator Start : Drop mediator
2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG DropMediator End : Drop mediator
2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG SequenceMediator End : Sequence <main>
2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
DEBUG ServerWorker Sending 202 Accepted response for MessageID : 
urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will 
follow : true acked : false forced ack : false
2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content 
encoder [chunk-coded; completed: true]
2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response 
ready
2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG 
ServerHandler HTTP connection [closed]: Closed



On Jun 18, 2008, at 14:55 , Ruwan Linton wrote:

Are you sending a pox (HTTP POST) request or a REST (HTTP GET) request to
the ws?

Can you please attach the complete log and the configuration that you have
been using so that I can reproduce this issue.

By the way: you may try application/xml as the content type as well.

Thanks,
Ruwan

On Wed, Jun 18, 2008 at 3:48 PM, Jasper Spoel <[EMAIL PROTECTED]> wrote:

Hi there,

i've run a few tests and it seems like the Cannot create DocumentElement
error corresponds to the Content-Type i use.
When i force the content-type to be text/xml i don't get the error, but i
don't get a response from the actual service either.
in short, judging from the DEBUG statements, with content-type set to
text/xml synapse gets to the point of http status code 202 (Accepted),
[
HttpServerWorker-16] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:389AA5DEAE6E9B61391213783928075 response written : null
response will follow : true acked : false forced ack : false
]

hope this helps in pinpointing my problem.

thanx again!
Jasper


On Jun 18, 2008, at 11:56 , Jasper Spoel wrote:

First of all,

Ruwan, thanx a bunch for responding this fast.
first thing i noted that was different from what i've tried already is
that you access the url at soap/Forwarder/mediate
i didn't try the "mediate" part. So slapping myself to the head and trying
again with the suggested configuration i sadly ran into
a problem i had before.

The error i get back is: Cannot create DocumentElement without destination
EPR

this error is the reason i thought my problem lies somewhere with
ws-addressing.
the service would normally answer with plain xml. Something like:

<servers>
      <server>Testing</server>
</servers>

any ideas?

as a side note:
I spotted the paths /soap and /rest in the configuration file for
axis2....when can this /rest path be used.
/soap seems to be the path that's always used....any gems on that ?


On Jun 18, 2008, at 10:38 , Ruwan Linton wrote:

Hi Jasper,

I have modified the cofig to fit the service name as "Forwarder" please
see
the change in the following configuration;

<definitions xmlns="http://ws.apache.org/ns/synapse";>
<proxy name="Forwarder">
    <target>
        <endpoint>
            <address uri="http://localhost:11111/MyService/echo";
format="get"/>
        </endpoint>
        <outSequence>
            <send/>
        </outSequence>
    </target>
</proxy>
</definitions>


You can access this service with the URL
http://localhost:8280/soap/Forwarder/mediate

Thanks,
Ruwan

On Wed, Jun 18, 2008 at 2:04 PM, Ruwan Linton <[EMAIL PROTECTED] >
wrote:

Hi Jasper,

You should be able to do this very easily with Synapse; by creating the proxy service proxying the actual service. Please try the following
configuration and get back to us on any questions and problems.

<definitions xmlns="http://ws.apache.org/ns/synapse";>
<proxy name="Forwarder">
    <target>
        <endpoint>

            <address uri="http://localhost:11111/MyService/echo";
format="get"/>
        </endpoint>
        <outSequence>

            <send/>
        </outSequence>
    </target>
</proxy>
</definitions>

If you want to change the message format to the actual service
(MyService)
to any other than REST change the format attribute to one of the
soap11/soap12/pox as appropriate.

Looking forward to your feedback ....

Thanks,
Ruwan


On Wed, Jun 18, 2008 at 1:36 PM, Jasper Spoel <[EMAIL PROTECTED] >
wrote:

Hi,

i'm quite new to Apache synapse and i'm trying to get it up and
running.
In short, the samples and all work fine.
My problems begin when i try to access a REST service of my own as an
endpoint.
I was wondering if anyone felt up to it to post the simplest
configuration
for synapse possible for my particular case.

What i try to do:

i want the outside world to use the address for synapse only, so the services behind it should be transparant for the originating party.
suppose my own service is at: http://localhost:11111/MyService/echo

i would like clients to connect to http://localhost:8280/ Forwarder

which should send through the message without any alteration to the
MyService service
and consequently send back the response from MyService to the client
asking for the info.

Somehow i just can't get it to work.
i get the feeling it has something to do with ws-addressing, but i'm
not
sure.

So what would be the configuration for this for synapse
and if there are any, what are the requirements for the message and/or
the
client.

Thanx in advance,
Jasper




--
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/







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

Reply via email to