Re: Changing request address to x-forwarded-for

2010-01-05 Thread Mark Thomas
On 06/01/2010 04:14, Mohit Anchlia wrote: > tomcat 6: > > Is it possible to inject or change remote address to what's in > x-forwaded-for in http header such that when Servlet received the > request it's already in the request.getRemoteAddress()? Otherwise > we'll need to make a urgent change to r

Configuring tomcat to release the webapp jar file handles

2010-01-05 Thread Vijay
Hi, I have a webapp that has 300 jar files bundled in WEB-INF/lib. Most of the classes in these jar files need to be loaded during the startup of the webapp. Does tomcat release the jar file handles once the class loader is done loading the classes? It does not seem to be the case. Ideally, tom

Changing request address to x-forwarded-for

2010-01-05 Thread Mohit Anchlia
tomcat 6: Is it possible to inject or change remote address to what's in x-forwaded-for in http header such that when Servlet received the request it's already in the request.getRemoteAddress()? Otherwise we'll need to make a urgent change to read from the HTTP header. We didn't realize it earlier

RE: Tomcat 5.5 root directory

2010-01-05 Thread Caldarale, Charles R
> From: File Send [mailto:file.sen...@gmail.com] > Subject: Re: Tomcat 5.5 root directory > > Any pointers ?? Look in the Tomcat logs for any messages. Show us the contents of webapps/ROOT - including permissions. Verify that the userid Tomcat is running under has at least read access to the .

Re: Tomcat 5.5 root directory

2010-01-05 Thread File Send
Thanks for explanation. I am using http://localhost:8080/hello.jsp. I kept that in $CATALINA_HOME/webapps/ROOT/ and jsp seems to be correct, however, the issue is still showing up. No modification has made to conf/web.xml and server.xml. Case is also taken care of. HTTP Status 404 - /hello.jsp ---

Re: Tomcat uses IPv6 ?

2010-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 1/5/2010 4:55 PM, Paul Campbell wrote: > lsof -i > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN) > java 13931 pwc 41u IPv6 199612 0t0 TCP

Re: Tomcat uses IPv6 ?

2010-01-05 Thread Mark Thomas
On 05/01/2010 21:55, Paul Campbell wrote: > lsof -i > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN) > java 13931 pwc 41u IPv6 199612 0t0 TCP *:8009 (LISTEN) > java 13931 pwc 42u IPv6 199

Tomcat uses IPv6 ?

