deploy webapp to nfs shared drive

2009-06-14 Thread Robert Rowntree
we are running a cluster of 3 nodes. we are on linux . we run tomcat 5.5.15 and do not use the server.conf clustering . we cluster tomcat with an external load balancer. we have tried using a context file like the example below in order to serve webapps from the shared drive and have experienced th

Re: swallowOutput="true" not working. Why?

2009-06-14 Thread Christopher Piggott
Konstantin, Thanks for sharing your experience. It was helpful. I still have swallowOutput enabled but, with help from folks on this list, I kind of came to the same conclusion as you. I also realized that I was making a mistake by trying to have my webapp use the shared copy of log4j rather th

Re: using static helper classes within servlets

2009-06-14 Thread David Blevins
That's too bad. A workable solution in EJB 2.1 would be to use a stateless bean and set the pool size to 1. That will effectively give you a singleton, though keep in mind it won't be multithreaded so code appropriately. -David On Jun 14, 2009, at 5:17 PM, Sid Sidney wrote: Thanks Davi

Re: using static helper classes within servlets

2009-06-14 Thread Sid Sidney
Thanks David, but we are stuck with Struts and EJB 2.1 at the moment. --- On Sun, 6/14/09, David Blevins wrote: From: David Blevins Subject: Re: using static helper classes within servlets To: "Tomcat Users List" Date: Sunday, June 14, 2009, 5:43 PM Hey all, If the goal is to ensure that on

Re: how to get the console output on ubuntu

2009-06-14 Thread syed shah
Hi,Thanks for the reply, infact i am launching the tomcat exactly the same way, thanks and best regards Fahad On Sun, Jun 14, 2009 at 6:57 PM, André Warnier wrote: > syed shah wrote: > >> Hi, Thanks for the reply, but i am new to ubuntu and the script in there >> doesnt makes much sense to me as

Re: how to get the console output on ubuntu

2009-06-14 Thread André Warnier
syed shah wrote: Hi, Thanks for the reply, but i am new to ubuntu and the script in there doesnt makes much sense to me as to what its doing, would be glad if you or anyone else can throw more light on this thanks and regards Fahad If you want to start Tomcat in a console, forget the system star

Re: how to get the console output on ubuntu

2009-06-14 Thread syed shah
Hi, Thanks for the reply, but i am new to ubuntu and the script in there doesnt makes much sense to me as to what its doing, would be glad if you or anyone else can throw more light on this thanks and regards Fahad On Sun, Jun 14, 2009 at 5:18 PM, Mark Thomas wrote: > syed shah wrote: > > Hi, >

Re: using static helper classes within servlets

2009-06-14 Thread David Blevins
Hey all, If the goal is to ensure that only one instance is in the webapp, I'd recommend the new EJB 3.1 bean type @Singleton which is supported in OpenEJB 3.1 and 3.1.1. http://openejb.apache.org/3.0/singleton-example.html http://openejb.apache.org/singleton-ejb.html Instantiation can

Re: how to get the console output on ubuntu

2009-06-14 Thread Mark Thomas
syed shah wrote: > Hi, > > I have been programming on Windows and its pretty easy to get the console > output when you start the server from DOS as all println's go there but i > tried doing > same on ubuntu (through remote login) and it didnt worked as i get the bash > back after starting tomcat.

how to get the console output on ubuntu

2009-06-14 Thread syed shah
Hi, I have been programming on Windows and its pretty easy to get the console output when you start the server from DOS as all println's go there but i tried doing same on ubuntu (through remote login) and it didnt worked as i get the bash back after starting tomcat. I tried using eclipse but it s

Re: any body tried serving web requests from Second Life

2009-06-14 Thread syed shah
Thanks, was just suspected, if tomcat filters out malformatted requests because of security, regards Fahad On Sun, Jun 14, 2009 at 2:08 PM, André Warnier wrote: > syed shah wrote: > ... > The tomcat log > >> shows no requests received from SL, while i am able to serve requests from >> browser fo

Re: using static helper classes within servlets

2009-06-14 Thread Pid
Leon Rosenberg wrote: > Hello, > > On Sun, Jun 14, 2009 at 7:01 PM, Jonathan > Mast wrote: >> I've not done anything with EJBs and I'm not sure what exactly you mean by >> static "properties". I have however dealt with reducing instantiations in >> servlets. I simply created a BeanBag class with

Re: using static helper classes within servlets

2009-06-14 Thread Leon Rosenberg
Hello, On Sun, Jun 14, 2009 at 7:01 PM, Jonathan Mast wrote: > I've not done anything with EJBs and I'm not sure what exactly you mean by > static "properties".  I have however dealt with reducing instantiations in > servlets.  I simply created a BeanBag class with static methods to each one > of

RE: using static helper classes within servlets

2009-06-14 Thread Martin Gainty
that would be the simplest solution i *think* the OP wanted a complete EJB jar implementation (using either annotations and or ejb-jar.xml) which can be accomplished with OpenEJB except he would need to know the type vis-a-vis Stateless/Stateful Local/Remote beforehand http://openejb.apache.or

Re: any body tried serving web requests from Second Life

2009-06-14 Thread André Warnier
syed shah wrote: ... The tomcat log shows no requests received from SL, while i am able to serve requests from browser for both POST and GET requests. Well, that shows you where the problem is likely to be, no ? This does not look like a Tomcat issue, more like a SL or network issue.

Re: using static helper classes within servlets

2009-06-14 Thread Sid Sidney
Thanks for the reply. This is exactly what I had in mind. However, I did not want to use the synchronized keyword. In my case, my "someBean" object is just a delegate that passes data transfer objects to and from the back-end. So, I'm wondering if I really need to use the synchronized keyword.

Re: using static helper classes within servlets

2009-06-14 Thread Jonathan Mast
I've not done anything with EJBs and I'm not sure what exactly you mean by static "properties". I have however dealt with reducing instantiations in servlets. I simply created a BeanBag class with static methods to each one of my beans; these are not "proper" beans, but where simply objects that

using static helper classes within servlets

2009-06-14 Thread Sid Sidney
  HI,   In my web app, my servlets user several delegate classes that connect to ejbs (session beans.)  I was thinking about putting these delegates into a helper class as static properties. That way my servlets can just reference the same delegates. I don't want to

Re: daemon.log and out of memory

2009-06-14 Thread André Warnier
Be-Doors Tribute wrote: Hi, i have in the daemon.log the line: jsvc.exec[6486]: Returning NIL!#012GC Warning: Out of Memory! Returning NIL! It is repeated for thousand line. Can it depends from tomcat? And I can solve it? Hi. With questions of that kind, you should *really* provide some a

daemon.log and out of memory

2009-06-14 Thread Be-Doors Tribute
Hi, i have in the daemon.log the line: jsvc.exec[6486]: Returning NIL!#012GC Warning: Out of Memory! Returning NIL! It is repeated for thousand line. Can it depends from tomcat? And I can solve it? Thanks Massimo

Module development technical support

2009-06-14 Thread h iroshan
Hi All, I want to know is there any technical documentation for Apache Tomcat to get a idea about it source code. Best Regards, H.Iroshan. (Under graduate-University Of Colmbo School Of Computing)