tomcat init script not LSB compliant

2007-11-21 Thread Waseem Azhar
Hi All, Could anybody tell me how to make tomcat script LSB compliant ? I am using Linux High availability project. The heartbeat daemon complaining the following: info: Running /etc/init.d/tomcat start ERROR: Return code 1 from /etc/init.d/tomcat CRIT: Giving up resources due to failure of tomc

Re: Changing ROOT context

2007-09-20 Thread Waseem Azhar
Sorry I overlooked some previous conversation. On 9/18/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Waseem Azhar [mailto:[EMAIL PROTECTED] > > Subject: Re: Changing ROOT context > > > > Just open your server.xml add line > docBase="y

Re: Changing ROOT context

2007-09-18 Thread Waseem Azhar
Just open your server.xml add line in the next line of your host configuration example : Thats it! you would found your application the default app , you can access it as http://your-host-name/ Cheers. -Azhar On 9/16/07, FastGorilla <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have a prob

Re: how to obtain server ip address

2007-09-17 Thread Waseem Azhar
Yes I have tried InetAddress.getLocalHost() and its working ... Thanks, -Azhar On 9/18/07, Sonal Goyal <[EMAIL PROTECTED]> wrote: > > Waseem, > > Have you tried InetAddress.getLocalHost()? > > Sonal > > On 9/18/07, Waseem Azhar <[EMAIL PROTECTED]> wrote: >

Re: how to obtain server ip address

2007-09-17 Thread Waseem Azhar
/rfc1918.txt > > Or you could use ServletRequest.getLocalAddr(), it's simpler but > obviously unavailable until someone actually connects to your server, so > it's unusable with any kind of eager initialization. > > Greetings, Lilianne E. Blaze > > Waseem Azhar wrote: > > Hi

how to obtain server ip address

2007-09-17 Thread Waseem Azhar
Hi, How do I obtain the IP address of the machine (where the tomcat tomcat server in running) ? My web app is deployed on tomcat server and I want to know the Ip address of the server in my application. Thanks in advance. -Azhar

Re: tomcat incoming requests and thread usage

2007-09-16 Thread Waseem Azhar
How do I take a thread dump ? Are you talking about the heap snapshot/dump ?? Thanks, -Azhar On 9/15/07, Bill Barker <[EMAIL PROTECTED]> wrote: > > "Waseem Azhar" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > Co

tomcat incoming requests and thread usage

2007-09-14 Thread Waseem Azhar
Hi, Could sombody tell me how tomcat release/reclaim it threads after serving request. I have a situation where i have no activity going on in my webapp but still thread usage is 61 with status (service/stage). I have allocated total 100 threads. While monitoring i have the following status messag

TCP connection limit got exceeded.

2007-09-11 Thread Waseem Azhar
Hi, I stumbled across a problem where my server stop responding to new http connections. After inpecting logs if found an error message in tomcat logs [SEVERE: Protocol handler pause failed java.net.SocketException: Network is unreachable]. I did some investigation on my linux server logs and foun

Re: jsvc.pid question / Possibility of jsvc.pid collisions?

2007-09-04 Thread Waseem Azhar
Yes, this is a valid issue from the start/stop tomcat perspective. If you have multipe tomcat servers running on the same machine you can use -pidfile switch to specify the different pid file location for each server. Otherwise you won't be able to start both servers simultaneously. e.g -pidfile

Re: enabling tomcat SSL on linux

2007-08-08 Thread Waseem Azhar
Yes, I got it working. Tomcat wasn't able to locate certificate file. "netstat -an | grep 8443" was a really good tip. Thanks a lot Peter. On 8/8/07, Peter Crowther <[EMAIL PROTECTED]> wrote: > > > From: Waseem Azhar [mailto:[EMAIL PROTECTED] > > Co

Re: enabling tomcat SSL on linux

2007-08-08 Thread Waseem Azhar
" show a port in LISTENING state? > > - Peter > > > -Original Message- > > From: Waseem Azhar [mailto:[EMAIL PROTECTED] > > Sent: 08 August 2007 15:21 > > To: users@tomcat.apache.org > > Subject: enabling tomcat SSL on linux > >

enabling tomcat SSL on linux

2007-08-08 Thread Waseem Azhar
Hi All, I am stuck, any idea how to enable tomcat SSL on linux ? I have configured tomcat on windows machine and its working perfectly. However when i tried to port my configurations (server.xml) on linux machine, it refuses to work. I am listing down a very simple SSL configuration below: