Re: How to know when tomcat is ready to serve request

2009-10-21 Thread Elli Albek
Where does the code that needs to know that reside? How is it initialized? Is it inside tomcat (war file, valve, JNDI resource) or outside the tomcat JVM? E - Original Message - From: Anup K Ram To: users@tomcat.apache.org Sent: Wed, 21 Oct 2009 16:56:50 -0700 (PDT) Subject: How to know

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-21 Thread Elli Albek
Makes sense. I did not dig through the code of the "full version" RemoteIpValve so much, just enough to get the general idea (or maybe just enough to get into trouble). I have to look at the docs of our load balancer or maybe just add the proto header to the log files to see what values it gets

Re: Does Tomcat http support subdomains?

2009-10-21 Thread Elli Albek
> My initial response to that article is that it's vague drivel. > "If you are an incredibly savvy and experienced web developer, no doubt > you already have a DreamHost account" - should be all you need to read > to make a reasonable critical assessment of the quality of this article. :)

RE: Subdomains and Wars...

2009-10-21 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: RE: Subdomains and Wars... > > I would have agreed if not for an admin asking about what if a file > like a jpg was deployed via a war? It makes no difference. > I would say the developer should not have static content delivered > via

How to know when tomcat is ready to serve request

2009-10-21 Thread Anup K Ram
Hi, Is there a way to know whether tomcat is started successfully and ready to serve requests? I need to know this programmatically. Thanks In Advance.

RE: Subdomains and Wars...

2009-10-21 Thread Martin Gainty
Tony can you elaborate on what should be classified as content ..data?..a html formatted response? ...ajax response?..jpg? anything else? thx Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist ve

Re: MISC; Tomcat-5.5.12 Cluster giving Severe Error in ReplicationListener

2009-10-21 Thread Filip Hanik - Dev Lists
just upgrade to the latest version of Tomcat Filip On 10/19/2009 09:37 AM, Imad Hachem wrote: Dear all, I am using Tomcat-5.5.12 installed on Separate machines and configured as Clustered Session Replication. After stopping one of the Nodes, my Session Replication is not working very fi

Re: Subdomains and Wars...

2009-10-21 Thread André Warnier
Tony Anecito wrote: Hi Andre, Here is an article that talks about subdomain usage. I hope it helps explain the concept better for all. http://content.websitegear.com/article/about_subdomain.htm Tony, that article is a terrible mixture of truths, half-truths, and downright bull. The author

Re: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
Thanks I did notice the reference of "www" as a domain and wondered about that statement. I agree the l.yahoo.com which I see quite a bit of these days I treat as a subdomain. I try to take the article as a whole rather than individual words sometimes. But I do understand what you meant now. T

Re: Subdomains and Wars...

2009-10-21 Thread Hassan Schroeder
On Wed, Oct 21, 2009 at 1:25 PM, Tony Anecito wrote: > Why do you say that? Because "www.example.com" is not an example of a subdomain -- the "www" there is a *host* name. An example of a subdomain: "boscoe.beverages.example.com", where "example.com" is the top-level domain, "beverages" is the s

RE: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
I would have agreed if not for an admin asking about what if a file like a jpg was deployed via a war? I would say the developer should not have static content delivered via war to a app server but that is the way some dev groups deliver content. With that in mind how would you expect the conte

Re: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
Why do you say that? Sorry just I want to understand. People may find interesting ways to use terms based on perspectives. Regards, -Tony --- On Wed, 10/21/09, Hassan Schroeder wrote: > From: Hassan Schroeder > Subject: Re: Subdomains and Wars... > To: "Tomcat Users List" > Date: Wednesday,

RE: Subdomains and Wars...

2009-10-21 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: Re: Subdomains and Wars... > > I noticed Yahoo uses quite a few subdomains so the hype can not > all be wrong? It's not hype, but as you were told yesterday (and demonstrated by Chris' example), it has almost nothing to do with the se

Re: Using jasper

2009-10-21 Thread Ben Short
Sounds interesting I shall investigate. Many Thanks. 2009/10/21 Mark Thomas : > Ben Short wrote: >> Hi Mark, >> >> Id like to store my jsp files in a database. When a request comes into >> my web app I want to look up the jsp file based on the requested url, >> compile it, instantiate it, cast it

Re: Subdomains and Wars...

2009-10-21 Thread Hassan Schroeder
On Wed, Oct 21, 2009 at 1:10 PM, Tony Anecito wrote: > Here is an article that talks about subdomain usage. I hope it helps explain > the concept better for all. > > http://content.websitegear.com/article/about_subdomain.htm Nice. Too bad it's utterly wrong. Sheesh. -- Hassan Schroeder --

Re: Tomcat gets hanged and sessions not releasing

