Re: How to spawn child processes.

2010-08-23 Thread André Warnier
Wesley Acheson wrote: On Mon, Aug 23, 2010 at 10:56 PM, André Warnier 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 thre

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 10:56 PM, André Warnier 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 be used.

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: users-h...@tomcat.apach

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)

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 wrote: > Awesome dude (that you submitted the patch so quick - I've not looked at > it in detail yet).  Thanks! > > -Original Message- > From:

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 - de

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 JSESSION

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 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 correct pl

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.

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 6:28 PM, Caldarale, Charles R 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 threads; instead al

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. > > "Certain J2EE/JEE applications (for instance those running in EJB and > Web containers) must not spawn new threads; instead all work should be > performed on the main application threads manag

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 t

TCP clustering without multicast

2010-08-23 Thread Bob Smith
Hey all, Can someone point me to a sample config file showing a simple two node tomcat 6 cluster communicating via TCP not using multicast at all? I'm having trouble finding detailed documentation on this subject. I searched the archives but didn't see much. Thank you!

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

2010-08-23 Thread Sébastien PRUNIER
Thanks a lot for your help, it works properly now !! (I added address="0.0.0.0" in the server.xml) On Mon, Aug 23, 2010 at 5:31 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com] > > Subject: Re: java.net.ConnectException

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 [mailto:sebastien.prun

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 80

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 i

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 i

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

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

2010-08-23 Thread Sébastien PRUNIER
A) 1) you downloaded and installed Tomcat 5.5.28, from the Tomcat website at http://tomcat.apache.org -> YES 2) which one of the Tomcat packages did you download and install ? the zip version, or the installer .exe version ? -> ZIP version 3) to which directory did you install it ? -> C:\developp

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 5:02 PM, 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 curious - where in any of the Java

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. Man

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: 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 the

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: How to spwan child processes.

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

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 t

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: 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 enabl

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 URL("http://localhost:80

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 w

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. Thi

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 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 problem in your code,

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. _

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 expe