Tomcat behind Apache reverse proxy

2009-08-10 Thread Rainer Frey
We develop an application that is heavily using different kind of web services (SOAP, Hessian) and only has few JSPs that are used with a browser. We bundle Tomcat (6.0.20) as server runtime. Some customers (with varying degree of experience) want to use this behind Apache HTTPD as reverse prox

Re: Custom response header not working because of Content Length

2009-08-10 Thread Anantha Padmanabha
I wrould read more about struts's request-response cycle. The only reason is I am trying to add to response header is that I can dump my custom response headers in apache logs. That way, all latencies would be tied together making it easy for parsing and analysis. In case of different log files f

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
i use the patch you send to me, it is much better than before,but it still have some problems: i must refresh the page and it could works for a few minute,then the session has gone.i need to login again. the log file says: ÐÅÏ¢: Server startup in 26207 ms 2009-8-11 11:23:09 org.apache.catalina.tr

Re: Is encryption of AJP traffic between Apache and Tomcat possible out of the box?

2009-08-10 Thread Tim Funk
An ssh tunnel is also easy too. (but can also open other security holes depending on how its deployed and the requirements) -Tim Mark Thomas wrote: Florian Kirchhoff wrote: Hi, I know this has been asked before, but after reading the documentation and searching previous threads: http://ww

Re: Is encryption of AJP traffic between Apache and Tomcat possible out of the box?

2009-08-10 Thread Mark Thomas
Florian Kirchhoff wrote: > Hi, > > > I know this has been asked before, but after reading the documentation and > searching previous threads: > > http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-to7746284.html#a7764525 > 2006 thread > > > http://www.nabble.com/AJP-

RE: questions on tomcat cluster

2009-08-10 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] > Subject: Re: questions on tomcat cluster > > the JVM skips any class attempted to be loaded from another class, ie, > you cant do forName("java.lang.Integer",someloader), at least in theory :) True, since the JVM-provided classloaders

Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15

2009-08-10 Thread Filip Hanik - Dev Lists
if you entire server dies, then it sounds more hardware related, could be software triggered, but no, tomcat shouldn't kill your system :) Filip On 08/10/2009 02:57 PM, Dan Denton wrote: Hello all. I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
On 08/10/2009 10:20 AM, Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: questions on tomcat cluster actually, your classpath is probably good. Its in the way the system loads its classes. Not true - jre/lib is loaded by the bootstrap cla

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
but totally unrelated to the actual issue he has :) Filip On 08/10/2009 10:20 AM, Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: questions on tomcat cluster actually, your classpath is probably good. Its in the way the system loads its classe

Is encryption of AJP traffic between Apache and Tomcat possible out of the box?

2009-08-10 Thread Florian Kirchhoff
Hi, I know this has been asked before, but after reading the documentation and searching previous threads: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-to7746284.html#a7764525 2006 thread http://www.nabble.com/AJP-talking-TLS-or-SSL-to12245661.html#a12245661 2

Re: Can a connector be nested in a context?

2009-08-10 Thread Mark Thomas
Payne, George (ghp5h) wrote: > I've been unable to get this to work (nesting a connector in a context), > though I cannot find a definitive answer about whether it SHOULD be possible > or not. The docs say the container element is "usually" an Engine, but don't > say if the other options includ

Tomcat 6 shutdown hangs server when using JDK 6.0_15

2009-08-10 Thread Dan Denton
Hello all. I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this. When I use JDK 5.0, this doesn't happen. The tomca

Can a connector be nested in a context?

2009-08-10 Thread Payne, George (ghp5h)
I've been unable to get this to work (nesting a connector in a context), though I cannot find a definitive answer about whether it SHOULD be possible or not. The docs say the container element is "usually" an Engine, but don't say if the other options include a context or not. The purpose to a

Re: TC 6.0.20 - how to know session restored on restart?

2009-08-10 Thread David Wall
Caldarale, Charles R wrote: From: David Wall [mailto:d.w...@computer.org] Subject: Re: TC 6.0.20 - how to know session restored on restart? This must be a multi-thread timing issue because I had not had this happen on several other restarts. AFAIK, Tomcat initialization is single-thread

Re: slight problem with Tomcat and Httpd working together.

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 8/8/2009 12:35 AM, Josh Gooding wrote: > Since Tomcat is not the most efficient at > serving static HTML pages As Chuck suggests, this is an incorrect assumption. In recent testing I performed myself, Tomcat 6.0.20's APR connector (also ment

Re: Calling JNI/COM from Tomcat when running as a Windows service

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 8/10/2009 12:03 PM, Steve O'Hara wrote: > We have built a Crystal Reports extension to our servlet application > that is called via JAWIN/COM/.NET - I know, it sounds horrible doesn't > it, but if you've ever worked with the c**p that is Cry

