Re: different jsessionid for different webapps

2009-01-24 Thread Pid
Christopher Schultz wrote: Pid, Pid wrote: Stefano Nichele wrote: Hi All, I have a strange (for me?) requirement for my application. Basically I have webapp A deployed in Tomcat A and webpp B deployed in Tomcat B. webappA is the main webapplication that provides the main web page to the

Forward request from apache to specific web application

2009-01-24 Thread Salalam
I think my problem is very common, but I didn't find a solution. I have Tomcat 5.5 with a web application. Let's say this application is deployed in the context 'mywebapp'. I can call the application with the url http://mydomain.com:8080/mywebapp. But now i want to call the application via

Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
I am using Tomcat 6.0.18 with JDK 1.5.0_17 on CentOS 5. I am getting a compiling error on the following code in a jsp page that uses an inner class. I remember I used to be able to do this with a different container (implementing JSP 1.2 and JDK 1.4). %! private class Test { String

Re: TCP connections and HTTP sessions

2009-01-24 Thread David Smith
tovaldez wrote: On Friday 23 January 2009 20:04:40 Christopher Schultz wrote: tovaldez wrote: Hi, monitoring our webapp while running load testing, I noticed that the number of the effective users browsing the site is more than the number of opened sockets in ESTABLISHED state (while

Re: Inner class trouble in JSP

2009-01-24 Thread Jonathan Mast
I can't help with the inner class issue other than to say that perhaps you should move away from using inner classes in JSP totally. I don't understand how you are using these inner classes, could you please explain? On Sat, Jan 24, 2009 at 1:32 PM, Qiao Jin bra...@gmail.com wrote: I am

Re: Forward request from apache to specific web application

2009-01-24 Thread fredk2
hi, in your tomcat server's webapp directory create a directory ./ROOT (in caps) and copy your application in there. Then restart tomcat. In the workers.properties set the JkMount /* see: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html Alternatively you can set the context

RE: Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
Here is an example, a menu header JSP included in various pages: %! class MenuItem { String pageURL; String text; MenuItem(String url, String t) { this.pageURL = url; this.text

Re: Inner class trouble in JSP

2009-01-24 Thread Konstantin Kolinko
2009/1/24 Qiao Jin bra...@gmail.com: I am using Tomcat 6.0.18 with JDK 1.5.0_17 on CentOS 5. I am getting a compiling error on the following code in a jsp page that uses an inner class. I remember I used to be able to do this with a different container (implementing JSP 1.2 and JDK 1.4).

Re: Question abut CometProcessor EventSubType.TIMEOUT semantics

2009-01-24 Thread Filip Hanik - Dev Lists
are you calling response.flushBuffer() to flush your data? that is probably what you are missing David Boreham wrote: I'm re-writing an application to use the CometProcessor interface. Generally things are working but despite several late evenings single-stepping through the connector code,

Re: [OT] run tomcat as tomcat user

2009-01-24 Thread André Warnier
Rusty Wright wrote: I love shell script hacks so my /etc/init.d/tomcat script has the following in the upper part where it's setting variables: TOMCAT_HOME=`grep ^tomcat /etc/passwd | sed -e 's/.*:.*:.*:.*:.*:\(.*\):.*/\1/'` You love shell scripts, but don't seem to love regexp's.

Re: TCP connections and HTTP sessions

2009-01-24 Thread André Warnier
tovaldez wrote: [...] Actually HTTP sessions effective users, since each user has a 10 minutes simulated navigation but the HTTP session is lasting a lot more (I think 1 hour by default in tomcat). What I thought was that using HTTP 1.1, I would have only 1 phisical connection to the

Re: Forward request from apache to specific web application

2009-01-24 Thread André Warnier
Salalam wrote: I think my problem is very common, but I didn't find a solution. I have Tomcat 5.5 with a web application. Let's say this application is deployed in the context 'mywebapp'. I can call the application with the url http://mydomain.com:8080/mywebapp. But now i want to call the

RE: TCP connections and HTTP sessions

2009-01-24 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: TCP connections and HTTP sessions Some proxies/firewalls etc.. may even apparently use a single TCP connection to the back-end server, to serve requests from different clients. I've never seen that, and it would be a serious breach

Re: TCP connections and HTTP sessions

2009-01-24 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: TCP connections and HTTP sessions Some proxies/firewalls etc.. may even apparently use a single TCP connection to the back-end server, to serve requests from different clients. I've never seen that, and it

RE: TCP connections and HTTP sessions

2009-01-24 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: TCP connections and HTTP sessions I believe it might have been in some discussion relative to HTTP NTLM authentication You may have been looking at some discussion concerning the jCIFS NTLM filter, which has some serious problems and

Re: [OT] TCP connections and HTTP sessions

2009-01-24 Thread André Warnier
Caldarale, Charles R wrote: You may have been looking at some discussion concerning the jCIFS NTLM filter, which has some serious problems and is scheduled to be replaced by a completely different mechanism in the next release of jCIFS. (Which is good, since the current one has no end of

RE: How to have multiple loggers with shared code also using the logger?

2009-01-24 Thread removeps-groups
Here's an update on the logger issue. It too me long to figure out because I ran into an issue about privileged servlets and had to write my own log4j.properties parser. The original code posted earlier in this thread works in that it creates a different logger for web application, and allows

RE: [OT] TCP connections and HTTP sessions

2009-01-24 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] TCP connections and HTTP sessions Could you elaborate on that, or point me somewhere, maybe in another thread ? Look in the jCIFS mailing list archive: http://news.gmane.org/gmane.network.samba.java Mike is getting very

Re: [OT] run tomcat as tomcat user

2009-01-24 Thread Rusty Wright
Thanks; good point about the speedup by not using .* (although since this is in a boot script, in this case it shouldn't really matter much). The \( \) is the grouping thing where what matches in it is then substituted for as the \1 on the right hand side. Cut is one of those commands I

RE: Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
Thanks for pointing this out. This article makes it very clear: http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html Qiao -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Saturday, January 24, 2009 12:55 PM To: Tomcat Users List Subject: Re: