Re: Tomcat shutdown event

2008-09-12 Thread Johnny Kewl
- Original Message - From: "Tom Cat" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, September 13, 2008 1:13 AM Subject: Tomcat shutdown event Hello, I have a servelet spawn a thread that should run until tomcat is shutdown. The problem is, when Tomcat is shut down, the

RE: Regarding Error 404-please help!

2008-09-12 Thread laura fu
Hi Ognjen, Thanks so much for your help. I have tried your suggestions, but the site still wouldn't show my servlet. Althought i have noticed something else which i am not sure if is related to the issue we're talking about. I reinstall my Apache server and Tomcat. In my Tomcat training manua

Re: Tomcat shutdown event

2008-09-12 Thread Konstantin Kolinko
2008/9/13 Tom Cat <[EMAIL PROTECTED]>: > > I have a servlet spawn a thread that should run until tomcat is > shutdown. The problem is, when Tomcat is shut down, the thread keeps > running. > > Does Tomcat have a shutdown event that I could use to trigger the > thread destruction? If not, is there a

Re: Remote debugging via shmem, Tomcat as a service

2008-09-12 Thread Konstantin Kolinko
2008/9/12 Bryan D. Fish <[EMAIL PROTECTED]>: > I'm trying to get remote debugging working with Tomcat using a shared memory > connection. I've been calling it remote debugging but the server and debug > client (my IDE) are on the same host. > > Everything works well when I start Tomcat from the co

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > so, Java is still 16-bit Unicode in its char primitive, > but you can use ints to hold UTF-16 values using 21-bits? The 21-bit values are represented by pairs o

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > The servlet thus reads the iso-8859-1 data, but with the > wrong decoder. I guess then that this decoder replaces > anything that does not fit into that default encodi

Tomcat shutdown event

2008-09-12 Thread Tom Cat
Hello, I have a servelet spawn a thread that should run until tomcat is shutdown. The problem is, when Tomcat is shut down, the thread keeps running. Does Tomcat have a shutdown event that I could use to trigger the thread destruction? If not, is there any graceful way of handling this? Thanks

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
- Original Message - From: "André Warnier" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, September 12, 2008 10:56 PM Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem Just for the sake of completeness : Christopher Schultz wrote: -BEGIN PG

Re: Tomcat/servlet question

2008-09-12 Thread Mark Thomas
André Warnier wrote: > Hi. > > In response to a request, a servlet opens and reads a file from disk, > and sends the content out to the browser (ultimately), "as is". > The content of the file is an html document, saved as a text under some > encoding, correctly encoded under that encoding, and co

Tomcat/servlet question

2008-09-12 Thread André Warnier
Hi. In response to a request, a servlet opens and reads a file from disk, and sends the content out to the browser (ultimately), "as is". The content of the file is an html document, saved as a text under some encoding, correctly encoded under that encoding, and containing an html where the s

Re: Tomcat Patch Management