Re: Custom response header not working because of Content Length

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anantha, On 8/10/2009 11:45 AM, Anantha Padmanabha wrote: > I'm using struts2 application. I want to add some latencies [say mysql, our > components and tomcat itself] to header, so that I can print this in Apache > logs. Then looking at single apache

Re: tomcat connection limit

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 8/9/2009 9:33 PM, Thomas G. Lau wrote: > [r...@app1-testing ~]# ulimit -a > open files (-n) 65535 > max user processes (-u) 65535 Right. What user is Tomcat running as? > maxThreads="300

Re: Exception when deploying with VirtualWebappLoader

2009-08-10 Thread Mark Thomas
fritzdimmel wrote: > Hi, > I do have the exact same problem. > > Does anyone have a solution for this? Looks like a bug with the VirtualWebappLoader. Create a bug entry with a simple test case and I'll take a look. It isn't going to be top priority though. Mark > > Thanks! > > > Marcus Bett

RE: questions on tomcat cluster

2009-08-10 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] > Subject: Re: questions on tomcat cluster > > actually, your classpath is probably good. Its in the way the system > loads its classes. Not true - jre/lib is loaded by the bootstrap classloader, whereas CLASSPATH specifies the system c

Re: Calling JNI/COM from Tomcat when running as a Windows service

2009-08-10 Thread Len Popp
Could it be a problem finding a DLL? Check the PATH variable in your dev account and see if it includes any directories with relevant DLLs. Even if you call LoadLibrary with a DLL's full pathname, other subsidiary DLLs may not be found if they're not on the search path. -- Len On Mon, Aug 10, 20

Calling JNI/COM from Tomcat when running as a Windows service

2009-08-10 Thread Steve O'Hara
We have built a Crystal Reports extension to our servlet application that is called via JAWIN/COM/.NET - I know, it sounds horrible doesn't it, but if you've ever worked with the c**p that is Crystal Reports for Eclipse, you'll understand why we have to do it this way. The JNI library (JAWIN) is l

Re: Custom response header not working because of Content Length

2009-08-10 Thread Tim Funk
Its probably also failing for less than 8k since I am guess the view is a jsp and when the jsp finishes execution - the response will be committed. (Or somewhere in the request/response cycle - a forward() was done which also will eventually commit the response per the servlet spec) If you are

Re: Custom response header not working because of Content Length

