RE: tomcat starting even after port is in use

2010-07-19 Thread Caldarale, Charles R
> From: sudhir singh rana [mailto:sudhirsinghr...@gmail.com] > Subject: Re: tomcat starting even after port is in use > > is there any way I can achieve this in 5.5.27 Not via configuration, as far as I know. You could change the code at lines 501-508 in org/apache/catalina/startup/Catalin.java

Re: APR & Tomcat...

2010-07-19 Thread Tony Anecito
Interesting. I saw that when a static file was around 21K or below a dramatic improvement in recorded time in the log for APR. I have not tried with regular Apache Web Server to see what I get. Regards, -Tony - Original Message From: "Caldarale, Charles R" To: Tomcat Users List Sen

Re: tomcat starting even after port is in use

2010-07-19 Thread sudhir singh rana
is there any way I can achieve this in 5.5.27 thanks On Tue, Jul 20, 2010 at 9:15 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: sudhir singh rana [mailto:sudhirsinghr...@gmail.com] > > Subject: Re: tomcat starting even after port is in use > > > > I am using tomcat 5.5.

RE: APR & Tomcat...

2010-07-19 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: APR & Tomcat... > > My tests show that use of sendFile is dramatically faster > than without. Was that vs BIO or NIO? As I recall, there is no sendFile capability in BIO, so both NIO and APR should beat that. -

RE: tomcat starting even after port is in use

2010-07-19 Thread Caldarale, Charles R
> From: sudhir singh rana [mailto:sudhirsinghr...@gmail.com] > Subject: Re: tomcat starting even after port is in use > > I am using tomcat 5.5.27 and problem is that even tomcat > got exception due to port in use it initialized my servlet > I mean called init function. Not sure how to avoid tha

Re: APR & Tomcat...

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 7/19/2010 7:42 PM, Dale Ogilvie wrote: > Reasons to use httpd being what? Here are a few ideas: 1. Load balancing 2. Use of mixed Java and non-Java webapps (PHP, Perl, etc.) 3. Use of multiple Tomcat instances behind a single web server If

Re: APR & Tomcat...

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/19/2010 9:57 PM, Caldarale, Charles R wrote: >> From: Tony Anecito [mailto:adanec...@yahoo.com] >> Subject: Re: APR & Tomcat... >> >> So as to say the Tomcat group did not want to compete >> why build the APR? > > Tomcat people did not c

Re: tomcat starting even after port is in use

2010-07-19 Thread sudhir singh rana
I am using tomcat 5.5.27 and problem is that even tomcat got exception due to port in use it initialized my servlet I mean called init function. thanks On Mon, Jul 19, 2010 at 10:29 PM, Mark Thomas wrote: > > Hi, > > > > I started tomcat but tomcat port was in use. Due to this some > functional

RE: APR & Tomcat...

2010-07-19 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: Re: APR & Tomcat... > > The disadvantages are such as when Tomcat is taken down > so does your static content. So why are you taking Tomcat down? "Doctor, doctor, it hurts when I do this!" > I am guessing better security for Apache W

RE: APR & Tomcat...

2010-07-19 Thread Caldarale, Charles R
> From: Dale Ogilvie [mailto:dale.ogil...@trimble.co.nz] > Subject: RE: APR & Tomcat... > > Reasons to use httpd being what? Serving PHP and as a poor man's load balancer, for starters. > The reason we used httpd in the past was "httpd serves > static content better". Which hasn't been true fo

RE: APR & Tomcat...

2010-07-19 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: Re: APR & Tomcat... > > So as to say the Tomcat group did not want to compete > why build the APR? Tomcat people did not create it - APR has been around for years. It's part of many products (e.g., subversion). What the Tomcat group

Please remove me from the users emailing list

2010-07-19 Thread lei jiang

RE: APR & Tomcat...

2010-07-19 Thread Richard Maynard
Next experiment can be Varnish in front of Tomcat with APR :) I'm having a lot of fun with it with mostly stateless apps and to optimize some test projects, but haven't had an opportunity to deploy it in any large configuration. It provides a lot of great features and can really be used to tun

Re: APR & Tomcat...

2010-07-19 Thread Tony Anecito
I used APR for performance reasons. I was running Apache Web Server and Tomcat on the same physical windows server. I mentioned what configuration might be faster and was told APR native with Tomcat and it was faster. I might have gone from 1.5 to 1.0 milliseconds for JAXWS requests. The disadv

RE: APR & Tomcat...

