synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvalentine1 <bjv....@gmail.com>
Subject Re: error running StockQuote in Tomcat
Date Fri, 07 Sep 2007 15:29:59 GMT


When should I check back for the 1.1 release?


asankha wrote:
> 
> It is supported for 1.1 release once its out. However we suggest that 
> you still use the NIO http/s transports for message processing. Thus 
> Synapse does not use the transport offered by its host servlet container 
> - but simply uses a WAR based 'deployment' model.
> 
> asankha
> 
> bvalentine1 wrote:
>> Sorry, but its not entirely clear to me from the last response whether or
>> not
>> running synapse as a webapp in a j2ee server is a supported
>> configuration. 
>> Please list the supported production ready configurations.
>>
>> Thanks
>>
>>
>>
>> asankha wrote:
>>   
>>>
>>>
>>>   
>>>   
>>>
>>>
>>> Sanjesh 
>>>
>>> Glad to hear that you got things to work. We will primarily distribute
>>> Synapse as a mar, and also a standalone version with a bundled Axis2.
>>> Though you can get a mar to be deployed on an Axis2 which is already
>>> deployed as a war, your J2EE app server may only allow http/s requests
>>> matching the application context you deploy into, to be intercepted by
>>> Synapse - unless you deploy Synapse/Axis2 in the root. This may also
>>> have limitations on us being able to use non-blocking IO etc in future 
>>>
>>> Hence, for a Synapse deployment we suggest a standalone installation
>>> which will only perform high throughput message mediation. 
>>>
>>> asankha 
>>>
>>> Sanjesh Pathak wrote:
>>>
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>
>>>
>>>   
>>>
>>>   
>>>   
>>>   
>>>   Hi Asanka, 
>>>   &nbsp; 
>>>   Thanks for
>>> the pointers. I had not noticed
>>> that real endpoint address in synapse.xml from the latest SVN was
>>> different
>>> from the M2 bundled version. I have changed it and it is working now.
>>> Moving
>>> ahead into the future what kind of distribution will be followed for
>>> synapse.
>>> Will it be distributed as module (.mar file) for Axis2? 
>>>   &nbsp; 
>>>   Thanks, 
>>>   Sanjesh 
>>>   &nbsp; 
>>>   
>>>   
>>>   
>>>   From:
>>> Asankha C. Perera [ mailto:asankha@wso2.com ] 
>>>   Sent: Sunday, August
>>> 13, 2006 1:17
>>> PM 
>>>   To: synapse-dev@ws.apache.org 
>>>   Subject: Re: error
>>> running
>>> StockQuote in Tomcat 
>>>   
>>>   &nbsp; 
>>>   Sanjesh 
>>>   
>>> We have a problem with the stock quote service bundled in M2, as the
>>> target WS
>>> we used does not work anymore. Could you let me know if you are using
>>> the
>>> latest from SVN and also the erro you get? You will need to build and
>>> deploy
>>> the sample WS that we now ship
>>> (modules\samples\services\SimpleStockQuoteService), into a (separate)
>>> Axis2
>>> server to run the samples now. Also we are probably going to drop
>>> support for
>>> the WAR distribution, as it doesn't allow Synapse to work well under
>>> another
>>> J2EE app server, so could you try the standalone version 
>>>   
>>> asankha 
>>>   
>>> Sanjesh Pathak wrote: 
>>>   Hi, 
>>>   &nbsp; 
>>>   I downloaded source code and built war file and installed it on
>>> Tomcat.
>>> I can see the listServices page and I see a service named Synapse. 
>>>   &nbsp; 
>>>   When I invoke the client (DumnStockQuoteClient) I am getting an error.
>>> I
>>> used all the combinations of urls mentioned below. Has anyone
>>> successfully
>>> invoked client under Tomcat? 
>>>   &nbsp; 
>>>   Sanjesh 
>>>   &nbsp; 
>>>   --------------------------------------------------- 
>>>   Hi David, 
>>>   &nbsp; 
>>>   With a minor modification you can run all the samples, where Synapse
>>> is 
>>>   deployed in Tomcat. 
>>>   &nbsp; 
>>>   I may suggest following as a work around, 
>>>   &nbsp; 
>>>   Since we are using SimpleHTTPServer, what we really need to worry
>>> about
>>> is 
>>>   host and port. 
>>>   &nbsp; 
>>>   But when we deployed Synapse in Tomcat, we need to consider the
>>> context
>>> root 
>>>   as well. 
>>>   i.e, you should point the request to http://localhost:8080/synapse/ 
>>>   &nbsp; 
>>>   Current web.xml&nbsp; that comes with synapse.war has a mapping only
>>> to
>>> direct 
>>>   http://localhost:8080/synapse/services/ &nbsp;&nbsp; to&nbsp; Synapse
>>> Environment. 
>>>   &nbsp; 
>>>   So you can run the samples if you point, 
>>>   String turl = " http://localhost:8080/synapse/services/any 
>>>   &nbsp; 
>>>   so using the goal "maven war" you can generate the synapse.war
>>> {currently 
>>>   available in M1 release}. But when you running the sample please use
>>> the 
>>>   above workaround. 
>>>   &nbsp; 
>>>   But as a long term solution above is unacceptable. We'll fix it ASAP. 
>>>   &nbsp; 
>>>   Thank you 
>>>   &nbsp; 
>>>   Saminda 
>>>   &nbsp; 
>>>   &nbsp; 
>>>   &nbsp; 
>>>   On 2/8/06, Saminda Abeyruwan &lt;samindaa@gmail.com&gt;  wrote: 
>>>   &gt;&nbsp; 
>>>   &gt;&nbsp; 
>>>   &gt; &gt; 
>>>   &gt; &gt; Example: *ant stockquote* 
>>>   &gt; &gt; ** 
>>>   &gt; &gt; Running this returns 
>>>   &gt; &gt; org.apache.axis2.AxisFault: 
>>>   &gt; &gt; com.ctc.wstx.exc.Wstx.UnexpectedCharException: Unexpected
>>> character d 
>>>   &gt; &gt; (code 100). 
>>>   &gt; &gt; 
>>>   &gt;&nbsp; 
>>>   &gt; When we ship M1, we actually tested everything to work with 
>>>   &gt; SimpleHTTPServer. 
>>>   &gt;&nbsp; 
>>>   &gt; I'm getting the same exception when deployed the synapse.war in
>>> Tomcat and 
>>>   &gt; run the samples. 
>>>   &gt;&nbsp; 
>>>   &gt; So IMHO&nbsp; we should try to fix this problem in M2 release.

>>>   &gt;&nbsp; 
>>>   &gt; Please be kind enough to log a JIRA so we can&nbsp; track down
>>> the
>>> problem and 
>>>   &gt; rectify it. 
>>>   &gt;&nbsp; 
>>>   &gt; Thank you 
>>>   &gt;&nbsp; 
>>>   &gt; Saminda 
>>>   &gt;&nbsp; 
>>>   &nbsp; 
>>>   
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org 
>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org 
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/error-running-StockQuote-in-Tomcat-tf2099574.html#a12557535
Sent from the Synapse - Dev mailing list archive at Nabble.com.


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


Mime
View raw message