2009-10-21 Thread Mark Thomas
sudip pattanayak wrote: > Hi Mark, > > Thanks for your help. > You mean we need to start the service with this command or is it some config > variable. http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Mark > > -Sudip > > --- On Wed, 21/10/09, Mark Thomas wrote: > > From: Mark Thom

Re: Using jasper

2009-10-21 Thread Mark Thomas
Ben Short wrote: > Hi Mark, > > Id like to store my jsp files in a database. When a request comes into > my web app I want to look up the jsp file based on the requested url, > compile it, instantiate it, cast it to a servlet and call the service > method. > > My application will be spring based.

Re: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
Hi Andre, Here is an article that talks about subdomain usage. I hope it helps explain the concept better for all. http://content.websitegear.com/article/about_subdomain.htm Regards, -Tony --- On Wed, 10/21/09, André Warnier wrote: > From: André Warnier > Subject: Re: Subdomains and Wars...

RE: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
Hi Chuck, Here is a link to an article that explains a couple different ways a subdomain cna be used. I am using the second one for directory or folder for images. http://content.websitegear.com/article/about_subdomain.htm Since I do not use a WAR for static deployment (seems an overkill for me

Re: Subdomains and Wars...

2009-10-21 Thread Tony Anecito
WOW Chris thanks for the feedback. I ended up taking option 2 for right now and will do some testing where I hit a page with and without subdomains being used to see the affect. I noticed Yahoo uses quite a few subdomains so the hype can not all be wrong? Anyway I will find out for my specific

Re: Subdomains and Wars...

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/21/2009 2:11 PM, Tony Anecito wrote: > How would one associate the static content within a WAR with a > subdomain when using subdomains assigned to directories? Perhaps your (clarified) question really is: Can I deploy only the static-co

Re: InterruptedIOException when loading pre-compiled JSP

2009-10-21 Thread Eric Dalquist
That was our initial reaction as well but the syslog doesn't show any hard disk errors but we may end up looking into more detailed diagnostics of the disks. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Eric, > > On 10/20/2009 9:52 AM, Eric Dalquist wro

Re: Subdomains and Wars...

2009-10-21 Thread André Warnier
Tony Anecito wrote: Hi, How would one associate the static content within a WAR with a subdomain when using subdomains assigned to directories? Is the location that the war is exploded to known well enough that it can be done? Don't know about the others here, but personally I have a bit of t

RE: question about using tomcat on a remote machine

2009-10-21 Thread Caldarale, Charles R
> From: Matt Funk [mailto:maf...@nmsu.edu] > Subject: Re: question about using tomcat on a remote machine > > i didn't change anything in the server.xml file. I suspect it has nothing to do with Tomcat, but rather with how the TCP/IP stack for the OS is set up. Unfortunately, I can offer no hel

RE: Subdomains and Wars...

2009-10-21 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: Subdomains and Wars... > > How would one associate the static content within a WAR with a > subdomain when using subdomains assigned to directories? What do you mean by "subdomains assigned to directories"? Can you provide the Tomcat

Subdomains and Wars...

2009-10-21 Thread Tony Anecito
Hi, How would one associate the static content within a WAR with a subdomain when using subdomains assigned to directories? Is the location that the war is exploded to known well enough that it can be done? Regards, -Tony ---

Re: AbandonedObjectPool is used error

2009-10-21 Thread Felix Schumacher
Am Dienstag, den 20.10.2009, 04:57 -0700 schrieb VijayKS: > Hi Any one help me out this problem . > I am using jstl tags to access database. I am getting the following error > > AbandonedObjectPool is used > (org.apache.commons.dbcp.abandonedobjectp...@16eb6bc) >LogAbandoned: true >Remov

Re: InterruptedIOException when loading pre-compiled JSP

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 10/20/2009 9:52 AM, Eric Dalquist wrote: > I'm using Tomcat 6.0.20 on Solaris 10 and JDK 1.6.0_16 > > I have a webapp that seemingly randomly fails to work due do a > NoClassDefFoundError. If you are seeing InterruptedIOExceptions along wit

Re: Best Tomcat O.S. and Server Configuration

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 10/20/2009 12:15 PM, Jonathan Mast wrote: > I've never touch SuSE or Ubuntu so can't comment on those. Ubuntu is essentially Debian but with quicker package updates :) I would avoid Ubuntu for production simply because it's quite desktop

Re: Tomcat 5.59 with jTDS, and SQL Server 2005

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 10/20/2009 3:34 PM, ULS Tech Support wrote: > This is all i get now.. > > SQLException: java.sql.SQLException: No current row in the ResultSet. > SQLException Message: No current row in the ResultSet. Try replacing this catch block:

Re: question about using tomcat on a remote machine

