Howto get Port in HttpServlet#init(ServletConfig)?

2005-02-25 Thread Patrick Wunderlich
Hey Tomcat Fans, is there a programmatically way to get the Http-Port in the HttpServlet#init(ServletConfig) method? Kind Regards, Patrick Wunderlich (Germany) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Hyperthreading and Java (was RE: Tale of two servers)

2005-02-25 Thread Peter Crowther
From: Graham Reeds [mailto:[EMAIL PROTECTED] Also disable HyperThreading in the BIOS on the new Dell. HT and Java is not a happy combination. Interesting... do you have any recommended reading on that, Graham? - Peter

Re: how to harden tomcat?

2005-02-25 Thread Michael Echerer
Hi, One thing to look out for would be the use of JNI i.e. native calls. I'm not sure if there is a way of preventing someone from packaging a .so in a WAR and then loading it in to the app via code to bypass the lack of LD_LIBRARY_PATH (on *nix). didn't try it myself, but I guess

Tomcat 5.5.7 using builtin JDBC connection pool, can't access 'real' connection - accessToUnderlyingConnectionAllowed=true

2005-02-25 Thread Bernd Bartke
Hi there, did anybody manage to access the underlying 'real' database connection? I have got to use the PostgreSQL LargeObject API and therefore I need access to the delegated connection. But after several hours of trial and error I lost my motivation ... It seems like: - doesn't do anything:

Re: How to send hidden variables to next page

2005-02-25 Thread BV Karthik
laxmi, For the table issue you need to use DHTML along with Javascript. there will be some sample code available in the net. else hit about.javascript.com BVK On Thu, 24 Feb 2005 22:44:15 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote: Thanks David for the info. Sure to do some reading. I

Multiple mappings to same servlet query

2005-02-25 Thread Varley, Roger
Hi I know that if I have multiple mappings to the same servlet, then I get two seperate objects instantiated. However, where does the engine instantiate the copy from? For example, I want to run two copies of the same servlet with different URLs, one in test mode, one in live mode. I was

Re: How to send hidden variables to next page

2005-02-25 Thread David da Guia Carvalho
I dont know but looks like you are doing somethings wrong... hidden fildes are a great choice... better them use GET method... About the table think... use Iframe and do a submit to it... Whem you submit you use normal submit button or javascript??? If you are submiting with normal button try to

Apache 1.3 + mod_jk: Segmentation fault

2005-02-25 Thread Rodrigo Avila
Hi! Does anyone see this error in Apache error_log? [...] child pid 6645 exit signal Segmentation fault (11) It only happen when I use mod_jk 1.2.8 compiled by me (./configure--with=apxs=/usr/sbin/apxs; make; make install), using the instructions at

Re: Very Straneg problem with MySQL-Connector

2005-02-25 Thread monkiboy
Thank you very much for the explanation ! I am starting to understand it much better. Thank you everybody - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 25, 2005 1:20 AM Subject: Re: Very

Re: Starting up Tomcat when the Linux starts up

2005-02-25 Thread David Smith
There should be an example tomcat5.sh with your distribution of jsvc. If not, download the most recent release from the Commons Daemon project at jakarta.apache.org and get a copy from there. Customize it with the options you use and you should be good to go. Splitting out put between

SSL Client authentication against MemoryRealm

2005-02-25 Thread Jesus De Oliveira
Hi, The SSL client authentication doesn't work agains MemoryRealm, because the authentication mechanism passes the DN of the client certificate to the realm after validation for role assignement, but the memory realm don't allow usernames that contains , or = characters. Because the DN contains

Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Scott Sauyet
I apologize for not doing as much homework as usual before posting a question. Google turned up nothing helpful, the mailing list archive search isn't working right now, and we're (of course) in a hurry. We've had Tomcat 5.0.19 working on a number of Windows machines for a while, running on

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Jason Bainbridge
On Fri, 25 Feb 2005 09:23:29 -0500, Scott Sauyet [EMAIL PROTECTED] wrote: I apologize for not doing as much homework as usual before posting a question. Google turned up nothing helpful, the mailing list archive search isn't working right now, and we're (of course) in a hurry. We've had

Re: Apache 1.3 + mod_jk: Segmentation fault

2005-02-25 Thread Mladen Turk
Rodrigo Avila wrote: Hi! [...] child pid 6645 exit signal Segmentation fault (11) It only happen when I use mod_jk 1.2.8 compiled by me I use Apache 1.3.33 (slackware package found at www.linuxpackages.net) and Tomcat 5.0.28 (binary distribution). Do you have ForwardDirectories enabled? Remove

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Scott Sauyet
Jason Bainbridge wrote: On Fri, 25 Feb 2005 09:23:29 -0500, Scott Sauyet [EMAIL PROTECTED] wrote: We've had Tomcat 5.0.19 working on a number of Windows machines for a while, running on Win2K and WinXP under j2sdk1.4.2_04 Yesterday we had to install it on a Windows Server 2003 machine, and it's

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Mladen Turk
Scott Sauyet wrote: Jason Bainbridge wrote: The Apache Tomcat service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service. I'm not finding anything in the Tomcat logs, which makes

Re: Apache 1.3 + mod_jk: Segmentation fault

2005-02-25 Thread Rodrigo Avila
On Fri, 25 Feb 2005 16:19:23 +0100, Mladen Turk [EMAIL PROTECTED] wrote: Do you have ForwardDirectories enabled? Remove 'JkOptions ForwardDirectories' and there shouldn't be segfaults any more. This has been fixed in the cvs, and will not be present in next release scheduled for next month.

Re: Apache 1.3 + mod_jk: Segmentation fault

2005-02-25 Thread Mladen Turk
Rodrigo Avila wrote: On Fri, 25 Feb 2005 16:19:23 +0100, Mladen Turk [EMAIL PROTECTED] wrote: Do you have ForwardDirectories enabled? Remove 'JkOptions ForwardDirectories' and there shouldn't be segfaults any more. This has been fixed in the cvs, and will not be present in next release scheduled

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread John Najarian
Hi, I had a similar problem on winblows 2000 server a while ago, I had installed tomcat to ...\Tomcat 4.1\ and I had to reinstall it to ...\Tomcat_4.1\ and all worked fine. On winblows, spaces in variables in CLASSPATH, PATH... tend to cause problems and the killer is, not on every

Re: Someone is using Tomcat for spreading spam?

2005-02-25 Thread Jeanne Case
Yes, -J Behrang Saeedzadeh wrote: Hi I get spam message from Tomcat's mailing list? Is anybode else having this problem either? I just recieved a message that had the same title as my last message with a Re: appended to it. Does anybody else also recieved this message? It's something from Harvard

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Scott Sauyet
Mladen Turk wrote: Scott Sauyet wrote: The Apache Tomcat service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service. I'm not finding anything in the Tomcat logs, which makes me

Re: Service automatically shuts down on Windows Server 2003

2005-02-25 Thread Scott Sauyet
John Najarian wrote: I had a similar problem on winblows 2000 server a while ago, I had installed tomcat to ...\Tomcat 4.1\ and I had to reinstall it to ...\Tomcat_4.1\ and all worked fine. On winblows, spaces in variables in CLASSPATH, PATH... tend to cause problems and the killer is, not

[Fwd: Your Harvard Business Review Customer Service Request]

2005-02-25 Thread Jeanne Case
This is the spam I keep getting. It happens whenever I post. Is there something the keepers of the list can do about this? -J ---BeginMessage--- Your customer service request has been received by Harvard Business Review. You should receive an email response in 2-3 business days. ---End

Re: [Fwd: Your Harvard Business Review Customer Service Request]

2005-02-25 Thread Scott Sauyet
Jeanne Case wrote: This is the spam I keep getting. It happens whenever I post. Is there something the keepers of the list can do about this? I suspect it's just someone's out-of-office message. Presumably someone can shut down that account temporarily. Or permanently. -- Scott

Trying to understand exceptions and error-page

2005-02-25 Thread Wendy Smoak
With nothing configured for errors, I get a Tomcat error page: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: org.xml.sax.SAXParseException: blah,

RE: Trying to understand exceptions and error-page

2005-02-25 Thread Mike Curwen
Part of the spec says if no error-page declaration containing an exception-type fits using the class-heirarchy match, and the exception thrown is a ServletException or subclass thereof, the container extracts the wrapped exception... So supposing for a minute that Tomcat internals ignore any

Parse/read an XML doc with encoding Shift_JIS adds characters (2nd email)

2005-02-25 Thread Jerry Miernik
I am using a GetDictionary.jsp script to parse an XML document containing simple Japanese phrases encoded with Shift_JIS. What I observe is that after reading a phrase into a java.util.HashMap bean the phrase becomes longer and modified (really, corrupted). This (corrupted) phrase sent

JK2 Failover Problem

2005-02-25 Thread Ian Franco
I'm having trouble with the failover functionality of JK2. I have apache connected to two back-end tomcat engines running on separate machines. The failover works just fine when a tomcat engine dies. The node is not given any requests and the webapp continues to function normally. However, when

Volunteers for translation

2005-02-25 Thread Rahul Akolkar
Tomcat users - The web is becoming multi-channel. Are you interested in knowing how speech applications are authored? Are you good at translating from English to another language? If so, this might be a good volunteer opportunity to contribute to a fledging jakarta taglibs sandbox tag library.

Re: Hyperthreading and Java (was RE: Tale of two servers)

2005-02-25 Thread Shankar Unni
Peter Crowther wrote: From: Graham Reeds [mailto:[EMAIL PROTECTED] Also disable HyperThreading in the BIOS on the new Dell. HT and Java is not a happy combination. Interesting... do you have any recommended reading on that, Graham? Love these urban-legend types of warnings (don't flash your

Tomcat 5.5.7 hangs on startup

2005-02-25 Thread Curtis, John G
Having a problem getting Tomcat 5.5.7 to start. The configuration is basicly the default except for some trival changes to the tomcat-user.xml. The catalina.out leads me to believe it's a problem with the ajp, but that's just my best guess 'cause it hangs just prior to starting the connector:

Re: Trying to understand exceptions and error-page

2005-02-25 Thread Wendy Smoak
From: Mike Curwen [EMAIL PROTECTED] I've successfully caught 'all other' exceptions (which I suppose must include ServletExceptions), by using one error-page declaration that catches status-code500/status-code, and then multiple exception-type's to catch more specific exception types. Thanks,

Re: Tomcat 5.5.7 hangs on startup

2005-02-25 Thread Remy Maucherat
On Fri, 25 Feb 2005 17:13:41 -0500, Curtis, John G [EMAIL PROTECTED] wrote: Having a problem getting Tomcat 5.5.7 to start. The configuration is basicly the default except for some trival changes to the tomcat-user.xml. The catalina.out leads me to believe it's a problem with the ajp, but

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is true Filip Jesper Ekberg wrote: Hello! My first mail to this list. :) I have read it for a long time tho. We have a tried to cluster 3

Re: Cluster: Is session's lastAccessedTime got replicated?

2005-02-25 Thread Filip Hanik - Dev Lists
unless the session is primary, the last accessed time wont matter, when the session becomes primary, the last access time gets set immediately. Filip Joseph Lam wrote: Found that only when a replication is explicitly triggered by set/removeAttribute(), the other nodes'

RE: Tomcat 5.5.7 hangs on startup

2005-02-25 Thread Curtis, John G
Thanks for the reply. I'd love to get a thread dump but I'm not getting a pid for the jvm. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 6:01 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.7 hangs on startup On Fri, 25 Feb 2005

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a difference between a crashed tomcat and a shutdown tomcat. Filip Filip Hanik - Dev Lists wrote: there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is true Filip Jesper Ekberg

Re: Arabic encoding

2005-02-25 Thread Fadwa Barham
I use oracle 7 database, and the NLS language is American_America.US7ASCII, and it is not easy to change it to utf-8. Beside, the question is, a servlet work fine on tomcat 4.0.6 why it stopped with the new versions, what changes made to the encoding of tomcat?? do I need tomcat-i18n-ar.jar? and

How to disable PUT, DELETE http methods etc if not using container managed security?

2005-02-25 Thread Ted Anagnost
Is there a way to prevent PUT or DELETE http methods if you're not using container managed security? If so, how? I already have this to force the use of https: security-constraint web-resource-collection web-resource-nameProtected Context/web-resource-name