Re: Feedback Requested: Proposed CLI Tool for Apache Tomcat; kitty.

2010-08-23 Thread msacks
Yes, +1 On Thu, Aug 19, 2010 at 7:13 AM, Jim Jagielski j...@jagunet.com wrote: Any interest in the code moving to the ASF incubator? On Aug 16, 2010, at 4:06 PM, Networked wrote: Elevator pitch Myself and Peary Chiu have created a lightweight utility for administering Tomcat from the

failed FORM authentication redirects to /j_security_check

2010-08-23 Thread Shaun Senecal
I'm using FORM authentication, and everything seems to be working (logins are accepted, etc), except when there was an error the URL changes in the users browser to point to j_security_check. The contents of the redirect to j_security_check contains login.html, so the user is able to login as

Re: Sessions mix-up on Tomcat 6.0.26 on Linux

2010-08-23 Thread Yawar Khan
Felix, the issue still persists, i dont know what else to do? and i dont know why this issue is popping up on linux enviroment only. under windows there is no session mixup issue. Now this are no class wide variables and i had moved them inside the login function.

Re: Sessions mix-up on Tomcat 6.0.26 on Linux

2010-08-23 Thread Felix Schumacher
On Mon, 23 Aug 2010 01:56:31 -0700 (PDT), Yawar Khan khanya...@yahoo.com wrote: Felix, the issue still persists, i dont know what else to do? and i dont know why this issue is popping up on linux enviroment only. under windows there is no session mixup issue. Well, you have fixed one

Re: Sessions mix-up on Tomcat 6.0.26 on Linux

2010-08-23 Thread André Warnier
Yawar Khan wrote: Felix, the issue still persists, i dont know what else to do? and i dont know why this issue is popping up on linux enviroment only. under windows there is no session mixup issue. Now this are no class wide variables and i had moved them inside the login function. Hi.

java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
The following piece of code generates a java.net.ConnectException: Connection refused: connect error : URL url = new URL(http://localhost:8080/myapp/mypage.jsp;); url.openStream(); It crashes with Tomcat 5.5.30 but it works with Tomcat 5.5.28. The Tomcat server is started and the HTTP link

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com] Subject: java.net.ConnectException when attempting to open URL via Java code The following piece of code generates a java.net.ConnectException: Connection refused: connect error : URL url = new

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
JVM version : 1.6.0_20 Platform : Windows VISTA Pro / SP2 Does netstat show Tomcat listening on port 8080 : YES Is localhost resolvable from inside the JVM ? : YES. Moreover, the same error occurs with the IP address or the hostname instead of localhost. What's in the Tomcat logs when you

How to spwan child processes.

2010-08-23 Thread Wesley Acheson
Hi, As far as I'm aware your not supposed to extend Thread in JEE. I've seen similar questions on Stack Overflow where it was suggested you may use your containers Thread pool. This sounds like a terrible idea for portability. So take the following example. 1 A request for something specific is

Re: How to spwan child processes.

2010-08-23 Thread Ronald Klop
class OtherAppNotifier implements Runnable { public void run() { ... doe something... } } In your servlet: doGet() { processUserRequest(); new Thread(new OtherAppNotifier()).start(); } You can also use java.util.TimerTask or some other threadpool thing if this spawns too many

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 4:27 PM, Ronald Klop ronald-mailingl...@base.nl wrote: class OtherAppNotifier implements Runnable {  public void run() {      ... doe something...  } } In your servlet: doGet() {   processUserRequest();   new Thread(new OtherAppNotifier()).start(); } Thats my

Tomcat 6.0.29 - deadlocks when loading shared classes

2010-08-23 Thread Milo Meerkat
Hi, Setup: - Debian GNU/Linux - Java 1.6.0_21-b06 - Tomcat http://www.coderanch.com/forums/f-56/Tomcat 6.0.29 I got the error below when upgrading tomcat 5.5.29 to tomcat 6.0.29. When we upgraded we noticed that tomcat 6 does not like if we have a xerces implementation in each webapp in

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread André Warnier
Sébastien PRUNIER wrote: JVM version : 1.6.0_20 Platform : Windows VISTA Pro / SP2 Does netstat show Tomcat listening on port 8080 : YES Is localhost resolvable from inside the JVM ? : YES. Moreover, the same error occurs with the IP address or the hostname instead of localhost. What's in

RE: How to spwan child processes.

2010-08-23 Thread Caldarale, Charles R
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm curious - where in any of the Java EE specs did you come across that? Questions: 1 Should this be