2009-08-10 Thread Anantha Padmanabha
Hi people, You are correct. My header got ignored and was attempting to add after 'commit'. I moved it to beginning of filter and tried updating towards the end, but after 'commit', I wont be able to able to set the header value :( I'm using struts2 application. I want to add some latencies [say

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
no need to email me directly, I read the tomcat mailing list. actually, your classpath is probably good. Its in the way the system loads its classes. There is classloading going while deserializing the message. I've created a small patch try to download http://people.apache.org/~fhanik/tomcat

Re: Custom response header not working because of Content Length

2009-08-10 Thread Tim Funk
If you are doing this: doFilter() { chain.doFilter() response.addHeader(...) } Expect failure to occur. (unless you are sending less than 8k in the response) -Tim Anantha Padmanabha wrote: I'm using tomcat 6.0.18. I added a filter that adds a custom response header by doing setIntHeader

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
i want to solve this problem,when i setup tomcat cluster, the tomcat catalina.out always says: 2009-8-10 18:57:53 org.apache.catalina.tribes.tipis.AbstractReplicatedMap messageReceived ÑÏÖØ: Unable to apply diff to key:4CFE0AE7D7D00AAB2536871C84FE7865.worker2 java.lang.ClassNotFoundException: jav

RE: questions on tomcat cluster

2009-08-10 Thread Caldarale, Charles R
> From: jingtian.seu...@gmail.com [mailto:jingtian.seu...@gmail.com] > On Behalf Of TianJing > Subject: Re: questions on tomcat cluster > > could you please tell me what library files could i use here? What do you mean by "here"? You should only use libraries that you need; don't randomly includ

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
thanks, could you please tell me what library files could i use here? 2009/8/10 Caldarale, Charles R > > From: jingtian.seu...@gmail.com [mailto:jingtian.seu...@gmail.com] > > On Behalf Of TianJing > > Subject: Re: questions on tomcat cluster > > > > my $CLASSPATH include the lib and the jre/li

Re: Custom response header not working because of Content Length

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anantha, On 8/10/2009 11:05 AM, Anantha Padmanabha wrote: > I'm using tomcat 6.0.18. I added a filter that adds a custom response header > by doing setIntHeader/addIntHeader, but it didnt work. Do you get an error, or is your header just ignored? >

RE: questions on tomcat cluster

2009-08-10 Thread Caldarale, Charles R
> From: jingtian.seu...@gmail.com [mailto:jingtian.seu...@gmail.com] > On Behalf Of TianJing > Subject: Re: questions on tomcat cluster > > my $CLASSPATH include the lib and the jre/lib You must never, under any circumstances, include jre/lib in your classpath - the JVM takes care of that. You

Custom response header not working because of Content Length

2009-08-10 Thread Anantha Padmanabha
I'm using tomcat 6.0.18. I added a filter that adds a custom response header by doing setIntHeader/addIntHeader, but it didnt work. I debugged,looked at source and figured out that the place where its not working. Before adding headers, there is a check like this: public boolean isAppCommitted()

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
thanks for you help, could you please tell me more details? my $CLASSPATH include the lib and the jre/lib,what should i do to solve the problem? thanks very much! 2009/8/10 Filip Hanik - Dev Lists > so replication is actually working for you, you just have a classpath > issues with how you set

Re: Console Output Not Going Anywhere

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, On 8/9/2009 10:25 PM, Allen Williams wrote: > I looked, and somewhere along the line, I made my tag this: > > reloadable="true" > antiResourceLocking="false" privileged="false"> > > As I'm sure you gurus know, the "debug=" a

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
so replication is actually working for you, you just have a classpath issues with how you setup your libraries. Filip On 08/10/2009 08:35 AM, TianJing wrote: thanks, the two tomcat are on different machines, one is on the same server with apache. in the tomcat catalina.out, it says: 2009-

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
thanks, the two tomcat are on different machines, one is on the same server with apache. in the tomcat catalina.out, it says: 2009-8-10 18:57:53 org.apache.catalina.tribes.tipis.AbstractReplicatedMap messageReceived ÑÏÖØ: Unable to apply diff to key:4CFE0AE7D7D00AAB2536871C84FE7865.worker2 java.

Re: questions on tomcat cluster

2009-08-10 Thread TianJing
the two tomcat are on different machines, one is on the same server with apache. 2009/8/10 Filip Hanik - Dev Lists > are the Tomcat machines on the same box? > if yes, and this is tomcat 6.0.20, there is a regression in the tomcat code > https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 >

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
are the Tomcat machines on the same box? if yes, and this is tomcat 6.0.20, there is a regression in the tomcat code https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 If this is not the case, let us know and we can help you further Filip On 08/10/2009 05:51 AM, TianJing wrote: Hi all, i

RE: avoiding ssl vulnerabilities in tomcat

2009-08-10 Thread Caldarale, Charles R
> From: sunil chandran [mailto:sunilonweb2...@yahoo.co.in] > Subject: Re: avoiding ssl vulnerabilities in tomcat > > Is there any patch provided so that i can still use the same version > 4.1.24 itself. No, you *must* upgrade. Your reluctance to do so borders on the ridiculous. - Chuck THIS

Re: avoiding ssl vulnerabilities in tomcat

2009-08-10 Thread sunil chandran
Hello, I read the link. I found that my tomcat is 4.1.24 version. So i read that the issue is fixed in 4.1.32. Is there any patch provided so that i can still use the same version 4.1.24 itself. Is it must to upgrade? is there any patch to fix this? --- On Mon, 10/8/09, Mark Thomas wrote: From:

Re: Tomcat Comet and persistent connections

2009-08-10 Thread Filip Hanik - Dev Lists
after step 4 you should call close on the CometEvent. this way, tomcat should recycle all objects and be ready for a new request. you see, otherwise the next request would become a simple READ event (where the HTTP headers would become the body) in your case, the reason you're getting an error an

Re: method invocations in EL?

2009-08-10 Thread Mark Thomas
Tim Funk wrote: > You might be able to replace jasper-el.jar and have it work, but what > needs changed? That'll require some digging. (It might even require > changing jsp-api.jar) There is a patch in bz to enable pluggable EL implementations. It is on the todo list for 7.0.x. We'd need to look a

Re: method invocations in EL?

2009-08-10 Thread Tim Funk
You might be able to replace jasper-el.jar and have it work, but what needs changed? That'll require some digging. (It might even require changing jsp-api.jar) -Tim Jess Holle wrote: That's unfortunate. One can apparently drop this upgrade into Glassfish. I don't, however, need Glassfish -

questions on tomcat cluster

2009-08-10 Thread TianJing
Hi all, i am now setting up a cluster with a httpd-2.2.13 and two tomcat 6.0, i hope to use Session Replication,but there have some problems: the session can not replication,when a tomcat is disappeared, the session is lost. could you please give me some advices? thanks very much! here is some

Re: method invocations in EL?

2009-08-10 Thread Jess Holle
That's unfortunate. One can apparently drop this upgrade into Glassfish. I don't, however, need Glassfish -- just a servlet engine. Nor do I need most Servlet 3.0 stuff at this time. A better Tomcat 6 would be nice, though :-) Tim Funk wrote: I doubt this will be seen in tomcat 6. The clos

