Redeploy leaks

2008-12-19 Thread Adriano dos Santos Fernandes
Hi! As I had having OutOfMemory exceptions (PermGen) when redeploying an application, I started to verify things using Eclipse Memory Analyzer. I've discovered some real leaks, for example caused by the Java Disposer thread being instantiated using the Webapp classloader. After fix this, whe

Re: Problems with JK connector and IIS5 and tomcat 6

2008-12-19 Thread wyndrise
Bill Barker-2 wrote: > > The error is harmless (other than taking up disk space). It just says > that > the user aborted before the page was fully loaded. > The error is not necessarily harmless. The connection is being broken before the transaction is complete. Tomcat tries to write to wh

RE: Tomcat 5.0 on IBM JVM 1.5

2008-12-19 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Tomcat 5.0 on IBM JVM 1.5 > > Now I am wondering whether it is worth trying to "fix" the existing > Tomcat 5.0 Suse package to have it use the Sun JDK 1.6, and get rid of > the IBM JVM, or whether I should just leave well-enough alone and ke

RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: HelloWorld servlet, or just about > > I would basically need only a response with > > HTTP status line > MyHeader: johnsmith So take the code I posted, rip out all the HTML stuff, and just send the text of the userid. Since it doesn't

Tomcat 5.0 on IBM JVM 1.5

2008-12-19 Thread André Warnier
Hi. On a customer Suse Enterprise Linux system I have inherited a Tomcat 5.0, running on an IBM JVM 1.5. It runs, but the Tomcat packagers of Suse seem to have even more delight with softlinks than the Debian ones. (The common/lib and shared/lib have several hundred of them, never mind the usu

Re: HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
André Warnier wrote: peter_f...@blm.gov wrote: Actually this is very easy; when you want to pass the request down the chain (i.e. into the servlet) you call the chain.doFilter() method. When you *don't* want the request passed on, your filter just sets up the response (status, header, etc.) and

Re: HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
peter_f...@blm.gov wrote: Actually this is very easy; when you want to pass the request down the chain (i.e. into the servlet) you call the chain.doFilter() method. When you *don't* want the request passed on, your filter just sets up the response (status, header, etc.) and returns. Thanks, th

Re: HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
André Warnier wrote: [...] Ok, let me explain why I asked these simplistic questions, not that you would think me gaga. I use a non-conventional database application, which wants a user-id as the content of a HTTP request header. Say DBUID: johnsmith To provide an SSO solution for that appl

RE: WIR MACHEN FERIEN

2008-12-19 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: WIR MACHEN FERIEN > > Am I the only one being subjected to this, or is it a general thing ? It's general. Stupid bloody auto-responders. Using one is often grounds for removal from the list, at least temporarily. - Chuck THIS COMMUNI

RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: HelloWorld servlet, or just about > > I'm sorry, but that does not match the specs AT ALL. > I specifically asked that the response should be > plain text, and just the userid. Hmmm... I think you're starting to believe your 11 rules...

WIR MACHEN FERIEN

2008-12-19 Thread André Warnier
Am I the only one being subjected to this, or is it a general thing ? Apparently someone has put the Tomcat list on his holiday auto-reply list, and I get a reply to each message I post on the list. - To unsubscribe, e-mail: us

Re: HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
I'm sorry, but that does not match the specs AT ALL. I specifically asked that the response should be plain text, and just the userid. t. ;-) Thanks, Chuck. Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: HelloWorld servlet, or just about Better yet (bu

RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: HelloWorld servlet, or just about > > Better yet (but I don't want to abuse your patience), just paste the > code right here below : package myPackage; import java.io.IOException; import java.io.PrintWriter; import java.security.Principal;

Re: HelloWorld servlet, or just about

2008-12-19 Thread Peter_Ford
Actually this is very easy; when you want to pass the request down the chain (i.e. into the servlet) you call the chain.doFilter() method. When you *don't* want the request passed on, your filter just sets up the response (status, header, etc.) and returns. André Warnier wrote on 12/19/2008 02:50

Re: HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
Ken Bowen wrote: Of course, Google is your friend: Results 1 - 10 of about 237,000 for hello world servlet. (0.23 seconds) :-) Yeah, I got that too. That's the problem though : which one to choose ? Never mind, and apologies, I think I'll use the first one : package test; import java.

Re: HelloWorld servlet, or just about

2008-12-19 Thread Serge Fonville
On Fri, Dec 19, 2008 at 10:35 PM, André Warnier wrote: > Dear experts, > > I love Tomcat, and I find all the people on this list kind, helpful, in > short marvelous. > > I have dabbled in servlet filters before, but I never wrote an actual > servlet. And now I need to write the tiniest of one. >

Re: HelloWorld servlet, or just about

2008-12-19 Thread Ken Bowen
Of course, Google is your friend: Results 1 - 10 of about 237,000 for hello world servlet. (0.23 seconds) :-) On Dec 19, 2008, at 4:35 PM, André Warnier wrote: Dear experts, I love Tomcat, and I find all the people on this list kind, helpful, in short marvelous. I have dabbled in s

HelloWorld servlet, or just about

2008-12-19 Thread André Warnier
Dear experts, I love Tomcat, and I find all the people on this list kind, helpful, in short marvelous. I have dabbled in servlet filters before, but I never wrote an actual servlet. And now I need to write the tiniest of one. It just needs to return, as plain text, not "Hello World", but t