RE: How to spwan child processes.

2010-08-23 Thread Joseph Morgan
Charles... in his defense (though I'm not saying he shouldn't understand the spec), this actually stems from a series of misunderstandings, mostly brought on by poser authors, grad and teach college professors, and instructors who regurgitate slides rather than actually knowing anything. Many a

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 5:02 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm curious - where in

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
When I run netstat -a, I can see the following line : ... TCP[::1]:8080 PC-d-CE:64433 TIME_WAIT ... What does it mean ? On Mon, Aug 23, 2010 at 5:23 PM, Sébastien PRUNIER sebastien.prun...@gmail.com wrote: A) 1) you downloaded and installed Tomcat 5.5.28, from the

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com] Subject: Re: java.net.ConnectException when attempting to open URL via Java code 3) if it was the zip version, to which directory did you install it ? - C:\developpement\tomcat\apache-tomcat-5.5.30 4) how do you start it ? -

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com] Subject: Re: java.net.ConnectException when attempting to open URL via Java code When I run netstat -a, I can see the following line : ... TCP[::1]:8080 PC-d-CE:64433 TIME_WAIT ... What does it mean ?

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: java.net.ConnectException when attempting to open URL via Java code It means Tomcat is listening on IPv6, but not IPv4. I don't know why this happens, but you can change your conf/server.xml to add an address=0.0.0.0 attribute to the port 8080

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, August 23, 2010 10:34 AM To: Tomcat Users List Subject: RE: java.net.ConnectException when attempting to open URL via Java code From: Sébastien PRUNIER

Re: Tomcat 5.5.23 request.getAttribute(foo) returns unexpected NULL

2010-08-23 Thread Thomas Treitlinger
Hello Chris and Konstantin, thanks for all your suggestions - we finally tracked down the issue, and it turns out the root cause here was a flawed deployment process. In order to preserve the application's context.xml file during software upgrades, our service engineers stop Tomcat, then remove

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 6:28 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Certain J2EE/JEE applications (for instance those running in EJB and Web containers) must not spawn new

RE: How to spwan child processes.

2010-08-23 Thread Caldarale, Charles R
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Sorry I don't even know where the specs live. I thought I saw it on sun some time ago but can't find it. I usually search by JSR number. If I've offended you in some way then I'm sorry. Not

Re: Is there a better way to disable JSESSIONID in the URLs?

2010-08-23 Thread Wesley Acheson
https://issues.apache.org/bugzilla/show_bug.cgi?id=49811 On Sun, Aug 22, 2010 at 5:55 PM, Mark Thomas ma...@apache.org wrote: On 22/08/2010 16:29, Wesley Acheson wrote: Sorry for bring this off list. I'll put it back on list if you think that appropriate. You think that the context is the

RE: Is there a better way to disable JSESSIONID in the URLs?

2010-08-23 Thread Scott Hamilton
Awesome dude (that you submitted the patch so quick - I've not looked at it in detail yet). Thanks! -Original Message- From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Sent: Monday, August 23, 2010 2:33 PM To: Tomcat Users List Subject: Re: Is there a better way to disable

RE: Tomcat 6.0.29 - deadlocks when loading shared classes

2010-08-23 Thread Scott Hamilton
Can you also include the dump of the thread that is holding the lock? In other words, what's the other half of the deadlock? -Original Message- From: Milo Meerkat [mailto:milo.meer...@gmx.com] Sent: Monday, August 23, 2010 10:53 AM To: users@tomcat.apache.org Subject: Tomcat 6.0.29 -

Re: Is there a better way to disable JSESSIONID in the URLs?

2010-08-23 Thread Wesley Acheson
Yeah don't get too hopeful. I'm not that familiar with the tomcat code, however I think it works. On Mon, Aug 23, 2010 at 8:59 PM, Scott Hamilton scott.hamil...@plateau.com wrote: Awesome dude (that you submitted the patch so quick - I've not looked at it in detail yet).  Thanks!

Re: How to spwan child processes.

2010-08-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 8/23/2010 11:02 AM, Caldarale, Charles R wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm

Re: How to spwan child processes.

2010-08-23 Thread André Warnier
and can someone finally explain what spwaning child processes means ? What are you all doing to these kids ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 10:56 PM, André Warnier a...@ice-sa.com wrote: and can someone finally explain what spwaning child processes means ? What are you all doing to these kids ? I apologise about the typo and I deliberately didn't want to use the term Threads as I was unsure if threads should