2008-09-12 Thread Gabe Wong
Mark Thomas wrote: Anand Gundanna wrote: Dear Support, I would request for your help in regards to Tomcat Patch Management. I hope you will be helpful in this regard. We have installed and configured an Tomcat web server on windows server platform for an application called Business Objec

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Just for the sake of completeness : Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: It is on the way through that servlet that they get "corrupted", unless I start Tomcat with LC_CTYPE="iso-8859-1". What do the HTTP headers say when the f

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Willem, Willem Moors wrote: I can only see one solution to this complexity: let's all (everybody in the whole world) speak the same language, use the same currency and move into one and the same timezone (the latter becau

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Rectification to the clarification : what I say below about UTF-16 being always 16-bit and limited is also nonsense. UTF-16 is variable-length, it can cover the entire Unicode character set. It just uses a variable number of 16-bit words per character, as compared to UTF-8 which uses a variab

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem (My understanding is that Unicode (16-bit) is actually not big enough for everything, but hey, they tried). Point of clarification: Unicod

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Willem, Willem Moors wrote: > I can only see one solution to this complexity: let's all (everybody in the > whole world) speak the same language, use the same currency and move into > one and the same timezone (the latter because of past fun with time

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: Migrating to tomcat 6 gives formatted currency amounts >> problem >> >> the 'char' data type is /defined/ to be 16-bits wide >> (http://java.s

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Willem Moors
On Fri, Sep 12, 2008 at 9:26 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > Wonder if Wil knew he asked such a damn big question... ha ha > I'm really amazed at the volume of mails my question has raised. I can only see one solution to this complexity: let's all (everybody in the whole world) speak

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: > Servlet Response does in fact have a setLocale(Locale loc) function... > Which seems to indicate that if headers or something like > response.setContentType("text/html;charset=UTF-8"); > is *not* used... TC will take on th

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
Nope - most editors do not let you choose the character encoding, they just use the platform default. Some do let you choose a UTF-x flavor in lieu of the platform default, which is quite desirable. Some fonts (e.g., Wingdings) redefine the glyphs for given code points in order to display o

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Christopher Schultz wrote: [...] Yes, they do. MS, contrary to W3 specifications, sniffs the content of a page and chooses the encoding and ignores any server-specified encoding. It also does this with MIME types. (Sorry, can't find the reference right now). [...] Here is a start, sympathetic

RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase

2008-09-12 Thread Caldarale, Charles R
> From: Carol Cheung [mailto:[EMAIL PROTECTED] > Subject: RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase > > Sorry, I'm using Tomcat 5.5. I removed catalina.jar from > WEB-INF/lib and I am still getting the same error. Look at the Tomcat 5.5 classloader structure: Bootstrap

Re: NoClassDefFoundError: org.apache.catalina.realm.RealmBase

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Cheung wrote: > Sorry, I'm using Tomcat 5.5. I removed catalina.jar from WEB-INF/lib and I > am still getting the same error. You should put your Realm implementation into $TOMCAT_HOME/shared/lib or $TOMCAT_HOME/common/lib. I suspect you

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > the 'char' data type is /defined/ to be 16-bits wide > (http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.1). > Has this changed? When?

Re: about Connector's attribute redirectPort

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 李征, 李征 wrote: > If this Connector is supporting non-SSL requests, and a request is > received for which a matching requires SSL > transport, Catalina will automatically redirect the request to the > port number specified here. The default value is 44

Re: Fw: Tomcat Patch Management

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anand, Anand Gundanna wrote: > So, do you think Automatic windows patch management and manual tomcat > patch management would ideal as patch releases from Tomcat is very rare? Yes. Given that you have to test the hell out of your application whenever

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: > Use this function > > System.out.print("CharSet : " + Charset.defaultCharset().toString()); > > and thats what you HAVE TO set your page at > > On my system it tells me its. windows-1252 I think you're stil

RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase

2008-09-12 Thread Carol Cheung
> From: Carol Cheung [mailto:[EMAIL PROTECTED] > Subject: NoClassDefFoundError: org.apache.catalina.realm.RealmBase > > I have catalina.jar in WEB-INF/lib > Can anyone shed some light on what I'm doing wrong? Putting catalina.jar in WEB-INF/lib is certainly one major error. Remove it. You must

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: Migrating to tomcat 6 gives formatted currency amounts >> problem >> >> (My understanding is that Unicode (16-bit) is actually not big >> enoug

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > Does it mean you cant run linux headless?... Of course you can (think about blade servers). Now you're confusing graphical display with encoding. The term "headless"

RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase

2008-09-12 Thread Caldarale, Charles R
> From: Carol Cheung [mailto:[EMAIL PROTECTED] > Subject: NoClassDefFoundError: org.apache.catalina.realm.RealmBase > > I have catalina.jar in WEB-INF/lib > Can anyone shed some light on what I'm doing wrong? Putting catalina.jar in WEB-INF/lib is certainly one major error. Remove it. You must

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > It is on the way through that servlet that they get "corrupted", unless > I start Tomcat with LC_CTYPE="iso-8859-1". What do the HTTP headers say when the file is served correctly versus when it is not? I suspect that th

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > The pages served by that webapp are the same html pages, all of them > having a declaration . Note that using META tags to set character sets is a bit dangerous. You're telling the client to ignore the character set indi

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > (My understanding is that Unicode (16-bit) is actually not > big enough for everything, but hey, they tried). Point of clarification: Unicode is NOT limited to

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: >> Migrating to tomcat 6 gives formatted currency amounts problem >> >> if I do look at that test page in a MS tool... it displays >> correctly with mixed

RE: 回复: about Connector's attribute red irectPort

2008-09-12 Thread Caldarale, Charles R
> From: 李征 [mailto:[EMAIL PROTECTED] > Subject: 回复: about Connector's attribute redirectPort > > this is my setting for connector > port="8009" minProcessors="5" maxProcessors="150" >enableLookups="true" redirectPort="8443" >acceptCount="10" debug

Re: Isn't there a PDF style document for v6?

2008-09-12 Thread Guojun Zhu
Here is the official link. http://tomcat.apache.org/tomcat-6.0-doc/index.html. But if you know nothing about tomcat before, a book might be a better place to start. Such as this one http://www.amazon.com/Tomcat-Definitive-Guide-Jason-Brittain/

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: > If this locale stuff is in fact defaulting to an ISO char set that can > do these symbols... and say you where making a non english page, say > Japanese... do you think that its possible to use it? It is up to your browse

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > If this locale stuff is in fact defaulting to an ISO char set > that can do these symbols... There's the basic problem - anytime you allow defaults to come into play yo

Remote debugging via shmem, Tomcat as a service

2008-09-12 Thread Bryan D. Fish
I'm trying to get remote debugging working with Tomcat using a shared memory connection. I've been calling it remote debugging but the server and debug client (my IDE) are on the same host. Everything works well when I start Tomcat from the command line (bin/startup.bat). I have the following

Re: Beginner

2008-09-12 Thread Steve Ochani
On 12 Sep 2008 at 13:07, sathish kumar wrote: Send reply to: Tomcat Users List Date sent: Fri, 12 Sep 2008 13:07:25 +0530 From: sathish kumar <[EMAIL PROTECTED]> To: users@tomcat.apache.org Subject:Beginner > Hi Everyone, > I have joined the tomcat project. Could you point to

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Migrating to tomcat 6 gives formatted currency > amounts problem > > Consequently, setting LC_CTYPE (or equivalent) prior to > starting up Tomcat can have a dramatic effect on the > interpretation of both input and output, as you have discovered. Also, a

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:[EMAIL PROTECTED] > Subject: Re: Migrating to tomcat 6 gives formatted currency > amounts problem > > - the servlet reads those documents with some InputStream, > without specifying a character set or encoding, and by > default that means to use Tomcat's idea of its d

RE: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Antonio Vidal Ferrer
Hi, Have you checked the configuration for this catalina opts?: -Duser.language=es -Duser.country=ES Check that they are the same in both tomcats. (In this case, for instance, is configured for Spanish-Spain) Good Luck Best, Toni -Original Message- From: André Warnier [mailto

NoClassDefFoundError: org.apache.catalina.realm.RealmBase

2008-09-12 Thread Carol Cheung
Hi, I've written a custom Realm, set up according the "Realm-howto" from Tomcat Documentation. I use RealmBase.Digest to digest passwords. The Realm works, in that users are authenticated properly. But I've also written a code to allow the user to change their password, using RealmBase.Digest to

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Konstantin Kolinko wrote: 2008/9/12 André Warnier <[EMAIL PROTECTED]> Konstantin Kolinko wrote: 2008/9/12 André Warnier <[EMAIL PROTECTED]>: Caldarale, Charles R wrote: I'm not sure these days what the "normal web character set" really is. If you're referring to ASCII (aka Basic Latin),

Re: SNMP tomcat 5.5!

2008-09-12 Thread Mark H. Wood
On Thu, Sep 11, 2008 at 09:29:14PM +0100, Mark Thomas wrote: > Shahar Cohen wrote: > > Hi, > > > > Can anybody please tell me how I can monitor by SNMP tomcat sites > > without querying the admin module which I disabled for security reasons? > > > > > > Is there any MIBS that I can use? > > In

RE: [NEWBIE] Apache Tomcat 5.5.17

2008-09-12 Thread paul.ockleford
Its hard to see but arent the extra processes your greps? -Original Message- From: Jon [mailto:[EMAIL PROTECTED] Sent: 11 September 2008 15:11 To: Tomcat Subject: [NEWBIE] Apache Tomcat 5.5.17 I'm using grep to monitor apache process (tomcat apache 5.5.17). It seems to create a new PID

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
- Original Message - From: "André Warnier" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, September 12, 2008 10:08 AM Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem Caldarale, Charles R wrote: I'm not sure these days what the "normal web cha

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Konstantin Kolinko
2008/9/12 André Warnier <[EMAIL PROTECTED]> > Konstantin Kolinko wrote: > >> 2008/9/12 André Warnier <[EMAIL PROTECTED]>: >> >>> Caldarale, Charles R wrote: >>> I'm not sure these days what the "normal web character set" really is. If you're referring to ASCII (aka Basic Latin), th

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Konstantin Kolinko wrote: 2008/9/12 André Warnier <[EMAIL PROTECTED]>: Caldarale, Charles R wrote: I'm not sure these days what the "normal web character set" really is. If you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling symbol is not present. However, for any of the

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
Then one last thing before I put this in my little black book of things I'm never going to do... and forget about it forever ;) This is what windows does If the machine is on US English... Regardless of the local I set... German, English, Japanese I set in Java the charset is always

Re: Tomcat 6 + Native Library + HTTPS

2008-09-12 Thread Markus Schönhaber
StrongSteve wrote: Can anyone tell me - or give me a resource - on how to configure SSL in Tomcat 6 with an installed Native Library? I did it as usual in the following way: clientAuth="true" sslProtocol="TLS" keystoreFile=".keystore" keyAlias="tomcat" keyst

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
OK, Wil you made me do some homework... got it sorted for you You must not guess the Charset... as we been doing. Use this function System.out.print("CharSet : " + Charset.defaultCharset().toString()); and thats what you HAVE TO set your page at On my system it tells me its...

Tomcat 6 + Native Library + HTTPS

2008-09-12 Thread StrongSteve
Hi Everybody! Can anyone tell me - or give me a resource - on how to configure SSL in Tomcat 6 with an installed Native Library? I did it as usual in the following way: But Tomcat refuses to start up. As soon as I remove the Native Library, these settings work perfect. Where and How am I

回复: about Connector's attribute redirectPo rt

2008-09-12 Thread 李征
Mark thanks a lot for ur reply, this is my setting for connector and i can't get anything from netstat -apn | grep 8443 - 原始邮件 发件人: Mark Thomas <[EMAIL PROTECTED]> 收件人: Tomcat Users List 已发送: 2008/9/12(周五), 下午4:21:38 主题: Re: about Connector's attribute redirectPort 李征 wrote

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Konstantin Kolinko
2008/9/12 André Warnier <[EMAIL PROTECTED]>: > Caldarale, Charles R wrote: >> >> I'm not sure these days what the "normal web character set" really is. If >> you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling >> symbol is not present. However, for any of the ISO-8859-x varia

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Johnny Kewl
- Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, September 12, 2008 6:01 AM Subject: RE: Migrating to tomcat 6 gives formatted currency amounts problem From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to to

Isn't there a PDF style document for v6?

2008-09-12 Thread 叶双明
Hi all! Can i download a PDF style document from somewhere, or other style? Please show me the url. Thanks! -- Sorry for my english!! 明 Please help me to correct my english expression and error in syntax

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread André Warnier
Caldarale, Charles R wrote: I'm not sure these days what the "normal web character set" really is. If you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling symbol is not present. However, for any of the ISO-8859-x variants, it is present, using the 163 (0xA3) value you no

Re: Regarding Error 404-please help!

2008-09-12 Thread Ognjen Blagojevic
It is really hard to pinpoint your problem whit such a huge web.xml. But, let's try. First, for servlet "HelloWorld" you stated the class name "/servlet/HelloWorld". That is wrong. Class name should be fully qualified Java class name like: "com.something.servlet.HelloWorld". Second, in your

Re: Beginner

2008-09-12 Thread Mark Thomas
sathish kumar wrote: > Hi Everyone, > I have joined the tomcat project. Could you point to me to some study > material where I can understand the architecture of tomcat and how things > work? http://tomcat.apache.org/tomcat-6.0-doc/architecture/index.html then look at the code http://svn.apache.or

Beginner

2008-09-12 Thread sathish kumar
Hi Everyone, I have joined the tomcat project. Could you point to me to some study material where I can understand the architecture of tomcat and how things work? I have some knowledge on Java, JSP and Servlets. P.S: As this is the first time I am posting, please correct me If I have posted somet

Re: about Connector's attribute redirectPort

2008-09-12 Thread Mark Thomas
李征 wrote: > at tomcat official site, > > http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html > redirectPort is described as below > > If this Connector is supporting non-SSL requests, and a request is received > for which a matching requires SSL transport, Catalina > will automatically