2010-07-19 Thread Dale Ogilvie
Reasons to use httpd being what? We historically have used httpd and mod_proxy_ajp, but less being more I'm considering a tomcat only setup. The reason we used httpd in the past was "httpd serves static content better". One other reason that comes to mind is httpd url rewrite support, assuming

Re: APR & Tomcat...

2010-07-19 Thread Tony Anecito
For each image I would get a small red x. When I hit refresh and it then display them. Comments like this on Confluence web site for example explain: After a bit of Googling came across this: "Apache Portable Runtime to provide superior scalability, performance" for Tomcat 6. There are comment

Re: IP based request filters for admin/manager

2010-07-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 7/18/2010 11:48 PM, Johan Martinez wrote: Started afresh and got it working finally. I tried with and without escape character and both worked. Probably because . matches '.'. Yep. :-) Johan, if you are s

Re: SEVERE message from DeltaManager

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/19/2010 6:00 PM, Mark Thomas wrote: > On 19/07/2010 22:36, Christopher Schultz wrote: >> Mark, >> >> On 7/19/2010 1:07 PM, Mark Thomas wrote: >>> Testing shows that it is caused by using async session replication. If >>> you use synchronous

Re: How to retrieve persisted session

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashish, On 7/19/2010 4:48 PM, Ashish Kulkarni wrote: > Is there a way i can save this session cookie, so i can access it later? is > it possible Set the maxAge of the session to something other than -1 (the default, which means "this cookie will die

Re: SEVERE message from DeltaManager

2010-07-19 Thread Mark Thomas
On 19/07/2010 22:36, Christopher Schultz wrote: > Mark, > > On 7/19/2010 1:07 PM, Mark Thomas wrote: >> Testing shows that it is caused by using async session replication. If >> you use synchronous replication that ensures messages are processed on >> the receiving nodes in the order they are sent

Re: APR & Tomcat...

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 7/19/2010 5:21 PM, Tony Anecito wrote: > First off I get a little red x in the upper left hand corner of the web page. For the whole page? I thought this was an image problem. > Yep I agree maybe an upgrade to the latest Tomcat and APR migh

Re: Unable to get Tomcat 7 to work in Eclipse

2010-07-19 Thread Austin Shelton
The resource for my web page servlet can't be located. This was not the case with Tomcat 6. Nobody complained once I started getting a good Tomcat launch. There are no logs in the Tomcat home. On Mon, Jul 19, 2010 at 1:56 PM, Pid wrote: > On 19/07/2010 20:13, Austin Shelton wrote: > > Hi, > >

Re: SEVERE message from DeltaManager

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/19/2010 1:07 PM, Mark Thomas wrote: > Testing shows that it is caused by using async session replication. If > you use synchronous replication that ensures messages are processed on > the receiving nodes in the order they are sent. Asynchro

Re: Tomcat7 HTTPS APR Performance

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shivani, On 7/19/2010 2:02 PM, shivanic wrote: > I would recheck the performance stats with 100 users with HTTP protocol > instead of HTTPS and revert back. Mladen Turk has mentioned that only > constant response time (and not allowing the factors th

Re: IP based request filters for admin/manager

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 7/18/2010 11:48 PM, Johan Martinez wrote: > Started afresh and got it working finally. > > I tried with and without escape character and both worked. Probably because . matches '.'. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v

Re: APR & Tomcat...

2010-07-19 Thread Tony Anecito
Hi Pid First off I get a little red x in the upper left hand corner of the web page. Yep I agree maybe an upgrade to the latest Tomcat and APR might accomplish fixing the problem but silly me I like to understand an issue before I upgrade. APR==httpd at least that is what the Apache Web site sa

Re: Tomcat 5.5.23 server startup issue

2010-07-19 Thread Pid
On 19/07/2010 17:23, Venkat Tanga wrote: > *Hi All, > > I am facing the below mentioned issues in the server startup. hence > the server is not starting up. > > Can any one plz help me how to resolve these issues. * > > Jul 19, 2010 9:41:30 PM org.apache.catalina.startup.HostConfig > de

Re: Unable to get Tomcat 7 to work in Eclipse

2010-07-19 Thread Pid
On 19/07/2010 20:13, Austin Shelton wrote: > Hi, > > I am unable to get Tomcat 7.0.0 to work correctly with Eclipse Helios. > Tomcat 6 was working just fine; the problem occurred when I upgraded to > Tomcat 7.0. It complained about "Resource Not found. I now have it working > to the extent that no

Re: APR & Tomcat...

2010-07-19 Thread Pid
On 19/07/2010 19:44, Tony Anecito wrote: > Hi All, > > I have been having odd issues with APR & Tomcat (6.0.20) since I set it up a > while ago. I am seeing: Time for an upgrade. > 1. Sometimes on the first try to get images from a page where the images are > assigned a sub domain via a host t

Re: How to retrieve persisted session

2010-07-19 Thread Ashish Kulkarni
Hi Is there a way i can save this session cookie, so i can access it later? is it possible How does yahoo or gmail keep me signed on for 2-3 days Ashish On Mon, Jul 19, 2010 at 4:43 PM, Mark Thomas wrote: > On 19/07/2010 20:48, Ashish Kulkarni wrote: > > Hi > > I have configured my tomcat to sa

Re: How to retrieve persisted session

2010-07-19 Thread Mark Thomas
On 19/07/2010 20:48, Ashish Kulkarni wrote: > Hi > I have configured my tomcat to save session in database as per > documentation, and it works as expected i can see the session is saved in > database, > Now if the user closes the browser, and then reopens i dont want to show the > login screen but

Re: using Apache as a front end for Tomcat

2010-07-19 Thread André Warnier
James Godrej wrote: Hi, it would be very kind of you people if some one can share how can I use Apache as a front end to Tomcat. I am having an application in CATALINA_HOME/webapps and I can access it as http://localhost:9090/portal Thanks Apart from the recommendations you already got, it ma

How to retrieve persisted session

2010-07-19 Thread Ashish Kulkarni
Hi I have configured my tomcat to save session in database as per documentation, and it works as expected i can see the session is saved in database, Now if the user closes the browser, and then reopens i dont want to show the login screen but get the session from database and go to the last visite

Re: using Apache as a front end for Tomcat

2010-07-19 Thread Marco Ehrentreich
Hi James, > Marco thanks for your kind reply. > Your welcome ;-) > I am a bit new to this Proxy business I did searched tutorials on net but I > have > got a lot confused. > If you can share your vhost as how you are using mod_proxy_ajp > > For example following is an example configuration of

Unable to get Tomcat 7 to work in Eclipse

2010-07-19 Thread Austin Shelton
Hi, I am unable to get Tomcat 7.0.0 to work correctly with Eclipse Helios. Tomcat 6 was working just fine; the problem occurred when I upgraded to Tomcat 7.0. It complained about "Resource Not found. I now have it working to the extent that no errors or warning show up in the console. But I do not

Re: using Apache as a front end for Tomcat

2010-07-19 Thread James Godrej
Hi, Marco thanks for your kind reply. I am a bit new to this Proxy business I did searched tutorials on net but I have got a lot confused. If you can share your vhost as how you are using mod_proxy_ajp For example following is an example configuration of Apache as front end I enabled mod_proxy

Re: using Apache as a front end for Tomcat

2010-07-19 Thread James Godrej
Thanks Caldarale,I will go through all of them. From: "Caldarale, Charles R" To: Tomcat Users List Sent: Tue, 20 July, 2010 12:29:48 AM Subject: RE: using Apache as a front end for Tomcat > From: James Godrej [mailto:jamesgod...@yahoo.in] > Subject: using Apa

RE: using Apache as a front end for Tomcat

2010-07-19 Thread Caldarale, Charles R
> From: James Godrej [mailto:jamesgod...@yahoo.in] > Subject: using Apache as a front end for Tomcat > > it would be very kind of you people if some one can share > how can I use Apache as a front end to Tomcat. A lot of it is in the FAQ and doc: http://wiki.apache.org/tomcat/FAQ/Connectors http

Re: using Apache as a front end for Tomcat

2010-07-19 Thread Marco Ehrentreich
Hi James! > it would be very kind of you people if some one can share how can I use > Apache > as a front end to Tomcat. I guess most installations of Apache and Tomcat are using the AJP protocol for communication between the Apache frontend and Tomcat backend. There are two similar approaches

APR & Tomcat...

2010-07-19 Thread Tony Anecito
Hi All, I have been having odd issues with APR & Tomcat (6.0.20) since I set it up a while ago. I am seeing: 1. Sometimes on the first try to get images from a page where the images are assigned a sub domain via a host tag I get a red x. Hitting refresh seems to retrieve the images. The images

Re: Tomcat7 HTTPS APR Performance

2010-07-19 Thread shivanic
Christopher Schultz-2 wrote: > > > Can you clarify? Are you using the same version of APR with both Tomcat > 7 and JBoss? APR 2.1.4 is an unlikely version number. Care to > double-check? > Correction : It is jboss web server version 2.1.4 used. APR Version used is the latest available 1.4.2

Re: SEVERE message from DeltaManager

2010-07-19 Thread Mark Thomas
On 16/07/2010 10:19, Mark Thomas wrote: > On 16/07/2010 06:49, Matt Peterson wrote: >> While load testing our clustered Tomcats, we are seeing the following >> stack >> trace in our catalina.out occasionally, but not regularly: >> >> >> >> Jul 16, 2010 3:34:49 PM org.apache.catalina.ha.session.Delt

Re: SEVERE message from DeltaManager

2010-07-19 Thread Mark Thomas
On 19/07/2010 10:50, Luciano Fioriti wrote: > May be, but i do notthink so. Again, you are way off-base here. Hitting the max threads in the connector has nothing to do with errors in session replication. Mark > > This errors : > "SEVERE: Manager [localhost#/urs]: Unable to receive message thro

Re: tomcat starting even after port is in use

2010-07-19 Thread Mark Thomas
On 19/07/2010 08:35, sudhir singh rana wrote: > Hi, > > I started tomcat but tomcat port was in use. Due to this some functionality > of my program was not working. Tomcat gives the error when port is in use > but it comes up. I want tomcat should not come up when port is in use. > > Can anyone h

Re: tomcat 7: IllegalArgumentException: taglib definition not consistent with specification version

2010-07-19 Thread Mark Thomas
On 19/07/2010 08:02, Edoardo Panfili wrote: > On 17/07/10 16.28, Mark Thomas wrote: >> >> >> ... >> >> >> > but this one works! also with the wrong schemaLocation. >>> > Without your help I can't figure the meaning of the exception. Is >>> Tomcat >>>

Tomcat 5.5.23 server startup issue

2010-07-19 Thread Venkat Tanga
*Hi All, I am facing the below mentioned issues in the server startup. hence the server is not starting up. Can any one plz help me how to resolve these issues. * Jul 19, 2010 9:41:30 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration d

Re: where to declare the datasource?

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, On 7/19/2010 11:19 AM, Daniel Plappert wrote: > It is possible to declare the datasource in the servlet.xml and > reference it in the web.xml of the application (via jndi)[?] Assuming you meant "server.xml", then yes, you can define it global

where to declare the datasource?

2010-07-19 Thread Daniel Plappert
Hi! It is possible to declare the datasource in the servlet.xml and reference it in the web.xml of the application (via jndi). Or one can declare it in the application itself, i.e. in application-context.xml. The first one declares the datasource for all applications deployed in this servlet-co

Re: How can i verify clusterization?

2010-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, On 7/19/2010 3:07 AM, Luca Gervasi wrote: > I use httpd + mod_jk as frontend to load balance among all the backends > (lb worker). Okay, that will simplify switching backends at will from a client. > The backends use the BackupManager to achie

Re: SEVERE message from DeltaManager

2010-07-19 Thread Luciano Fioriti
May be, but i do notthink so. This errors : "SEVERE: Manager [localhost#/urs]: Unable to receive message through TCP channel java.lang. IllegalStateException: removeAttribute: Session already invalidated" may dependds on tomcat failure and i see in the Receiver configuration: 2010/7/16 Mark

tomcat starting even after port is in use

2010-07-19 Thread sudhir singh rana
Hi, I started tomcat but tomcat port was in use. Due to this some functionality of my program was not working. Tomcat gives the error when port is in use but it comes up. I want tomcat should not come up when port is in use. Can anyone help me thanks in advance

Re: How can i verify clusterization?

2010-07-19 Thread Luca Gervasi
On Fri, 2010-07-16 at 15:56 -0400, Christopher Schultz wrote: > Luca, > > On 7/14/2010 2:42 AM, Luca Gervasi wrote: > > i'm using (mostly): > > What does "(mostly)" mean? You have environments that sometimes deviate > from this configuration? Sometimes you use another Tomcat and/or JDK > just fo

Re: tomcat 7: IllegalArgumentException: taglib definition not consistent with specification version

2010-07-19 Thread Edoardo Panfili
On 17/07/10 16.28, Mark Thomas wrote: >> >> >> ... >> >> > but this one works! also with the wrong schemaLocation. > Without your help I can't figure the meaning of the exception. Is Tomcat > supposing a specification version using the presence/absence of this tag? > tha