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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]