2010-01-05 Thread Paul Campbell
lsof -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN) java 13931 pwc 41u IPv6 199612 0t0 TCP *:8009 (LISTEN) java 13931 pwc 42u IPv6 199616 0t0 TCP localhost.localdomain:mxi (LISTE

Re: confirm unsubscribe from users@tomcat.apache.org

2010-01-05 Thread Geek
On Tue, Jan 5, 2010 at 6:12 PM, Jean-Rene David wrote: > * users-h...@tomcat.apache.org [2010.01.05 16:10]: > > Hi! This is the ezmlm program. I'm managing the > > users@tomcat.apache.org mailing list. > > > > I'm working for my owner, who can be reached > > at users-ow...@tomcat.apache.org. > >

Re: Help with security-constraint in web.xml

2010-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 1/4/2010 6:45 PM, Joe Hansen wrote: > I just forgot to enable the HTTPS Connector! Login form is working now > over https. > > redirectPort="8443" /> > > maxThreads="150" scheme="https" secure="true" > clientAuth="false" sslProtocol

RE: Tomcat 5.5 root directory

2010-01-05 Thread Caldarale, Charles R
> From: File Send [mailto:file.sen...@gmail.com] > Subject: Re: Tomcat 5.5 root directory > > Yes, I have default server.xml but I don't see > $CATALINA_BASE/webapps/ROOT anywhere. For a default Tomcat installation, CATALINA_BASE == CATALINA_HOME; the only time the two are different is if you're

Re: ClassCastException in tomcat 6

2010-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/5/2010 2:56 AM, Peter Crowther wrote: > 2010/1/5 test123456 > >> I put the jackrabbit.war file into the webapps. >> >> I have a new test project which will access the jackrabbit.war through the >> JNDI lookup. >> >> In server.xml i have

Re: Tomcat 5.5 root directory

2010-01-05 Thread File Send
Thanks for reply. Yes, I have default server.xml but I don't see $CATALINA_BASE/webapps/ROOT anywhere. Can you please suggest what specific configuration i can set in server.xml. I am putting my page in $CATALINA_HOME/webapps/ROOT/ but it does not detect it and gives me following error, however, i

Re: confirm unsubscribe from users@tomcat.apache.org

2010-01-05 Thread Jean-Rene David
* users-h...@tomcat.apache.org [2010.01.05 16:10]: > Hi! This is the ezmlm program. I'm managing the > users@tomcat.apache.org mailing list. > > I'm working for my owner, who can be reached > at users-ow...@tomcat.apache.org. > > To confirm that you would like > >jrda...@magma.ca > > remove

RE: Pipelining Problem after Form Authentication with Firefox andStatus Code 408

2010-01-05 Thread Caldarale, Charles R
> From: Kris Reid [mailto:krisrei...@gmail.com] > Subject: Re: Pipelining Problem after Form Authentication with Firefox > andStatus Code 408 > > Did you find a solution? I've got the same issue Please don't resurrect very dead threads, especially one dealing with unsupported products (Tomcat 5.

Re: Pipelining Problem after Form Authentication with Firefox and Status Code 408

2010-01-05 Thread Kris Reid
Did you find a solution? I've got the same issue Derek-52 wrote: > > Hello, > > I have some troubles with firefox and form authentication running on > Tomcat 5.0.28. > It happens as followed: > > User requests restricted Page and is redirected to a LoginServlet > which forwards the reque

JEE 6 with Tomcat 6

2010-01-05 Thread Mondain
Anyone out there using JEE 6 with Tomcat 6 (specifically Embedded)? I tried it out in Red5 but it would seem that the latest javaee6-api jar doesn't include implementations of HttpServlet and most likely other classes. I really don't want to use Glassfish but I do want to use Global JNDI in JEE 6,

RE: Comet and thread binding

2010-01-05 Thread Joseph Morgan
Sounds to me you simply need to create a POJO to contain the execution context state (and definitely not static variables beyond that to support the singleton pattern). You could most simply use a HashMap, but there is a stronger argument around semantics for creating a POJO to hold that state. T

Comet and thread binding

2010-01-05 Thread tbee
I often use (abuse?) the fact that a single thread is used to completely handle a request, by binding objects to the thread. Not all code down the line of a request is aware that it is running inside a web server. I have utility classes that are used in standalone applications and web application

Re: Load balancing questions

2010-01-05 Thread assan alhamoud
Hello , *In Server.xml for Tomcat I have the following values* *and in workers.properties I have the following values* * * worker.server1.port=42510 worker.server1.host=X.X.X.X worker.server1.type=ajp13 worker.server1.lbfactor=1 worker.server1.connect_timeout=1 worker

Re: mod_jk: The worker pick order/scope when sticky_session=false and clusters are grouped by worker.domain

2010-01-05 Thread Rainer Jung
On 05.01.2010 09:44, LiuYan 刘研 wrote: I'm currently learning Tomcat clustering these days. I setup 4 Tomcat-6.0.22 instances in Windows XP: server1, server2, server3, server4 cluster1: server1& server2 (228.0.0.4:45564) cluster2: server3& server4 (228.0.0.4:45566) Apache/2.2.14(win32) is the

mod_jk: The worker pick order/scope when sticky_session=false and clusters are grouped by worker.domain

2010-01-05 Thread LiuYan 刘研
I'm currently learning Tomcat clustering these days. I setup 4 Tomcat-6.0.22 instances in Windows XP: server1, server2, server3, server4 cluster1: server1 & server2 (228.0.0.4:45564) cluster2: server3 & server4 (228.0.0.4:45566) Apache/2.2.14(win32) is the frontend. mod_jk-1.2.28 is the connecto