Re: method invocations in EL?

2009-08-10 Thread Tim Funk
I doubt this will be seen in tomcat 6. The closest you'll get are the function taglibs functionality. -Tim Jess Holle wrote: I note in http://java.dzone.com/articles/unified-el-learns-method that in JEE 6 EL finally allows method invocations. Is there any chance this feature can be used in J

method invocations in EL?

2009-08-10 Thread Jess Holle
I note in http://java.dzone.com/articles/unified-el-learns-method that in JEE 6 EL finally allows method invocations. Is there any chance this feature can be used in JSPs in Tomcat 6 today? If so, how? -- Jess Holle - To u

Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

2009-08-10 Thread fritzdimmel
Hi, I tried it with VirtualWebappLoader -- but failed (like others too): See here: http://www.nabble.com/Exception-when-deploying-with-VirtualWebappLoader-tc19858032.html Any hint? Thanks, Fritz markt-2 wrote: > > fritzdimmel wrote: >> Sorry, >> I wasn't clear enough: >> >> I'd like to have

Re: Exception when deploying with VirtualWebappLoader

2009-08-10 Thread fritzdimmel
Hi, I do have the exact same problem. Does anyone have a solution for this? Thanks! Marcus Better wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm trying to use the VirtualWebappLoader in Tomcat 6.0.18 to add a > directory to the classpath, but get a strange except

Re: issue : tomcat4 shutdown

2009-08-10 Thread Mark Thomas
sunil chandran wrote: > Hello all, >>> Do you get this exception from the shutdown process, or from the >>> runningTomcat? It looks like the running Tomcat. Does Tomcat still shut >>> down, > or do you have to kill -9 it? > I am using tomcat 4.1I get this error when tomcat is shutdown. when i giv

Re: avoiding ssl vulnerabilities in tomcat

2009-08-10 Thread Mark Thomas
sunil chandran wrote: > Hello all, > I found this issue form support team: > THREAT: > The Secure > Socket Layer (SSL) protocol allows for secure communication between a client > and > a server. The client usually authenticates the server using an algorithm > like > RSA or DSS. Some SSL ciphe

Re: avoiding ssl vulnerabilities in tomcat

2009-08-10 Thread sunil chandran
Hello all, I found this issue form support team: THREAT: The Secure Socket Layer (SSL) protocol allows for secure communication between a client and a server. The client usually authenticates the server using an  algorithm like RSA or DSS. Some SSL ciphers allow SSL communication without authen

Re: issue : tomcat4 shutdown

2009-08-10 Thread sunil chandran
Hello all, >>Do you get this exception from the shutdown process, or from the >>runningTomcat? It looks like the running Tomcat. Does Tomcat still shut down, or do you have to kill -9 it? I am using tomcat 4.1I get this error when tomcat is shutdown. when i give shutdown, it shows this message wa

Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

2009-08-10 Thread Mark Thomas
fritzdimmel wrote: > Sorry, > I wasn't clear enough: > > I'd like to have a per-webapp classpath addition. > I want to have my .properties file outside the WAR. To get this, it would be > great to have the location of my properties file in the classpath. > As I understand, in the .xml I can't ove

Tomcat Comet and persistent connections

2009-08-10 Thread Dmitry Murashenkov
Hello, we are developing a webapp and trying to use Tomcat Comet to allow asynchronous processing of requests. Somehow we have problems with persistent connections when using Comet (possibly due to some API misusage). So, the short question is: does Tomcat Comet servlets support persistent c

Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

2009-08-10 Thread fritzdimmel
Sorry, I wasn't clear enough: I'd like to have a per-webapp classpath addition. I want to have my .properties file outside the WAR. To get this, it would be great to have the location of my properties file in the classpath. As I understand, in the .xml I can't override properties from a .propert

Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

2009-08-10 Thread Mark Thomas
fritzdimmel wrote: > Hi, > Thanks a lot! This was the solution to my problem. > > I've another questions regarding WAR-specific configuration: > Is it possible to: > -) configure CLASSPATH extensions to single WAR files (maybe directly in > this config file (cont/Catalina//.xml)) Not without custo