You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Peter Marshall <pm...@softwarebynumbers.com> on 2007/02/19 16:10:30 UTC

Synapse Sample Problem

Hi all,
  Ive had a couple of problems getting the synapse examples to run.  Ive 
listed them together here but maybe they
could be split up for the archive.

1/ The shell scripts synapse-0.91/samples/axis2Server/axis2server.sh
   and synapse-0.91/bin/synapse.sh

both contain logic of the form below to establish ports (and to identify 
the example being used).

if [ "$1" == "-port" ]; then
  PORT="-Dport=$2"
fi

These give the following error for example  : ./synapse.sh: test: 
unknown operator ==

I comment the tests out in both scripts fixing the port at 9000 and the 
SYNAPSE_XML as
SYNAPSE_XML=-Dsynapse.xml=$SYNAPSE_HOME/repository/conf/synapse.xml

At this point I now have axis on 8080 and synapse on 9000 and no errors 
printed.  I also
think Ive deployed the basic stock quote service.


2/ The tar file doesnt seem to expand properly on Solaris.  I used 
gunzip followed by tar -xvf.  The following
    directory shows the problem :

  ls -alF from directory : 
synapse-0.91/samples/axis2Server/src/SimpleStockQuoteService/src/samples/services

drwxr-xr-x   2 pm       other        512 Feb 18 15:26 ./
drwxr-xr-x   3 pm       other        512 Jan  3 14:37 ../
-rw-r--r--   1 pm       other       1143 Jan  3 14:37 GetQuote.java
-rw-r--r--   1 pm       other       4349 Jan  3 14:37 GetQuoteResponse.j
-rw-r--r--   1 pm       other       1360 Jan  3 14:37 PlaceOrder.java
-rw-r--r--   1 pm       other       1444 Jan  3 14:37 SimpleStockQuoteSe

As you can see the file names are truncated.  I  fixed this by  
expanding the  archive on windows and ftping
the broken files over.  ie the archve is correct but something is 
causing the expansion to fail.


3/ When I try and run the client like : ant stockquote I get a soap 
fault with the following message :
org.apache.axis2.AxisFault: Service not found operation terminated !! 
with the stack trace from synapse, and the
client prints out the content of the soap fault.

In the synapse log I can see the incoming message : the soap header is :
<soapenv:Header><wsa:To>http://localhost:9000/axis2/services/SimpleStockQuoteService</wsa:To><wsa:R
eplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:273AD22C64EAA
B9FE61171894511415</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header>


I hope the first two are just configuration / environment errors.

On point 3, Is there a way to list the services known to synapse?  There 
seems to be some mismatch between
the client I think Ive run and the service I think Ive deployed.

Target platform details :

OS   : SunOS 5.10 Generic_118855-14 i86pc i386 i86pc
JVM : "1.5.0_06"
Shell : bash
Synapse : synapse-0.91-bin.tar.gz


Thanks in advance

Pete M





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


Re: Synapse Sample Problem

Posted by Pete M <pm...@softwarebynumbers.com>.
Asankha,
  Thanks for the info.

1/ First the changes made to the scripts as you advised have fixed the 
problem

2/  A bit more info for the tar problem, during the extraction tar 
prints some warnings as shopwn below.
    
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 112 bytes, 1 tape blocks
x 
synapse-0.91/samples/axis2Server/src/SimpleStockQuoteService1/src/samples/services/SimpleStockQuoteS, 
1448 bytes
, 3 tape blocks

Just for the files with the damaged names.


3/  My fault, Id missed a deployment step.  The services are working now.


Thanks for the help.


Pete M



Asankha C. Perera wrote:

> Hi Pete
>
>> 1/ The shell scripts synapse-0.91/samples/axis2Server/axis2server.sh
>>   and synapse-0.91/bin/synapse.sh
>
> These issues were fixed already on the svn trunk, and you could 
> replace '==' with '=' on your local copy to fix them.
>
>> At this point I now have axis on 8080 and synapse on 9000 and no 
>> errors printed.  I also
>> think Ive deployed the basic stock quote service.
>
> Well.. you could point your browser to 
> http://localhost:9000/axis2/services and verify that the 
> SimpleStockQuoteService and any other that you've built is available
>
>> 2/ The tar file doesnt seem to expand properly on Solaris.  I used 
>> gunzip followed by tar -xvf.  The following
>>    directory shows the problem :
>
> I am not sure why this doesn't work.. its built using Maven2! My only 
> guess is that making the binary in a Windows environment has made the 
> tar incompatible.. but I guess Paul could verify if it was built on 
> Windows or Linux
>
>> 3/ When I try and run the client like : ant stockquote I get a soap 
>> fault with the following message :
>> org.apache.axis2.AxisFault: Service not found operation terminated !! 
>> with the stack trace from synapse, and the
>> client prints out the content of the soap fault.
>
> Seems like your service has not been deployed. Once you go into the 
> directory of each sample service (e.g. src/SimpleStockQuoteService) 
> and type 'ant' it should state that the build was successful, and once 
> you start your sample Axis2 server you should see your service listed 
> on port 9000 as stated above
>
>> On point 3, Is there a way to list the services known to synapse?  
>> There seems to be some mismatch between
>> the client I think Ive run and the service I think Ive deployed.
>
> Stated above
>
> Let me know how it goes!
>
> asankha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-user-help@ws.apache.org
>
>


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


Re: Synapse Sample Problem

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

> 1/ The shell scripts synapse-0.91/samples/axis2Server/axis2server.sh
>   and synapse-0.91/bin/synapse.sh
These issues were fixed already on the svn trunk, and you could replace 
'==' with '=' on your local copy to fix them.

> At this point I now have axis on 8080 and synapse on 9000 and no 
> errors printed.  I also
> think Ive deployed the basic stock quote service.
Well.. you could point your browser to 
http://localhost:9000/axis2/services and verify that the 
SimpleStockQuoteService and any other that you've built is available
> 2/ The tar file doesnt seem to expand properly on Solaris.  I used 
> gunzip followed by tar -xvf.  The following
>    directory shows the problem :
I am not sure why this doesn't work.. its built using Maven2! My only 
guess is that making the binary in a Windows environment has made the 
tar incompatible.. but I guess Paul could verify if it was built on 
Windows or Linux

> 3/ When I try and run the client like : ant stockquote I get a soap 
> fault with the following message :
> org.apache.axis2.AxisFault: Service not found operation terminated !! 
> with the stack trace from synapse, and the
> client prints out the content of the soap fault.
Seems like your service has not been deployed. Once you go into the 
directory of each sample service (e.g. src/SimpleStockQuoteService) and 
type 'ant' it should state that the build was successful, and once you 
start your sample Axis2 server you should see your service listed on 
port 9000 as stated above

> On point 3, Is there a way to list the services known to synapse?  
> There seems to be some mismatch between
> the client I think Ive run and the service I think Ive deployed.
Stated above

Let me know how it goes!

asankha

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