RE: java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener

2008-12-19 Thread Caldarale, Charles R
> From: Ole Ersoy [mailto:ole.er...@gmail.com] > Subject: java.lang.NoClassDefFoundError: > org.apache.catalina.mbeans.ServerLifecycleListener > > 19-Dec-08 2:39:58 PM org.apache.tomcat.util.digester.Digester > startElement > SEVERE: Begin event threw error > java.lang.NoClassDefFoundError: > org.a

java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener

2008-12-19 Thread Ole Ersoy
Hi, I'm attempting to install Tomcat 6.0.18 on Linux. Right now I'm getting this: 19-Dec-08 2:39:58 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener at java.lang.Class.i

RE: Optimized memory Parameter in Tomcat.

2008-12-19 Thread kashif_tomcat
Peter, System is 32 bit. i want to change memory parameters. what i feel is that 1GB(min) and 2GB(max) is very high value. but i can't test it by "hit and try" coz its our production server. i have used 5 times heavier application then this one with 200mb (min) and 3.5G( maxm) parameters and it

RE: Optimized memory Parameter in Tomcat.

2008-12-19 Thread kashif_tomcat
Peter, System is 32 bit. i want to change memory parameters. what i feel is that 1GB(min) and 2GB(max) is very high value. but i can't test it by "hit and try" coz its our production server. i have used 5 times heavier application then this one with 200mb (min) and 3.5G( maxm) parameters and it

Re: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Mikolaj Rydzewski
André Warnier wrote: Well, user1 should not leave his window open when he goes off to drink a coffee. Unless he locks workstation when not in use. No, not in the closet, e.g. with password protected screensaver ;-) -- Mikolaj Rydzewski

Re: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Ingmar Lötzsch
Hello, you can use the Sevlet API. First call invalidate() on the actual HttpSession instance and then getSession(true) on the request object (HttpServletRequest) to start a new session. Nicolas Romantzoff schrieb: > Thats a problem in your server code... > > Session is binded to a connection (b

RE: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Nicolas Romantzoff
Thats a problem in your server code... Session is binded to a connection (browser session) basically, not a machine. If you open a second browser (or a second tab) you should get a different session-id. Don't use JSESSIONID in url parameters, but in session cookie (unless you need to cross protoco

RE: Optimized memory Parameter in Tomcat.

2008-12-19 Thread Peter Crowther
> From: kashif_tomcat [mailto:kas...@vopium.com] > our Tomcat 6 server is running on a RHL machine with 4 GB Ram. 32-bit or 64-bit OS? > JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M -XX:PermSize=128m > -XX:MaxPermSize=128m" You probably want to make -Xms and -Xmx the same. There's no point fragmen

Re: Optimized memory Parameter in Tomcat.

2008-12-19 Thread Ronald Klop
This totally depends on what your application does. So nobody on this list can say something about it based the information you give. 2GB is quite a lot of memory, so I think your application has plenty of memory unless it is a very memory hungry program. On 32 bits machines 2GB is a maximum am

Re: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Vishnu Vardhana Reddy
well .that true but we cant say it to customer ..they do how they like .but we have to restrict it .. thats is i want ..if user forgot to logout ..that case .. awarnier wrote: > > Vishnu Vardhana Reddy wrote: >> hi all, >> >> I am using Mozilla browser to access my web application.User one acce

Re: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread André Warnier
Vishnu Vardhana Reddy wrote: hi all, I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 cre

Optimized memory Parameter in Tomcat.

2008-12-19 Thread kashif_tomcat
Hi All, Hope all are fine and enjoying best of health... thats good to know :D Here is my question. our Tomcat 6 server is running on a RHL machine with 4 GB Ram. i have adjusted memory parameters as JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M -XX:PermSize=128m -XX:MaxPermSize=128m" server i

how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Vishnu Vardhana Reddy
hi all, I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 credentials .user 2 also can acce

Re: [SECURITY] CVE-2008-2938 - Apache Tomcat information disclosure vulnerability - Update 2

2008-12-19 Thread Mark Thomas
Gregor Schneider wrote: > Hi Mark, > > that means, if I haven't set > > "URIEncoding" and "useBodyEncodingForURI" within my connectors at all, > I'm well off since the defaults are ISO-8859-1 and "false", correct? Correct. With those settings you have nothing to worry about (for this vulnerabili

Re: Problem with security permissions and access denied page for ldap users

2008-12-19 Thread an...@iguanait.com
Any suggestions about my problem? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Installation apache tomcat

2008-12-19 Thread Peter Crowther
> From: Vida Luz Arista [mailto:vida.ari...@ideay.net.ni] > I downloaded the version apache-tomcat-6.0.18-src, I follow > step by step the > instructions, when I executed ant download, the following erro occur > > > > BUILD FAILED > > /opt/apache-tomcat-6.0.18-src/build.xml:701: The following > err

Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-19 Thread TiredMan
Hassan Schroeder-2 wrote: > > On Tue, Dec 16, 2008 at 9:59 AM, TiredMan wrote: > >> "The page cannot be found" message in IE when i go to >> http://webdomain.com > > You would be better off using Firefox with the Web Developer and > Firebug plugins to get better error messages, but... > >>