You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Subash Chaturanga <su...@gmail.com> on 2010/05/15 16:10:10 UTC

problem occured in message mediation samples

Hi,
I'am  new to synapse and built synapse and tried some samples as guided in
the documentation.

So I started axis2 server and started message mediation samples.

Sample 0: Introduction to Synapse* I started the synapse server by -
./synapse.sh -sample 0  inside synapse-home/bin

* inside  , synapse-home/samples/axis2Client executed the command :

ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8280/

And this gives the following error (though ant says BUILD SUCCESSFUL i
think there is an error )

Buildfile: build.xml

init:

compile:

stockquote:
     [java] 2010-05-15 19:32:42,682 [-] [main] ERROR SandeshaModule
Could not load module policies. Using default values.
     [java] 2010-05-15 19:32:42,765 [-] [main]  INFO
MailTransportSender MAILTO Sender started
     [java] 2010-05-15 19:32:42,777 [-] [main]  INFO JMSSender JMS
Sender started
     [java] 2010-05-15 19:32:42,779 [-] [main]  INFO JMSSender JMS
Transport Sender initialized...
     [java] org.apache.axis2.AxisFault: The service cannot be found
for the endpoint reference (EPR) /soap/SimpleStockQuoteService
     [java] 	at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:523)
     [java] 	at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
     [java] 	at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
     [java] 	at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
     [java] 	at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
     [java] 	at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
     [java] 	at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
     [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
     [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)

BUILD SUCCESSFUL


 ** Any idea ?



Thank you
Subash

Re: problem occured in message mediation samples

Posted by Rajika Kumarasiri <ra...@wso2.com>.
You need to build and deploy the SimpleStockQuote service which is inside
the samples/axis2Server/src/SimpleStockQuoteSerivice.
Switch into that folder and run ant from there.

Rajika

On Sat, May 15, 2010 at 7:40 PM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi,
> I'am  new to synapse and built synapse and tried some samples as guided in
> the documentation.
>
> So I started axis2 server and started message mediation samples.
>
> Sample 0: Introduction to Synapse * I started the synapse server by -  ./synapse.sh -sample 0  inside synapse-home/bin
>
> * inside  , synapse-home/samples/axis2Client executed the command :
>
> ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/
>
> And this gives the following error (though ant says BUILD SUCCESSFUL i think there is an error )
>
> Buildfile: build.xml
>
> init:
>
> compile:
>
> stockquote:
>      [java] 2010-05-15 19:32:42,682 [-] [main] ERROR SandeshaModule Could not load module policies. Using default values.
>
>      [java] 2010-05-15 19:32:42,765 [-] [main]  INFO MailTransportSender MAILTO Sender started
>      [java] 2010-05-15 19:32:42,777 [-] [main]  INFO JMSSender JMS Sender started
>      [java] 2010-05-15 19:32:42,779 [-] [main]  INFO JMSSender JMS Transport Sender initialized...
>
>      [java] org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /soap/SimpleStockQuoteService
>      [java] 	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:523)
>
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
>
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>      [java] 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
>
>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
>      [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
>      [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)
>
> BUILD SUCCESSFUL
>
>
>  ** Any idea ?
>
>
>
> Thank you
> Subash
>



-- 
http://rajikak.blogspot.com/

Re: problem occured in message mediation samples

Posted by Heshan Suriyaarachchi <he...@gmail.com>.
Btw you should specify the addurl correctly. Try running the client with
following command.

ant stockquote -Daddurl=
http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
http://localhost:8280/


On Sat, May 15, 2010 at 11:12 PM, Heshan Suriyaarachchi <
heshan.suriyaarachchi@gmail.com> wrote:

> FYI http://synapse.apache.org/Synapse_QuickStart.html
>
> On Sat, May 15, 2010 at 7:40 PM, Subash Chaturanga <su...@gmail.com>wrote:
>
>> Hi,
>> I'am  new to synapse and built synapse and tried some samples as guided in
>> the documentation.
>>
>> So I started axis2 server and started message mediation samples.
>>
>> Sample 0: Introduction to Synapse * I started the synapse server by -  ./synapse.sh -sample 0  inside synapse-home/bin
>>
>> * inside  , synapse-home/samples/axis2Client executed the command :
>>
>> ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/
>>
>>
>> And this gives the following error (though ant says BUILD SUCCESSFUL i think there is an error )
>>
>> Buildfile: build.xml
>>
>> init:
>>
>> compile:
>>
>> stockquote:
>>
>>      [java] 2010-05-15 19:32:42,682 [-] [main] ERROR SandeshaModule Could not load module policies. Using default values.
>>
>>      [java] 2010-05-15 19:32:42,765 [-] [main]  INFO MailTransportSender MAILTO Sender started
>>      [java] 2010-05-15 19:32:42,777 [-] [main]  INFO JMSSender JMS Sender started
>>      [java] 2010-05-15 19:32:42,779 [-] [main]  INFO JMSSender JMS Transport Sender initialized...
>>
>>
>>      [java] org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /soap/SimpleStockQuoteService
>>      [java] 	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:523)
>>
>>
>>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
>>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
>>
>>
>>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>>      [java] 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
>>
>>
>>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
>>      [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
>>      [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)
>>
>>
>> BUILD SUCCESSFUL
>>
>>
>>  ** Any idea ?
>>
>>
>>
>> Thank you
>> Subash
>>
>
>
>
> --
> Regards,
> Heshan Suriyaarachchi
>
> http://heshans.blogspot.com/
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/

Re: problem occured in message mediation samples

Posted by Heshan Suriyaarachchi <he...@gmail.com>.
FYI http://synapse.apache.org/Synapse_QuickStart.html

On Sat, May 15, 2010 at 7:40 PM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi,
> I'am  new to synapse and built synapse and tried some samples as guided in
> the documentation.
>
> So I started axis2 server and started message mediation samples.
>
> Sample 0: Introduction to Synapse * I started the synapse server by -  ./synapse.sh -sample 0  inside synapse-home/bin
>
> * inside  , synapse-home/samples/axis2Client executed the command :
>
> ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/
>
> And this gives the following error (though ant says BUILD SUCCESSFUL i think there is an error )
>
> Buildfile: build.xml
>
> init:
>
> compile:
>
> stockquote:
>      [java] 2010-05-15 19:32:42,682 [-] [main] ERROR SandeshaModule Could not load module policies. Using default values.
>
>      [java] 2010-05-15 19:32:42,765 [-] [main]  INFO MailTransportSender MAILTO Sender started
>      [java] 2010-05-15 19:32:42,777 [-] [main]  INFO JMSSender JMS Sender started
>      [java] 2010-05-15 19:32:42,779 [-] [main]  INFO JMSSender JMS Transport Sender initialized...
>
>      [java] org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /soap/SimpleStockQuoteService
>      [java] 	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:523)
>
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
>
>      [java] 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>      [java] 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
>
>      [java] 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
>      [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
>      [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)
>
> BUILD SUCCESSFUL
>
>
>  ** Any idea ?
>
>
>
> Thank you
> Subash
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/