2009-10-21 Thread Matt Funk
Mmhh, i didn't change anything in the server.xml file. I simply downloaded and am using the tomcat6 binary dist. I am very much a beginner with tomcat so please forgive question that are ignorant of what is probably considered basic. Why would this only listen with ipv6? Again, i didn't chang

Re: Tomcat 5.59 with jTDS, and SQL Server 2005

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 10/20/2009 2:18 PM, ULS Tech Support wrote: > Let's try this again... - From my post last week to this same question: On 19 October 2009 at 10:46AM, Christopher Schultz wrote: > 3. Your latest question has nothing to do with Tomcat. It's a

Re: Valves being converted to Filters?

2009-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 10/20/2009 9:47 PM, Mark Thomas wrote: >> Is there a specific reason for this? > > Portability, reduce internal code duplication (filters & valves have a lot in > common) Also, Tomcat has never provided standard request and response wrappe

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-21 Thread Cyrille Le Clerc
Hello Elli, From what I understand of your architecture, I would configure RemoteIpValve with : Note : - do not forget to "regexp escape' the ip adresses in internalProxies and trustedProxies attributes. - do not declare protocolHeader="x-forwarded-proto" if your load balancer do not mana

Re: Tomcat gets hanged and sessions not releasing

2009-10-21 Thread sudip pattanayak
Hi Mark, Thanks for your help. You mean we need to start the service with this command or is it some config variable. -Sudip --- On Wed, 21/10/09, Mark Thomas wrote: From: Mark Thomas Subject: Re: Tomcat gets hanged and sessions not releasing To: "Tomcat Users List" Date: Wednesday, 21 Octo

Re: Tomcat wait to start

2009-10-21 Thread NabiL
Thanks for your response. I will do it. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > NabiL, > > On 10/20/2009 7:57 AM, NabiL wrote: >> I use Tomcat 6.x running on server A (Linux redhat 5). i deployed a AMQ >> war >> file. This application is waiting to

Re: Using jasper

2009-10-21 Thread Ben Short
Hi Mark, Id like to store my jsp files in a database. When a request comes into my web app I want to look up the jsp file based on the requested url, compile it, instantiate it, cast it to a servlet and call the service method. My application will be spring based. Now I come to think about it wh

Re: Using jasper

2009-10-21 Thread Mark Thomas
Ben Short wrote: > Hi, > > I would like to use the Jasper jsp compiler to compile jsp's that I > read from a database/jackrabbit/inputstream can anyone give me any > pointers? Can you provide a little more context? Eg is thsi standalone or as part of a running Tomcat instance? Mark ---

Re: Tomcat gets hanged and sessions not releasing

2009-10-21 Thread Mark Thomas
sudip pattanayak wrote: > Hi Mark, > > I am not sure about the code, but we are confirming on whether we can share > the code. > As of now I have some logs. Can you derive something based on the same. Not really. As a wild guess, try running with -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=t

Using jasper

2009-10-21 Thread Ben Short
Hi, I would like to use the Jasper jsp compiler to compile jsp's that I read from a database/jackrabbit/inputstream can anyone give me any pointers? Regards Ben Short - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

Re: Tomcat is not getting shutdown

2009-10-21 Thread Mark Thomas
Suneel Saguturu wrote: > Hi Mark, > > > > Thank you, I got the thread dump, please find it below and suggest > what could be the problem. 1. Run the shutdown script 2. Wait a 60s to make sure it has completed 3. Take a thread dump 4. Look for threads that are not marked as daemon 5. Figu

Re: Valves being converted to Filters?

2009-10-21 Thread Mark Thomas
Eric B. wrote: > "Mark Thomas" wrote in message > news:200910202047470...@265006334... > >>> Although I love filters, I find that valves have a very specific need >>> within >>> the container as well; it allows you to configure the container >>> independently of the application. If everything

Re: apache/tomcat/modjk URL path question

2009-10-21 Thread Rainer Jung
On 20.10.2009 16:59, 1world1love wrote: > I know that there is probably an easy solution to this, but all the posts I > have found relating to this don't seem to match my scenario, and most of > them I frankly don't get. > > My issue is this: I have a server running apache and tomcat. The server i

Re: Does Tomcat http support subdomains?

2009-10-21 Thread Pid
On 20/10/2009 20:41, Tony Anecito wrote: Hi All, Does anyone know if Tomcat supports subdomains for its or the APR http function? The Apache Web server does. I am starting to see more and more use of subdomains for performance improvements by allowing more browser connections from the same br

Re: Tomcat 5.59 with jTDS, and SQL Server 2005

2009-10-21 Thread Pid
On 20/10/2009 21:01, George Sexton wrote: -Original Message- From: ULS Tech Support [mailto:tech_supp...@uls.com] Sent: Tuesday, October 20, 2009 1:35 PM To: Tomcat Users List Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 -