RE: multiple tomcat instance and log4j
-Original Message- From: Simon Zeng Thanks for the quick response. Seperate logs for each tomcat was my proposal too. But people like to have an easy way to view them as a whole. A nice merge tool would be nice. The first and minumum requirement for the tool is to merge and sort all log records by time so that it can really be viewed as if there is only one log file. grep/sort command in unix might help, but we are in Windows. Chainsaw and Lumbermill provides nice GUI and filtering but i don't see merge function in them. Any suggestions? http://unxutils.sourceforge.net/ has grep and sort for windows? Another thought. If you wrote the logs as XML, XSLT could merge and sort. regards DaveP ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.31
Hello. I think all that has happened is that the announcement has come out before all the mirrors have synchronised with the apache servers - hence you might see an older release. For the record, it is both available and production quality. Well, yes, now its updated. So my question still remains: In the Release Notes (which are alread available) I found: JDBCStore: Optimize use of database session persistence to improve scaling and performance. Does anybody have more details (link?) on this change ? With kind regards, Harald Henkel -- Harald Henkel GS automation GmbH Winterstraße 2 82223 Eichenau Germany Tel:+ 49-8141-35 731-37 Fax:+ 49-8141-35 731-38 Mobile: + 49-178-7829126 e-mail: [EMAIL PROTECTED] Web:www.GS-automation.DE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Listeners
I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. I get the digester error: Digester.error : Parse Error at line 9 column 13: Element type listener must be declared. Line 9 is the listener line. What am I missing? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Listeners
The top of my web.xml is as follows. It worked fine until I added the listener declaration. I am using tomcat 4.1.24 ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class com.mbresearch.main.util.AccessListener /listener-class /listener servlet -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. From the top. rgds Antony Paul On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan [EMAIL PROTECTED] wrote: I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. I get the digester error: Digester.error : Parse Error at line 9 column 13: Element type listener must be declared. Line 9 is the listener line. What am I missing? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Help]Is it possible to using % in uri?
Hi,all: I am using a control to download file,when file name is non-ascii,it will generate the url like: http://localhost:8080/Download/ID041012155059812154/$File/%u6279%u6587%u5904%u7406%u4EBA.xls?OpenElement1097572646 But tomcat will return http 400 Invalid URI error. I check the maillist found % is not allow in URI for Tomcat,but I can't modified this control,so does any way to allow tomcat receive this url and allow application itself to decode the url? Please Help! Roy Huang
TOMCAT 4 to 5 migration
Hi All, I am trying to migrate from TOMCAT 4 to 5 after installation my existing web app is not working. my web-app is using some Taglibs and servlets. The default page is coming on the browser but after that page we r using taglib. this page giving HTTP 500 error Internal Server error. I am clueless Kindly give some clue. thanx regards RKS Rathour = Disclaimer : The information contained in this Message is confidential and intended only for the use of the individual or entity identified. If the reader of this message is not the intended recipient, any dissemination, distribution or copying of the information contained in this message is strictly prohibited. If you received this message in error, please notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to abort processing of a JSP ??
Hi, I want to know, whether it is possible to abort the jsp execution while in the midst of processing a request ?? If anybody can through light on this I would be grateful.. Thanks in advance, Tapas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to abort processing of a JSP ??
N Tapas Kumar Choudhury wrote: Hi, I want to know, whether it is possible to abort the jsp execution while in the midst of processing a request ?? If anybody can through light on this I would be grateful.. Abort and do what? The most sensible thing to do is: - set the buffer to some reasonable large value - to abort, either throw an exception or issue a redirect Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT 4 to 5 migration
Have you looked at your log files? Is there a message with that server 500 error? You may need to disable Friendly Error Messages in MSIE to see them. Without more information, it will be difficult for anyone to help you. On Wed, 2004-10-13 at 05:30, Kumar Singh Rathour, Raj (Vedam) wrote: Hi All, I am trying to migrate from TOMCAT 4 to 5 after installation my existing web app is not working. my web-app is using some Taglibs and servlets. The default page is coming on the browser but after that page we r using taglib. this page giving HTTP 500 error Internal Server error. I am clueless Kindly give some clue. thanx regards RKS Rathour = Disclaimer : The information contained in this Message is confidential and intended only for the use of the individual or entity identified. If the reader of this message is not the intended recipient, any dissemination, distribution or copying of the information contained in this message is strictly prohibited. If you received this message in error, please notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to bind the shutdown port to one single IP address
Hi, and thanks for your help! unfortunately my moderate skills in programming do not allow a customized solution, so I will choose a separate shutdown port for each of my Tomcats :-/ Have a nice day, Sascha On Tuesday, October 12, 2004, at 05:12PM, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Undocumented options? ;) This is why our code is open for all to see: look at org.apache.catalina.startup.Catalina line 397. The 127.0.0.1 localhost address is hard-coded. So the answer to your question is no: to accomplish what you want, you must build a custom version of Tomcat which will have a configurable shutdown address. Yoav Shapira http://www.yoavshapira.com -Original Message- Sent: Tuesday, October 12, 2004 11:07 AM To: [EMAIL PROTECTED] Subject: how to bind the shutdown port to one single IP address Hi, is it possible to bind the shutdown port to one single IP address? I do have a clustered environment and running different virtual hosts on the same physical host. Tomcat now binds the shutdown port always to localhost.8005 and with this localhost, all virtual hosts are included. But I just want to bind it to one single virtual host e.g. asterix.8005 and idefix.8005 For the ajp port and http port I can use the attribute address to bind these ports to one single IP address, but I did not find a way to bind the shutdown port to one single IP address. Is there may be a way to start Tomcat with different parameters (e.g. - Dcatalina.host=asterix) or are there any uncommented commands? Server port=8005 shutdown=SHUTDOWN debug=0 Thanks for your help, Sascha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Listeners
I could'nt find anything wrong with the listener element. Perhaps it is caused by something else. Remove all other elements than listener and try to see the error. Also post the full error log. rgds Antony Paul On Wed, 13 Oct 2004 01:14:15 -0700, Ray Madigan [EMAIL PROTECTED] wrote: The top of my web.xml is as follows. It worked fine until I added the listener declaration. I am using tomcat 4.1.24 ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class com.mbresearch.main.util.AccessListener /listener-class /listener servlet -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. From the top. rgds Antony Paul On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan [EMAIL PROTECTED] wrote: I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. I get the digester error: Digester.error : Parse Error at line 9 column 13: Element type listener must be declared. Line 9 is the listener line. What am I missing? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to abort processing of a JSP ??
% return; % On Wed, 2004-10-13 at 06:31, N Tapas Kumar Choudhury wrote: Hi, I want to know, whether it is possible to abort the jsp execution while in the midst of processing a request ?? If anybody can through light on this I would be grateful.. Thanks in advance, Tapas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error on Tomcat startup
I notice the following error on starting TC 4.1.30 on WinXP in stderr.log. What file is it parsing? I assume it's one of the web.xml files, but is there a quick way of finding out which one without having to go through each of them? Thanks for any help. 13/10/2004 21:30:42 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 59 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) etc
Re: Listeners
Does your listener class implement the good listener like HttpSessionListener, ServletContextListener or ... Ray Madigan wrote: The top of my web.xml is as follows. It worked fine until I added the listener declaration. I am using tomcat 4.1.24 ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class com.mbresearch.main.util.AccessListener /listener-class /listener servlet -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. From the top. rgds Antony Paul On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan [EMAIL PROTECTED] wrote: I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. I get the digester error: Digester.error : Parse Error at line 9 column 13: Element type listener must be declared. Line 9 is the listener line. What am I missing? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DataSourceRealm vs. Administration Tool - A bug?
Hello, I have just installed Tomcat 4.1.24 and I have it nearly exactly the way I want it now. I am doing my testing on Windows 2000 and Tomcat 4.1.27. The only other thing I want to implement is the DataSourceRealm. Here I am having problems though as I have the Administration Tool set up and therefore had to have the JMX MBeans listeners in server.xml enabled. These would seem to conflict with the DataSourceRealm though as when I have both in place I get the error: java.lang.Exception: ManagedBean is not found with DataSourceRealm When I remove either one the other works fine so I know the conflict is here. Is this just something I have to live with? I read the release notes for 4.1.31 and they seem to suggest that this is not something that has been fixed in a later release. Has it? My thanks as ever, Andoni
RE: DataSourceRealm vs. Administration Tool - A bug?
Hi, If you get few responses to this question, I suggest trying 5.0.28 to see if the problem is still around in that version. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:30 AM To: Tomcat Users List Subject: DataSourceRealm vs. Administration Tool - A bug? Hello, I have just installed Tomcat 4.1.24 and I have it nearly exactly the way I want it now. I am doing my testing on Windows 2000 and Tomcat 4.1.27. The only other thing I want to implement is the DataSourceRealm. Here I am having problems though as I have the Administration Tool set up and therefore had to have the JMX MBeans listeners in server.xml enabled. These would seem to conflict with the DataSourceRealm though as when I have both in place I get the error: java.lang.Exception: ManagedBean is not found with DataSourceRealm When I remove either one the other works fine so I know the conflict is here. Is this just something I have to live with? I read the release notes for 4.1.31 and they seem to suggest that this is not something that has been fixed in a later release. Has it? My thanks as ever, Andoni This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.out errors
Hi, On the contrary, it's all enabled by default. And for Tomcat 5.0.x and previous, it's pretty tough to disable error messages, as they are output even if the debug attribute is set to zero on the server.xml components. Is there a log4j or JDK logging configuration file in your Tomcat server classpath? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 3:42 PM To: 'Tomcat Users List' Subject: RE: Catalina.out errors I am running it from the command line. No errors print at all, it simply ignores any stack traces. I thought that whoever installed it on the new server must have somehow disabled it? Is there a way to ensure error logging when starting tomcat from the command line? Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 12 October 2004 20:26 To: Tomcat Users List Subject: RE: Catalina.out errors Hi, Usually the full stack trace will be available. We didn't remove that, as it's an extremely useful feature. Are you running Tomcat as a service or from the command-line? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 3:21 PM To: Tomcat User Mailing List Subject: Catalina.out errors Hi, We have moved a tomcat webapp to a new server which uses tomcat 5.0.27, (we were using version 5.0.18 on the old server). When an error is thrown no stack trace is printed in the catalina.out or in the other log files as was the case with the old server. Is there some configurations I can change so that the errors will be printed for debugging? I have looked at server.xml on both servers and cannot see anything obvious which is stopping them from being printed on the new server. Thanks CH This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error on Tomcat startup
Hi, There should be a message in the (normal, not error) log like deploying web application at /path -- that's how you can tell what web.xml caused the error. An alternative approach (which should be done anyways as a matter of habit) is to independently (that is, outside of Tomcat) validate your web.xml file using a tool like XMLSpy or one of the free online alternatives. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Aziz Yacoub [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: Error on Tomcat startup I notice the following error on starting TC 4.1.30 on WinXP in stderr.log. What file is it parsing? I assume it's one of the web.xml files, but is there a quick way of finding out which one without having to go through each of them? Thanks for any help. 13/10/2004 21:30:42 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 59 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) etc This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.3 and JRE 1.5.0 on linux
Hi, Good reminder for us ;) If you feel like, feel free to submit a Bugzilla issue with your experience. Thanks, Yoav Shapira http://www.yoavshapira.com -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 3:48 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.3 and JRE 1.5.0 on linux Remy Maucherat wrote: On Tue, 12 Oct 2004 21:32:51 +0200, Marc Logemann [EMAIL PROTECTED] wrote: Hi, i am feeling a little bit silly to ask, but i have to ;-) I installed JRE 1.5.0 and Tomcat 5.5.3 on linux, set the JAVA_HOME to the JRE location and started tomcat with ./catalina start Then i got the point to a JDK not a JRE error. I checked the setclasspath.sh and there is a paragraph that checks for javac and stuff. Do i miss something here? There must be some straightforward explanation for this, because i dont think the setclasspath.sh is from an old tomcat distro ;-) I think nobody updated the shell scripts yet (either for Unix or Windows). If you do hack them a little, it will work. Remy, thanks for pointing out. Of course its not very hard to do it, in fact i just removed the checks for javac and jdb and it runs like a charm. I somehow havent believed that the scripts are not updated yet and searched for the error on my site. -- regards Marc Logemann http://www.logemann.org http://www.logentis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to verify
Hi, The MD5 file you can download from another mirror if you're concerned that it was messed up along with the distro. As for not finding my key (I signed these distros) -- let me check up on that and make sure my key is up on the pgpkeys.mit.edu server, and get back to you. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Peter Fogg [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 10:25 PM To: Tomcat Users List Subject: Unable to verify The following files were downloaded from the Apache Jakarta Site: jakarta-tomcat-5.0.28.tar.gz jakarta-tomcat-5.0.28.tar.gz.asc jakarta-tomcat-5.0.28.tar.gz.md5 Attempted to verify the distribution before installing it: $ gpg --verify jakarta-tomcat-5.0.28.tar.gz.asc jakarta-tomcat-5.0.28.tar.gz gpg: Signature made Sat Aug 28 18:02:16 2004 PDT using DSA key ID 7C037D42 gpg: Can't check signature: public key not found $ gpg --keyserver pgpkeys.mit.edu --recv-keys 7C037D42 gpg: no valid OpenPGP data found. gpg: Total number processed: 0 $ . . . I have tried numerous keyservers with the same result. What am I doing wrong? Peter - This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Manager application in TC 4.1
Hi, Note the /manager is still valid, it's just not the HTML version. That's at /manager/html. The two are both the manager webapp and both valid. So you might not need to change anything. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 4:59 PM To: Tomcat Users List Subject: Manager application in TC 4.1 Hello, I have just upgraded to Tomcat 4.1 and I have encountered the fact that the manager application is now at: www.mydomain.com:8080/manager/html/ What is the simples way to change this to be at www.mydomain.com:8080/manager ? I have changed the mappings but that breaks the mappings in the manager app. I know the comment in the manager's web.xml file says just to change the class but is that right? I think that's just a legacy comment. Thanks, Andoni This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Listeners
Hi, I have the listener declared in web.xml before the servlet declaration and looks like listener listener-class com.mbresearch.foo.FooListener/listener-class /listener servlet ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. Your web.xml looks fine. Your listener doesn't actually have to implement any of the Servlet Spec's listener interfaces (but of course then it's a fairly useless class ;)). However, I want to make sure your listener class can be found. The FooListener.class file should be in WEB-INF/classes/com/mbresearch/foo directory, and have package com.mbresearch.foo; as its top line. It should also be readable to the server user. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue getting Context inside a servlet
What I am trying to accomplish: I'm trying to build a servlet that I can get the DocBase with, so I'm trying to locate org.apache.catalina.Context from the servlet. Tomcat Version: 5.0.28 Java Version: 1.4.2_05 What I'm doing: I am implementing ContainerServlet and this works great when I run the servlet through a web application defined in $catalina.home/servers/webapps/my_webapp. Pretty much in the same place as the manager servlet. However when I run it as an installed WAR file I am getting a nasty null pointer exception (running from $catalina.home/webapps/my_webapp). The issue: setWrapper() is never getting called when I have this inside the $catalina.home/webapps/ directory tree... only when I have it in $catalina.home/server/ directory tree. Any thoughts on this? When this webapp goes live it will be installed as a WAR file and I won't be able to control what directory it is in. Any thoughts? Here is my servlet, pretty basic, just trying to find the Context and DocBase: //-- SERVLET START -- import org.apache.catalina.*; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; import java.io.*; public class Ctx extends HttpServlet implements ContainerServlet { Context context; Deployer deployer; Wrapper wrapper; public Ctx() { context = null; deployer = null; wrapper = null; } public Wrapper getWrapper() { return wrapper; } public void setWrapper(Wrapper wrapper) { this.wrapper = wrapper; try { context = (Context)wrapper.getParent(); deployer = (Deployer)context.getParent(); } catch (NullPointerException e) { context = null; deployer = null; } } public void destroy() { // do nothing } public void init() { // do nothing } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { PrintWriter out = response.getWriter(); response.setContentType(text/plain); out.println(My Context Object: + context); out.println(Doc Base: + context.getDocBase()); out.flush(); out.close(); } } //-- SERVLET END -- -- /** * Robin Curts * [EMAIL PROTECTED] * http://www.robincurts.com * (813) 786-8634 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issue getting Context inside a servlet
Hi, Why are you even going down this route? Any solution you end up with will be tied to Tomcat and not portable at all. There's also no guarantee we'll keep these internal APIs consistent or available to your webapp in future Tomcat versions. If you do want to keep going down this path, you probably need to mark your context as privileged, like the manager webapp does (see its context.xml file for an example). The hack to get the DocBase getServletContext().getRealPath(/). That works for unpacked WARs but not packed WARs, where getRealPath(anything) returns null. If you need the docBase simply as a URL, you can always do getServletContext().getResource(/) which will work in packed and unpacked webapp deployments. If you elaborate a bit on why you need the docbase, we might be able to come up with better alternative approaches for you. Don't make your solution container-specific unless you really have to. Stick to the letter and the spirit of the Servlet Spec, and you'll end up with a portable webapp. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robin Curts [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Issue getting Context inside a servlet What I am trying to accomplish: I'm trying to build a servlet that I can get the DocBase with, so I'm trying to locate org.apache.catalina.Context from the servlet. Tomcat Version: 5.0.28 Java Version: 1.4.2_05 What I'm doing: I am implementing ContainerServlet and this works great when I run the servlet through a web application defined in $catalina.home/servers/webapps/my_webapp. Pretty much in the same place as the manager servlet. However when I run it as an installed WAR file I am getting a nasty null pointer exception (running from $catalina.home/webapps/my_webapp). The issue: setWrapper() is never getting called when I have this inside the $catalina.home/webapps/ directory tree... only when I have it in $catalina.home/server/ directory tree. Any thoughts on this? When this webapp goes live it will be installed as a WAR file and I won't be able to control what directory it is in. Any thoughts? Here is my servlet, pretty basic, just trying to find the Context and DocBase: //-- SERVLET START -- import org.apache.catalina.*; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; import java.io.*; public class Ctx extends HttpServlet implements ContainerServlet { Context context; Deployer deployer; Wrapper wrapper; public Ctx() { context = null; deployer = null; wrapper = null; } public Wrapper getWrapper() { return wrapper; } public void setWrapper(Wrapper wrapper) { this.wrapper = wrapper; try { context = (Context)wrapper.getParent(); deployer = (Deployer)context.getParent(); } catch (NullPointerException e) { context = null; deployer = null; } } public void destroy() { // do nothing } public void init() { // do nothing } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { PrintWriter out = response.getWriter(); response.setContentType(text/plain); out.println(My Context Object: + context); out.println(Doc Base: + context.getDocBase()); out.flush(); out.close(); } } //-- SERVLET END -- -- /** * Robin Curts * [EMAIL PROTECTED] * http://www.robincurts.com * (813) 786-8634 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue getting Context inside a servlet
Well I have some files that I want to have available to the web application (properties file, some serialized objects). My first attempt was to add -Dhomedir=/path/to/some/directory when I started tomcat -- but that doesn't seem correct. So then I wanted to get the path to the WEB-INF directory and put everything into there. Neither solution seems all that great, and if you have any suggestions I'm all ears. By the way -- the getServletContext().getRealPath(/) was fantastic. Thanks for that tip. Shapira, Yoav wrote: Hi, Why are you even going down this route? Any solution you end up with will be tied to Tomcat and not portable at all. There's also no guarantee we'll keep these internal APIs consistent or available to your webapp in future Tomcat versions. If you do want to keep going down this path, you probably need to mark your context as privileged, like the manager webapp does (see its context.xml file for an example). The hack to get the DocBase getServletContext().getRealPath(/). That works for unpacked WARs but not packed WARs, where getRealPath(anything) returns null. If you need the docBase simply as a URL, you can always do getServletContext().getResource(/) which will work in packed and unpacked webapp deployments. If you elaborate a bit on why you need the docbase, we might be able to come up with better alternative approaches for you. Don't make your solution container-specific unless you really have to. Stick to the letter and the spirit of the Servlet Spec, and you'll end up with a portable webapp. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robin Curts [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Issue getting Context inside a servlet What I am trying to accomplish: I'm trying to build a servlet that I can get the DocBase with, so I'm trying to locate org.apache.catalina.Context from the servlet. Tomcat Version: 5.0.28 Java Version: 1.4.2_05 What I'm doing: I am implementing ContainerServlet and this works great when I run the servlet through a web application defined in $catalina.home/servers/webapps/my_webapp. Pretty much in the same place as the manager servlet. However when I run it as an installed WAR file I am getting a nasty null pointer exception (running from $catalina.home/webapps/my_webapp). The issue: setWrapper() is never getting called when I have this inside the $catalina.home/webapps/ directory tree... only when I have it in $catalina.home/server/ directory tree. Any thoughts on this? When this webapp goes live it will be installed as a WAR file and I won't be able to control what directory it is in. Any thoughts? Here is my servlet, pretty basic, just trying to find the Context and DocBase: //-- SERVLET START -- import org.apache.catalina.*; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; import java.io.*; public class Ctx extends HttpServlet implements ContainerServlet { Context context; Deployer deployer; Wrapper wrapper; public Ctx() { context = null; deployer = null; wrapper = null; } public Wrapper getWrapper() { return wrapper; } public void setWrapper(Wrapper wrapper) { this.wrapper = wrapper; try { context = (Context)wrapper.getParent(); deployer = (Deployer)context.getParent(); } catch (NullPointerException e) { context = null; deployer = null; } } public void destroy() { // do nothing } public void init() { // do nothing } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { PrintWriter out = response.getWriter(); response.setContentType(text/plain); out.println(My Context Object: + context); out.println(Doc Base: + context.getDocBase()); out.flush(); out.close(); } } //-- SERVLET END -- -- /** * Robin Curts * [EMAIL PROTECTED] * http://www.robincurts.com * (813) 786-8634 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: Issue getting Context inside a servlet
Hi, To read a resource (file, serialized, doesn't matter), use either ServletContext#getResource or Class#getResource (or the getResourceAsStream equivalents). The former will get anything under your docBase, including in WEB-INF. The latter will get anything on your classpath, including in WEB-INF/classes and WEB-INF/lib (but not just WEB-INF, for example). So if a properties file is at /WEB-INF/myFile.prop, you'd use something like: Properties myProps = new Properties(); myProps.load(getServletContext().getResourceAsStream(/WEB-INF/myFile.pr op)); To read a serialized file from /WEB-INF/myData.ser, you'd use something like Object myObj = new ObjectInputStream(getServletContext().getResourceAsStream(/WEB-INF/myDa ta.ser)).readObject(); I abbreviate my examples to make them neat for this message. You might want to break them out into multiple lines and add null checks, e.g. if myFile.prop or myData.ser are not there, the getResourceAsStream call will return null. These approaches are safe, portable, efficient, and clean. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robin Curts [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 9:56 AM To: Tomcat Users List Subject: Re: Issue getting Context inside a servlet Well I have some files that I want to have available to the web application (properties file, some serialized objects). My first attempt was to add -Dhomedir=/path/to/some/directory when I started tomcat -- but that doesn't seem correct. So then I wanted to get the path to the WEB-INF directory and put everything into there. Neither solution seems all that great, and if you have any suggestions I'm all ears. By the way -- the getServletContext().getRealPath(/) was fantastic. Thanks for that tip. Shapira, Yoav wrote: Hi, Why are you even going down this route? Any solution you end up with will be tied to Tomcat and not portable at all. There's also no guarantee we'll keep these internal APIs consistent or available to your webapp in future Tomcat versions. If you do want to keep going down this path, you probably need to mark your context as privileged, like the manager webapp does (see its context.xml file for an example). The hack to get the DocBase getServletContext().getRealPath(/). That works for unpacked WARs but not packed WARs, where getRealPath(anything) returns null. If you need the docBase simply as a URL, you can always do getServletContext().getResource(/) which will work in packed and unpacked webapp deployments. If you elaborate a bit on why you need the docbase, we might be able to come up with better alternative approaches for you. Don't make your solution container-specific unless you really have to. Stick to the letter and the spirit of the Servlet Spec, and you'll end up with a portable webapp. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robin Curts [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Issue getting Context inside a servlet What I am trying to accomplish: I'm trying to build a servlet that I can get the DocBase with, so I'm trying to locate org.apache.catalina.Context from the servlet. Tomcat Version: 5.0.28 Java Version: 1.4.2_05 What I'm doing: I am implementing ContainerServlet and this works great when I run the servlet through a web application defined in $catalina.home/servers/webapps/my_webapp. Pretty much in the same place as the manager servlet. However when I run it as an installed WAR file I am getting a nasty null pointer exception (running from $catalina.home/webapps/my_webapp). The issue: setWrapper() is never getting called when I have this inside the $catalina.home/webapps/ directory tree... only when I have it in $catalina.home/server/ directory tree. Any thoughts on this? When this webapp goes live it will be installed as a WAR file and I won't be able to control what directory it is in. Any thoughts? Here is my servlet, pretty basic, just trying to find the Context and DocBase: //-- SERVLET START -- import org.apache.catalina.*; import javax.servlet.http.*; import javax.servlet.*; import java.util.*; import java.io.*; public class Ctx extends HttpServlet implements ContainerServlet { Context context; Deployer deployer; Wrapper wrapper; public Ctx() { context = null; deployer = null; wrapper = null; } public Wrapper getWrapper() { return wrapper; } public void setWrapper(Wrapper wrapper) { this.wrapper = wrapper; try { context = (Context)wrapper.getParent(); deployer = (Deployer)context.getParent(); } catch (NullPointerException e) { context = null; deployer = null; } } public void destroy() { // do nothing } public void init() { // do nothing } public void doPost(HttpServletRequest request, HttpServletResponse response) throws
RE: Can apache deal with static content in packed application(war ,ear) with jk2 and jboss/tomcat
Sure you can let Apache handle static files. Just setup httpd.conf. The problem that I have is when I deploy ROOT application in Tomcat, Apache is useless, any static files, cgi scripts etc. will be handled by Tomcat. -Original Message- From: Kurt Zhou [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 5:35 AM To: [EMAIL PROTECTED] Subject: Can apache deal with static content in packed application(war,ear) with jk2 and jboss/tomcat In jboss3.2.1-tomcat4.1.24 , deply a ear package usally cause war was deployed in a temporary directory,and jsp will be compiled into a temproray work directory. For this scenario, can the images or static html files be dealed with by Apache server? For a unpacked web application ,we can mapping the application path to apache path, for examples images path in web application,and we can config our servlet or jsp file to be dealed with by tomcat. But for a packed application, is it useful? How can we do the mapping for the static content in a packed application? or they are dealed with by tomcat and return the result to apache, and then apache response to the client response? Thanks Kurt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416cf6de83376299862908!
Re: DataSourceRealm vs. Administration Tool - A bug?
Hello, I have fixed my problem by adding the necessary section to mbeans-descriptors.xml for the DataSourceRealm. I basically coppied the section for JDBC Realm and changed the values. Zipped it back into catalina.jar where I got it from. Surely if this is not fixed in Tocmat 4.1.31 it should be considered as a fix necessary for 4.1.32 (when does the 4.1.x line end?). For those who want to use this I have included the XML I used, remember this has *not* been tested other than to watch it boot and note that there were no errors and then run both the Admin Tool and use the DataSource. STOP! Just used the DataSource and cannot login, I have thrown a couple of hours at it and will have to revert to the old realm :-( Unfortunately upgrading to version 5.0.28 is not an option for me. Andoni. mbean name=DataSourceRealm className=org.apache.catalina.mbeans.ClassNameMBean description=Implementation of Realm that works with any JDBC supported database and JNDI domain=Catalina group=Realm type=org.apache.catalina.realm.DataSourceRealm attribute name=className description=Fully qualified class name of the managed object type=java.lang.String writeable=false/ attribute name=debug description=The debugging detail level for this component type=int/ attribute name=dataSourceName description=The JNDI Description of the connection to use. type=java.lang.String/ attribute name=roleNameCol description=The column in the user role table that names a role type=java.lang.String/ attribute name=userCredCol description=The column in the user table that holds the user's credentials type=java.lang.String/ attribute name=userNameCol description=The column in the user table that holds the user's username type=java.lang.String/ attribute name=userRoleTable description=The table that holds the relation between user's and roles type=java.lang.String/ attribute name=userTable description=The table that holds user data type=java.lang.String/ /mbean - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 1:52 PM Subject: RE: DataSourceRealm vs. Administration Tool - A bug? Hi, If you get few responses to this question, I suggest trying 5.0.28 to see if the problem is still around in that version. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:30 AM To: Tomcat Users List Subject: DataSourceRealm vs. Administration Tool - A bug? Hello, I have just installed Tomcat 4.1.24 and I have it nearly exactly the way I want it now. I am doing my testing on Windows 2000 and Tomcat 4.1.27. The only other thing I want to implement is the DataSourceRealm. Here I am having problems though as I have the Administration Tool set up and therefore had to have the JMX MBeans listeners in server.xml enabled. These would seem to conflict with the DataSourceRealm though as when I have both in place I get the error: java.lang.Exception: ManagedBean is not found with DataSourceRealm When I remove either one the other works fine so I know the conflict is here. Is this just something I have to live with? I read the release notes for 4.1.31 and they seem to suggest that this is not something that has been fixed in a later release. Has it? My thanks as ever, Andoni This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DataSourceRealm vs. Administration Tool - A bug?
Hi, Thank you for posting your solutions -- hopefully others find it useful. Surely if this is not fixed in Tocmat 4.1.31 it should be considered as a fix necessary for 4.1.32 (when does the 4.1.x line end?). See, this exactly was why I didn't want a 4.1.31 release. For the vast majority of Tomcat developers, the 4.1.x line ended a long time ago. But recently a couple of committers wanted to do a 4.1.31 maintenance release. I and others argued against it, but we lost mostly due to a procedural constraint in how the ASF operates. So now you have the 4.1.31 release, and the perception that the 4.1 line is active. It's not. Anyone who can should upgrade to 5.0 ASAP. This has been the message for a while, and it continues to be the message now. As you see, no one else answered this thread except me, and I only answered to this effect, not helping you with the actual problem (because I don't know the answer and I don't have time to waste on 4.1, but thankfully you've solved it yourself by now). Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection Pooling using JNDI DataSource
Hi all, Could you please confirm me that when using JNDI DataSource described there http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations (just defining the Datasource in your server.xml file and configuring the resource in web.xml) and adding the code below in every page (or better in a bean) i would get all the DBCP functionalities. So for instance, each time i'll made a getConnection i will use a connection from the pool and not creating one. Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); Connection conn = ds.getConnection(); seems to be too simple to work this way, isn't it :-) Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletException not wrapping cause correctly
Hi, Well, the chances of it being changed on this list are nil ;) The chances of it being changed by the JSR154 team are better: contact them at http://www.jcp.org/en/jsr/detail?id=154. If/when the Spec changes, it will be reflected in our CVS repositories. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 10:29 AM To: 'Tomcat Users List' Subject: ServletException not wrapping cause correctly The short version is: ServletException does not appear to wrap causes properly - is this a bug, or a case of works as designed, or am I just using it wrong? Also, what are the chances of it being changed to fall into line with how other Throwables work? More details (from a longer mail that I sent last week): The problem is that when wrapping an Exception with ServletException, it seems to not wrap the underlying cause correctly, in that it cannot be retrieved using Throwable's getCause() method later. Instead, the cause has to be retrieved using ServletException's own getRootCause() method. So in the case below, the output is null then java.lang.Exception: My error message: import javax.servlet.ServletException; public class ServletExceptionTest { public static void main(String[] args) { Exception e = new Exception(My error message); ServletException se = new ServletException(e); System.out.println(se.getCause()); System.out.println(se.getRootCause()); } } This means having to write specific code to handle ServletExceptions, rather than being able to treat all Throwables generically. This seems to go against the benefits of inheritance...? Perhaps ServletException was not retrofitted to the cause approach when this was introduced in JDK 1.4?? Or is there something more to it than that, which I'm missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DataSourceRealm vs. Administration Tool - A bug?
4.1.x is still a very stable release. I reluctantly upgrade to 5.x until recently that I am having OutOfMemory issues with Tomcat Manager. I extended Manager by myself and patch my CGIServlet to handle 302 redirect. It will be a bug pain for me to upgrade. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 10:22 AM To: Tomcat Users List Subject: RE: DataSourceRealm vs. Administration Tool - A bug? Hi, Thank you for posting your solutions -- hopefully others find it useful. Surely if this is not fixed in Tocmat 4.1.31 it should be considered as a fix necessary for 4.1.32 (when does the 4.1.x line end?). See, this exactly was why I didn't want a 4.1.31 release. For the vast majority of Tomcat developers, the 4.1.x line ended a long time ago. But recently a couple of committers wanted to do a 4.1.31 maintenance release. I and others argued against it, but we lost mostly due to a procedural constraint in how the ASF operates. So now you have the 4.1.31 release, and the perception that the 4.1 line is active. It's not. Anyone who can should upgrade to 5.0 ASAP. This has been the message for a while, and it continues to be the message now. As you see, no one else answered this thread except me, and I only answered to this effect, not helping you with the actual problem (because I don't know the answer and I don't have time to waste on 4.1, but thankfully you've solved it yourself by now). Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416d3a2689573911934!
RE: Connection Pooling using JNDI DataSource
Hi, Yeah, it works. Note that your choice of words is a bit misleading: you don't configure anything in web.xml, you only declare a resource reference there. The declaration and configuration of the resource itself is all in server.xml. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 10:33 AM To: Tomcat Users List Subject: Connection Pooling using JNDI DataSource Hi all, Could you please confirm me that when using JNDI DataSource described there http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s- howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations (just defining the Datasource in your server.xml file and configuring the resource in web.xml) and adding the code below in every page (or better in a bean) i would get all the DBCP functionalities. So for instance, each time i'll made a getConnection i will use a connection from the pool and not creating one. Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); Connection conn = ds.getConnection(); seems to be too simple to work this way, isn't it :-) Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletException not wrapping cause correctly
Sorry Yoav, but I'm not clear on why JSR154 is the place - I'd be grateful if you could explain a little more please :) Are you saying that the problem is that the spec is wrong, rather than that there is a bug in implementing it? Or maybe that the code for ServletException is written by that team rather than the Tomcat team? Also, I as looking for views from list members on whether this is actually a bug or not . :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday 13 October 2004 15:35 To: Tomcat Users List Subject: RE: ServletException not wrapping cause correctly Hi, Well, the chances of it being changed on this list are nil ;) The chances of it being changed by the JSR154 team are better: contact them at http://www.jcp.org/en/jsr/detail?id=154. If/when the Spec changes, it will be reflected in our CVS repositories. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 10:29 AM To: 'Tomcat Users List' Subject: ServletException not wrapping cause correctly The short version is: ServletException does not appear to wrap causes properly - is this a bug, or a case of works as designed, or am I just using it wrong? Also, what are the chances of it being changed to fall into line with how other Throwables work? More details (from a longer mail that I sent last week): The problem is that when wrapping an Exception with ServletException, it seems to not wrap the underlying cause correctly, in that it cannot be retrieved using Throwable's getCause() method later. Instead, the cause has to be retrieved using ServletException's own getRootCause() method. So in the case below, the output is null then java.lang.Exception: My error message: import javax.servlet.ServletException; public class ServletExceptionTest { public static void main(String[] args) { Exception e = new Exception(My error message); ServletException se = new ServletException(e); System.out.println(se.getCause()); System.out.println(se.getRootCause()); } } This means having to write specific code to handle ServletExceptions, rather than being able to treat all Throwables generically. This seems to go against the benefits of inheritance...? Perhaps ServletException was not retrofitted to the cause approach when this was introduced in JDK 1.4?? Or is there something more to it than that, which I'm missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TagLibs must be cached
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
RE: Connection Pooling using JNDI DataSource
As Yoav says, it works, and is very easy to use once you have it configured. But note that lots of people seem to have trouble getting the config right. I was one of those. You have to persevere a bit. The problem I had was that there are lots of pages on lots of websites that describe how to do it, and each page explains one of a number of different approaches (there is more than one way to do it, besides the one you linked to, but don't worry about that for now - the approach on that page is fine). Stick carefully to the set of instructions in your link, and it should work. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday 13 October 2004 15:26 To: Tomcat Users List Subject: RE: Connection Pooling using JNDI DataSource Hi, Yeah, it works. Note that your choice of words is a bit misleading: you don't configure anything in web.xml, you only declare a resource reference there. The declaration and configuration of the resource itself is all in server.xml. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 10:33 AM To: Tomcat Users List Subject: Connection Pooling using JNDI DataSource Hi all, Could you please confirm me that when using JNDI DataSource described there http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasour ce-example s- howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurat ions (just defining the Datasource in your server.xml file and configuring the resource in web.xml) and adding the code below in every page (or better in a bean) i would get all the DBCP functionalities. So for instance, each time i'll made a getConnection i will use a connection from the pool and not creating one. Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); Connection conn = ds.getConnection(); seems to be too simple to work this way, isn't it :-) Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletException not wrapping cause correctly
Hi, Sorry Yoav, but I'm not clear on why JSR154 is the place - I'd be grateful if you could explain a little more please :) Are you saying that the problem is that the spec is wrong, rather than that there is a bug in implementing it? Or maybe that the code for ServletException is written by that team rather than the Tomcat team? The latter: it's not our implementation. I'm not saying the Spec is wrong either. This is just a nice-to-have, at most. Also, I as looking for views from list members on whether this is actually a bug or not . :) It can't be a bug, because there's nothing broken. At most, it's an inconsistency and therefore an enhancement request. And because that code is managed and written by the JSR 154 team (even though it's in our CVS repository, we don't even have commit privileges to it), the discussion should take place with them. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TagLibs must be cached
I'm not sure I understand the question, but you know that you can use the enablePooling parameter to set if a jsp tag should be pooled or instanciated for each use. see : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html it's set to true by default I think. hope it helps, reynir Edson Alves Pereira wrote: Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New to list -Mod_JK2 question-
Hello, Im new to this list so feel free to slap me around if needed. I have setup multiple jvms using apache 2 and mod_jk2, despite the lousy mod_jk2 documentation. What I have found is that it seems with mod_jk2 that you have to map EVERYTHING, every extension etc, and all webapps in the workers2.properties. This seems to be a bit of an overkill. I do: [uri:domain.com:80/*] group=ajp13:name I also have to do this to include www: [uri:www.domain.com:80/*] group=ajp13:name Now the jsp will work but non of the image do either hence uris for *.gif, *.jpg and *.png Then if person using dedicated jvm wants new webapp, they need to add context in server.xml, restart their tomcat. Still doesnt work until I add to workers2: [uri:domain.com:80/webapp/*] context=/webapp group=ajp13:name [uri:www.domain.com:80/webapp/*] context=/webapp group=ajp13:name Theres got to be easier way to do this, Never had to bother with workers.properties so much using mod_jk. Am I Missing something? Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple tomcat instance and log4j
Simon, I use a mix of *nix and Windows here. I've found that using copy with the (+) option does a pretty nice job of concatenating log files. *nix has tools for that natively. As for sorting, Windows has a 'sort' module that can sort pretty good sized input files. You have to pass the unsorted file as redirected input and capture the output the same way - I've built several batch files that do this for various clients. Of course, once you have a merged and sorted log file, any log processor should analyze it. Hope this helps. Bob On Tue, 2004-10-12 at 14:20, Simon Zeng wrote: Thanks for the quick response. Seperate logs for each tomcat was my proposal too. But people like to have an easy way to view them as a whole. A nice merge tool would be nice. The first and minumum requirement for the tool is to merge and sort all log records by time so that it can really be viewed as if there is only one log file. grep/sort command in unix might help, but we are in Windows. Chainsaw and Lumbermill provides nice GUI and filtering but i don't see merge function in them. Any suggestions? Thanks a lot, -Simon -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 1:51 PM To: Tomcat Users List Subject: RE: multiple tomcat instance and log4j Hi, It is my impression that lots of people on this user list are using log4j as their logging mechanism. Also i believe lots of people here use multiple tomcat instances for load balancing. I am wondering how you guys are using log4j in this case. If anyone can give me some ideas and/or answer my questions below, that will be greatly appreciated. I'm one of those people, and my usage is as simple as can be: everything separate. Each webapp has its own log4j.properties and log4j.jar in WEB-INF/lib. Each Tomcat server has its own logging configuration. They all write to separate log files. I use programmatic configuration with a repository selector originally written by Jacob Kjome and available in the log4j CVS repository. I (or rather our admins) also use the configuration servlet in from the log4j CVS to change log4j settings at runtime, and they sometimes attach chainsaw to running systems to look at what's going on. All of this has been working for years now without a problem, using log4j 1.2.8 and various versions of tomcat. Since I don't combine the logs or run any sort of statistics from them, I can't help with those questions you had. My take on it is to always keep everything separate. It's easier to manage, deploy, and inspect only the relevant logs when an error occurs. Disk space is virtually free not only for big companies anymore, but for nearly anyone, so the cost of having N copies of the log4j.jar is negligible. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: individual tomcat instances...
Yes, the shutdown ports need to be different for each instance. On Wed, 2004-10-13 at 11:53, Jonathan Villa wrote: I have about 5 users on a linux box...I want to be able to run 5 instances of tomcat at the same time, each controlled by a different user... I know I'll have to make tomcat run on different ports, so I've looked at the server.xml file... I've tried changing the ports for each different installation, but can only get one instance running at a time... is there anything else I need to modify... This is what I'm changing Connector port=8085 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reloading JSP files without reloading classes/beans
Bob, thanks for all the good pointers. This is just the information about web-app development I've been needing but didn't know how to find(or what to look for). I've played with ANT a bit before, but I didn't know there was an applet to do the deployment for me(is that process portable to diff web-app servers?). I've got the same problem with session retention after a reload(if contexts' reloadable=true that is) - and it sounds like it will still be a problem after I upgrade my development practices and start using WARs. Since you seem like a free thinker :) do you have any ideas on a solution for that problem? I was researching load-balancing Monday and came across a solution that mentioned sessions were retained on a different instance of tomcat(but were accessible to all, somehow - too much for me to digest); perhaps that will provide a path? Here's the link: http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html Regards, JW Robert Bateman wrote: On Mon, 2004-10-11 at 18:27, Jonathan Wilson wrote: Bob, You just answered my follow up to your previous email :) Hmm, so I run a concurrent version of my production app(being careful not to impact the databases) either on a different instance of Tomcat or just a different context within the same instance of Tomcat. Yes. I use a tool called ANT to process, build and deploy my applications via WAR files. In my ANT build file, I have separate tasks that deploy to production and test. Because I am deploying using a WAR file, each application has it's own configuration file (server.xml) called context.xml. In my case, I have two different configuration files - each specifically tailored to the environment I will deploy into. All my ANT task does is copy the appropriate config during the build. Then when I'm ready I package up the source code into a WAR(what tool do I use for that? - must do research), copy it into the production servers You build the WAR file with a program called JAR. WAR files are zip files with different extensions (in fact, you can rename a WAR file to .ZIP and open the file for inspection.) As you build the WAR file, you want to compile any source modules that need compiling and place them into WEB-INF/classes. JAR files go into WEB-INF/lib so that the WAR file is self contained. webapps directory(and hopefully have all the configuration set properly If your version of Tomcat supports it, instead of copying into the WEBAPPS folder, you can use the manager applets' UNDEPLOY/DEPLOY capability. This allows the server to take your WAR file and put it into the appropriate place on the server. Under TC 4.1 and newer, I've been using a task in ANT that communicated with the manager applet for me and does all of the un/deploying - quite spiffy. to auto-expand) and then what? If the WAR is automatically expanded do the new files take effect immediately I'm not sure about TC version 3 (I use 4.1 and 5.0), but on my server, the WAR file is placed into the appropriate place and put live as soon as it's deployed. I've found in my environment, that I have to be careful not to deploy when there are active sessions because my application doesn't handle the refresh gracefully. or do I need to restart tomcat still. Does the context in the server.xml need reloadable=true set for a WAR file expansion to take effect immediately? With WAR files, you don't touch server.xml any more. All of your web application specific configuration parameters are placed into context.xml in a folder called META-INF within the WAR. The server parses this file to determine how to deploy your application, what resources it needs, logging, etc. Nicely self contained. Thanks for the info..connected some dots for me. New Question (While I've got ya :): Given that I can use a WAR file to deploy, would you advise using Tomcat 5.x as my test server, creating a WAR and then deploying that to a production 3.3.1 server? I gotta agree with QM on this one... Test with the version that is in production. Is it possible for you folks to atleast migrate up to TC 4.1.xx in production? Your closer to current that way and migrating to 5.xx might be easier once you feel comfortable with TC 5. This would kinda let me test using 5.x and still support a 3.3.1 box. The app is very self-contained, except for a load of jar's in the lib. Thanks for you time!! JW Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: individual tomcat instances...
Plus 8009 needs to be changed if you plan to use mod_jk(2) ajp13 to apache. John Yes, the shutdown ports need to be different for each instance. On Wed, 2004-10-13 at 11:53, Jonathan Villa wrote: I have about 5 users on a linux box...I want to be able to run 5 instances of tomcat at the same time, each controlled by a different user... I know I'll have to make tomcat run on different ports, so I've looked at the server.xml file... I've tried changing the ports for each different installation, but can only get one instance running at a time... is there anything else I need to modify... This is what I'm changing Connector port=8085 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache MaxClients vs. what in JK2 configuration?
Is the answer to this, that the associated connector on Tomcat's end just allows as many connections as needed? And you don't get to (nor want to) define a max limit? Thank you, -Raiden Johnson On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hello, I currently have one Apache instance talking to one Tomcat instance. However, I really want to understand the relationship between client connections, because I plan to make this two Apache servers talking to one or two Tomcat servers. In Apache you can configure the maximum number of connections via MaxClients? What is the counterpart for JK2? If I have two Apache instances (each with 200 MaxClients) talking to one Tomcat server, I need to configure Tomcat for 400 maximum connections, right? Where do I do this? (I can see it for the Coyote connector on 8080, but not for the 8009 connector). Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 with JBuilder X
Hello, I am trying to make tomcat 5 working with JBuilder to make possible the debug of my web application. However, I don't find anyway to make it wirk. I found a solution on the borland website, but it still does not work. So I was wondering if somebody succeed, If you can help me I would apreciate. Thank you by advance Doud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.31
Sorry. Try this: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apac he/catalina/session/JDBCStore.java -Original Message- From: Harald Henkel [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:30 AM To: 'Tomcat Users List' Subject: Re: Tomcat 4.1.31 Hello. I think all that has happened is that the announcement has come out before all the mirrors have synchronised with the apache servers - hence you might see an older release. For the record, it is both available and production quality. Well, yes, now its updated. So my question still remains: In the Release Notes (which are alread available) I found: JDBCStore: Optimize use of database session persistence to improve scaling and performance. Does anybody have more details (link?) on this change ? With kind regards, Harald Henkel -- Harald Henkel GS automation GmbH Winterstraße 2 82223 Eichenau Germany Tel:+ 49-8141-35 731-37 Fax:+ 49-8141-35 731-38 Mobile: + 49-178-7829126 e-mail: [EMAIL PROTECTED] Web:www.GS-automation.DE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TagLibs must be cached
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
Classloader / oracle JDBC
Hello All, I have a problem using oracle jdbc in tomcat. JDBC call fails with java.sql.SQLException: Non supported character set: oracle-character-set-46 (see full stack trace below). After some investigation, I came to the conlusion that translation tables that are in the *.gbl files in orai18n.jar are not read properly. Is it possible that tomcat classloader does not allow reading *.gbl files from orai18n.jar? Or perhaps there is some other reason jdbc crashes on tomcat? Versions: Tomcat 5.0.28 Oracle jdbc 10.1.0.2.0, both OCI and thin Oracle 9.2.0.5.0 database in WE8ISO8859P15 characterset Thank you in advance, Michal. - java.sql.SQLException: Non supported character set: oracle-character-set-46 at oracle.gss.util.NLSError.throwSQLException(NLSError.java:65) at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactoryThi n.java:178) at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:145) at oracle.sql.CHAR.init(CHAR.java:147) at oracle.jpub.runtime.Util._convertToOracle(Util.java:166) at oracle.jpub.runtime.Util.convertToOracle(Util.java:138) at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:2 92) at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java: 311) at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:109) at org.glite.data.catalog.service.database.principalTokenFAS.toDatum(princi palTokenFAS.java:43) at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePrep aredStatement.java:7112) at oracle.jdbc.driver.OracleCallableStatement.setORAData(OracleCallableStat ement.java:4522) at org.glite.data.catalog.service.database.OraReplicaCatalog.setdefaultuser permission(OraReplicaCatalog.java:791) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBindingImpl.set DefaultUserPermission(ReplicaCatalogSoapBindingImpl.java:628) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBindingSkeleton .setDefaultUserPermission(ReplicaCatalogSoapBindingSkeleton.java:493) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java :402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja va:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333 ) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j ava:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
RE: Classloader / oracle JDBC
Hi, Tomcat itself contains no Oracle-proprietary bits, nor any special handling of GBL files. Where is orai18n.jar located? It should be alongside the ojdbc14.jar (assuming that's what you're using) so it's loaded by the same classloader. I see you have a fairly complex deployment, with Axis running and relying on the Oracle data catalog. So naturally, my next question is if you can reproduce the error under simpler circumstances, e.g. in a command-line program or a simple servlet. Finally, although you've already done this probably, I'd suggest looking online: there are a number of good Oracle configuration references. Chances are you're missing a simple configuration step somewhere along the way. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Michal Kwiatek [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 1:30 PM To: Tomcat Users List Subject: Classloader / oracle JDBC Hello All, I have a problem using oracle jdbc in tomcat. JDBC call fails with java.sql.SQLException: Non supported character set: oracle-character-set-46 (see full stack trace below). After some investigation, I came to the conlusion that translation tables that are in the *.gbl files in orai18n.jar are not read properly. Is it possible that tomcat classloader does not allow reading *.gbl files from orai18n.jar? Or perhaps there is some other reason jdbc crashes on tomcat? Versions: Tomcat 5.0.28 Oracle jdbc 10.1.0.2.0, both OCI and thin Oracle 9.2.0.5.0 database in WE8ISO8859P15 characterset Thank you in advance, Michal. - java.sql.SQLException: Non supported character set: oracle-character-set-46 at oracle.gss.util.NLSError.throwSQLException(NLSError.java:65) at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactoryTh i n.java:178) at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:145 ) at oracle.sql.CHAR.init(CHAR.java:147) at oracle.jpub.runtime.Util._convertToOracle(Util.java:166) at oracle.jpub.runtime.Util.convertToOracle(Util.java:138) at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java: 2 92) at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java : 311) at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:109) at org.glite.data.catalog.service.database.principalTokenFAS.toDatum(princ i palTokenFAS.java:43) at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePre p aredStatement.java:7112) at oracle.jdbc.driver.OracleCallableStatement.setORAData(OracleCallableSta t ement.java:4522) at org.glite.data.catalog.service.database.OraReplicaCatalog.setdefaultuse r permission(OraReplicaCatalog.java:791) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBindingImpl.se t DefaultUserPermission(ReplicaCatalogSoapBindingImpl.java:628) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBindingSkeleto n .setDefaultUserPermission(ReplicaCatalogSoapBindingSkeleton.java:493) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.jav a :402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.j a va:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:33 3 ) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy. j ava:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase. j ava:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC o ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo n
Re: mod_jk2 Ready/Recommended For Production?
From the tomcat-devel list: So is JK2 dead because of proxy_ajp? Why doesn't JK2 just replace JK? JK2 is dead because (like mod_webapp before it :), it failed to attract a community interested in maintaining it. You might as well ask 'why doesn't mod_webapp just replace JK?' For some reason the online archive at http://www.mail-archive.com/[EMAIL PROTECTED]/ only has messages through the 8th, and that was posted on the 11th. Mike Millson wrote: The Tomcat FAQ page still says that mod_jk is great and should be used for production and mod_jk2 may not be production worthy for everyone. http://jakarta.apache.org/tomcat/faq/connectors.html#vs Is this still accurate, or is mod_jk2 now ready/recommended for production? Thank you, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classloader / oracle JDBC
Both ojdbc14.jar and orai18n.jar are in commons/lib/ Any ideas? I see you have a fairly complex deployment, with Axis running and relying on the Oracle data catalog. So naturally, my next question is if you can reproduce the error under simpler circumstances, e.g. in a command-line program or a simple servlet. It work's fine from a command-line tool. Finally, although you've already done this probably, I'd suggest looking online: there are a number of good Oracle configuration references. Chances are you're missing a simple configuration step somewhere along the way. Can you point me to some specific howtos? Thanks, Michal. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Michal Kwiatek [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 1:30 PM To: Tomcat Users List Subject: Classloader / oracle JDBC Hello All, I have a problem using oracle jdbc in tomcat. JDBC call fails with java.sql.SQLException: Non supported character set: oracle-character-set-46 (see full stack trace below). After some investigation, I came to the conlusion that translation tables that are in the *.gbl files in orai18n.jar are not read properly. Is it possible that tomcat classloader does not allow reading *.gbl files from orai18n.jar? Or perhaps there is some other reason jdbc crashes on tomcat? Versions: Tomcat 5.0.28 Oracle jdbc 10.1.0.2.0, both OCI and thin Oracle 9.2.0.5.0 database in WE8ISO8859P15 characterset Thank you in advance, Michal. - java.sql.SQLException: Non supported character set: oracle-character-set-46 at oracle.gss.util.NLSError.throwSQLException(NLSError.java:65) at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSe tFactoryTh i n.java:178) at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThi n.java:145 ) at oracle.sql.CHAR.init(CHAR.java:147) at oracle.jpub.runtime.Util._convertToOracle(Util.java:166) at oracle.jpub.runtime.Util.convertToOracle(Util.java:138) at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableSt ruct.java: 2 92) at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableS truct.java : 311) at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:109) at org.glite.data.catalog.service.database.principalTokenFAS.toD atum(princ i palTokenFAS.java:43) at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal (OraclePre p aredStatement.java:7112) at oracle.jdbc.driver.OracleCallableStatement.setORAData(OracleC allableSta t ement.java:4522) at org.glite.data.catalog.service.database.OraReplicaCatalog.set defaultuse r permission(OraReplicaCatalog.java:791) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBind ingImpl.se t DefaultUserPermission(ReplicaCatalogSoapBindingImpl.java:628) at org.glite.data.catalog.service.replica.ReplicaCatalogSoapBind ingSkeleto n .setDefaultUserPermission(ReplicaCatalogSoapBindingSkeleton.java:493) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCPr ovider.jav a :402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPC Provider.j a va:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvid er.java:33 3 ) at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio nStrategy. j ava:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService. java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet .java:854) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisSe rvletBase. j ava:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFil ter(Applic a tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl icationFil t erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(Standard WrapperVal v e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(Stan dardValveC o ntext.java:104) at
RE: Classloader / oracle JDBC
Hi, Both ojdbc14.jar and orai18n.jar are in commons/lib/ Assuming you mean common/lib, that should be fine. It work's fine from a command-line tool. Is the runtime classpath for the command-line tool that works the same as the runtime classpath within tomcat? Can you point me to some specific howtos? Dude (or Gal), Google ;) Here are a few that seem relevant: http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/java.9 20/a96657/jspnls.htm http://www.doc.gold.ac.uk/oracle/doc/java.817/a83726/jspnls3.htm http://radio.weblogs.com/0118231/stories/2003/08/08/installingTheBc4jToy StoreOnApacheTomcat4124.html http://www.exzilla.net/node/view/9?PHPSESSID=c923a9f76ddb761f003df7bd8de a2f5c#_NLS There are many others that also look promising. Hopefully the above will be helpful. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fileupload - Stream terminated unexpectedly
I've seen this issue mentioned before after searching the archive and using google, but I am unclear if there was any possible solutions. I have a web app that uses the package 'org.apache.commons.upload' to upload a file to the server. It is running on IIS 6 with isapi_redirector2.dll. The issue is that some users get a Stream terminated unexpectedly error when they try to upload a file. If I use port 8080 users have no problems. Is there any possible workaround without going back to the older redirector or using Tomcat standalone? Thanks! Greg Ellis The information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by email ([EMAIL PROTECTED]), and destroy the original message. Thank you.
RE: Apache MaxClients vs. what in JK2 configuration?
I believe the equivalent is maxProcessors -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:41 AM To: Tomcat Users List Subject: Re: Apache MaxClients vs. what in JK2 configuration? Is the answer to this, that the associated connector on Tomcat's end just allows as many connections as needed? And you don't get to (nor want to) define a max limit? Thank you, -Raiden Johnson On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hello, I currently have one Apache instance talking to one Tomcat instance. However, I really want to understand the relationship between client connections, because I plan to make this two Apache servers talking to one or two Tomcat servers. In Apache you can configure the maximum number of connections via MaxClients? What is the counterpart for JK2? If I have two Apache instances (each with 200 MaxClients) talking to one Tomcat server, I need to configure Tomcat for 400 maximum connections, right? Where do I do this? (I can see it for the Coyote connector on 8080, but not for the 8009 connector). Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 Ready/Recommended For Production?
On Wed, 2004-10-13 at 13:42, Joseph Shraibman wrote: From the tomcat-devel list: So is JK2 dead because of proxy_ajp? Why doesn't JK2 just replace JK? Ah, I see. This message from tomcat-devel shows the JK ToDo list: http://www.mail-archive.com/[EMAIL PROTECTED]/msg63908.html It is indeed dead. It looks like the plan is to roll jk2 features into jk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple tomcat instance and log4j
Bob, thanks -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Wednesday, 13 October 2004 11:40 To: Tomcat Users List Subject: RE: multiple tomcat instance and log4j Simon, I use a mix of *nix and Windows here. I've found that using copy with the (+) option does a pretty nice job of concatenating log files. *nix has tools for that natively. As for sorting, Windows has a 'sort' module that can sort pretty good sized input files. You have to pass the unsorted file as redirected input and capture the output the same way - I've built several batch files that do this for various clients. Of course, once you have a merged and sorted log file, any log processor should analyze it. Hope this helps. Bob On Tue, 2004-10-12 at 14:20, Simon Zeng wrote: Thanks for the quick response. Seperate logs for each tomcat was my proposal too. But people like to have an easy way to view them as a whole. A nice merge tool would be nice. The first and minumum requirement for the tool is to merge and sort all log records by time so that it can really be viewed as if there is only one log file. grep/sort command in unix might help, but we are in Windows. Chainsaw and Lumbermill provides nice GUI and filtering but i don't see merge function in them. Any suggestions? Thanks a lot, -Simon -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 1:51 PM To: Tomcat Users List Subject: RE: multiple tomcat instance and log4j Hi, It is my impression that lots of people on this user list are using log4j as their logging mechanism. Also i believe lots of people here use multiple tomcat instances for load balancing. I am wondering how you guys are using log4j in this case. If anyone can give me some ideas and/or answer my questions below, that will be greatly appreciated. I'm one of those people, and my usage is as simple as can be: everything separate. Each webapp has its own log4j.properties and log4j.jar in WEB-INF/lib. Each Tomcat server has its own logging configuration. They all write to separate log files. I use programmatic configuration with a repository selector originally written by Jacob Kjome and available in the log4j CVS repository. I (or rather our admins) also use the configuration servlet in from the log4j CVS to change log4j settings at runtime, and they sometimes attach chainsaw to running systems to look at what's going on. All of this has been working for years now without a problem, using log4j 1.2.8 and various versions of tomcat. Since I don't combine the logs or run any sort of statistics from them, I can't help with those questions you had. My take on it is to always keep everything separate. It's easier to manage, deploy, and inspect only the relevant logs when an error occurs. Disk space is virtually free not only for big companies anymore, but for nearly anyone, so the cost of having N copies of the log4j.jar is negligible. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Locked jar during Ant undeploy on Tomcat 5.5.3
After executing several Ant undeploys, I've noticed that Tomcat 5.5.3 is locking jar files in WEB-INF/lib, preventing complete application removal. Has anyone else encountered this behaviour? I remember that in very early releases, Tomcat 5.0 exhibited similar behaviour, but in later releases this behaviour went away. Has it crept back into 5.5? Configuration: Tomcat 5.5.3 JRE 1.5.0 Windows XP SP2 Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Locked jar during Ant undeploy on Tomcat 5.5.3
Hola, Do you have the antiJARLocking attribute enabled for your Context? If not, does turning it on make a difference? Yoav Shapira http://www.yoavshapira.com -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Derek Mahar Sent: Wednesday, October 13, 2004 3:20 PM To: [EMAIL PROTECTED] Subject: Locked jar during Ant undeploy on Tomcat 5.5.3 After executing several Ant undeploys, I've noticed that Tomcat 5.5.3 is locking jar files in WEB-INF/lib, preventing complete application removal. Has anyone else encountered this behaviour? I remember that in very early releases, Tomcat 5.0 exhibited similar behaviour, but in later releases this behaviour went away. Has it crept back into 5.5? Configuration: Tomcat 5.5.3 JRE 1.5.0 Windows XP SP2 Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache MaxClients vs. what in JK2 configuration?
So would it be correct to assume that you want MaxProcessors to be set to the maximum number of Apache clients (MaxClients) that you can have connecting to it at once? So, for the example of 2 Apache servers, each with 200 MaxClients, connecting to the same Tomcat server... we'd want MaxProcessors set to 400? Thanks, -Raiden Johnson On Wed, 13 Oct 2004, Montz, James C. (James Tower) wrote: I believe the equivalent is maxProcessors -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:41 AM To: Tomcat Users List Subject: Re: Apache MaxClients vs. what in JK2 configuration? Is the answer to this, that the associated connector on Tomcat's end just allows as many connections as needed? And you don't get to (nor want to) define a max limit? Thank you, -Raiden Johnson On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hello, I currently have one Apache instance talking to one Tomcat instance. However, I really want to understand the relationship between client connections, because I plan to make this two Apache servers talking to one or two Tomcat servers. In Apache you can configure the maximum number of connections via MaxClients? What is the counterpart for JK2? If I have two Apache instances (each with 200 MaxClients) talking to one Tomcat server, I need to configure Tomcat for 400 maximum connections, right? Where do I do this? (I can see it for the Coyote connector on 8080, but not for the 8009 connector). Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache MaxClients vs. what in JK2 configuration?
Also, what happens if you have an Apache server with 200 clients, and a Tomcat server with MaxProcessors at 100. When you get over 100 Apache clients, do they wait for a turn at a Tomcat connection, or do they return an error? (In mod_jk Apache returned an error instead of waiting for a connection. Was wondering what the situation is for mod_jk2.) Thanks, -Raiden Johnson On Wed, 13 Oct 2004 [EMAIL PROTECTED] wrote: So would it be correct to assume that you want MaxProcessors to be set to the maximum number of Apache clients (MaxClients) that you can have connecting to it at once? So, for the example of 2 Apache servers, each with 200 MaxClients, connecting to the same Tomcat server... we'd want MaxProcessors set to 400? Thanks, -Raiden Johnson On Wed, 13 Oct 2004, Montz, James C. (James Tower) wrote: I believe the equivalent is maxProcessors -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:41 AM To: Tomcat Users List Subject: Re: Apache MaxClients vs. what in JK2 configuration? Is the answer to this, that the associated connector on Tomcat's end just allows as many connections as needed? And you don't get to (nor want to) define a max limit? Thank you, -Raiden Johnson On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hello, I currently have one Apache instance talking to one Tomcat instance. However, I really want to understand the relationship between client connections, because I plan to make this two Apache servers talking to one or two Tomcat servers. In Apache you can configure the maximum number of connections via MaxClients? What is the counterpart for JK2? If I have two Apache instances (each with 200 MaxClients) talking to one Tomcat server, I need to configure Tomcat for 400 maximum connections, right? Where do I do this? (I can see it for the Coyote connector on 8080, but not for the 8009 connector). Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Locked jar during Ant undeploy on Tomcat 5.5.3
Are you doing undeploy or remove? -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 3:20 PM To: [EMAIL PROTECTED] Subject: Locked jar during Ant undeploy on Tomcat 5.5.3 After executing several Ant undeploys, I've noticed that Tomcat 5.5.3 is locking jar files in WEB-INF/lib, preventing complete application removal. Has anyone else encountered this behaviour? I remember that in very early releases, Tomcat 5.0 exhibited similar behaviour, but in later releases this behaviour went away. Has it crept back into 5.5? Configuration: Tomcat 5.5.3 JRE 1.5.0 Windows XP SP2 Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416d8250141351446164617!
Sun J2SE JVM + tomcat + Debian??
Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sun J2SE JVM + tomcat + Debian??
My config Dual-cpu Debian 3.0-woody Kernel 2.4.x Sun jdk 1.4.2_05 Tomcat 4.1.30 Apache 2.0.52 Our servers are running pretty well. -Original Message- From: Jeff Bowden [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 4:34 PM To: [EMAIL PROTECTED] Subject: Sun J2SE JVM + tomcat + Debian?? Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416d912c147098296419491!
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Are you doing undeploy or remove? I'm using Ant to deploy an application that is already installed and running on Tomcat. Ant first attempts to undeploy the application before it deploys it. Ant reports that this is successful, but Tomcat leaves a few locked jars behind. Yoav suggested that I enable the antiJARLockign attribute on the context. I'll try that and report what happens. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Locked jar during Ant undeploy on Tomcat 5.5.3
I assume you use deploy/undeploy. install/remove or undeploy/install will lock files. -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: October 13, 2004 4:53 PM To: [EMAIL PROTECTED] Subject: Re: Locked jar during Ant undeploy on Tomcat 5.5.3 Are you doing undeploy or remove? I'm using Ant to deploy an application that is already installed and running on Tomcat. Ant first attempts to undeploy the application before it deploys it. Ant reports that this is successful, but Tomcat leaves a few locked jars behind. Yoav suggested that I enable the antiJARLockign attribute on the context. I'll try that and report what happens. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416d95ad147521719214519!
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Hola, Do you have the antiJARLocking attribute enabled for your Context? If not, does turning it on make a difference? I enabled both antiJARLocking and antiResourceLocking in META-INF/context.xml, but Ant deploy (undeploy/deploy) still causes Tomcat to leave behind WEB-INF/lib/taglibs-session.jar. This is likely the last jar that Tomcat loads before I exit and invalidate a session. The application uses tag session:invalidate/ in taglibs-session.jar to invalidate the session. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Shapira, Yoav Yoav.Shapira at mpi.com writes: Hola, Do you have the antiJARLocking attribute enabled for your Context? If not, does turning it on make a difference? Yoav Shapira http://www.yoavshapira.com I should mention that originally, I did not have antiJARLocking enabled, but enabling both antiJARLocking and antiResourceLocking does not appear to have made any difference. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sun J2SE JVM + tomcat + Debian??
My config single-cpu Debian Sid Kernel 2.6.7 Sun jdk 1.4.2_04 Tomcat 5.0.26 Apache 2.0.49 + mod_jk2 2.0.4 James Mail Server 2.2.0 (Java based) My servers run fine. Are you trying to run with the -server VM? I've always had trouble with that on Linux. Eric On Wednesday 13 October 2004 02:33 pm, Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 Ready/Recommended For Production?
Boy am I confused now. If mod_jk2 is dead, so what is everyone using? Still using just the first mod_jk? I had just gotten everythign working with mod_jk2 - more or less- but configurationwise mod_jk2 is a pain since the syntax was completely changed and requires you to map every nook and cranny. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pointing subdomains to different web applications??
Hi there, still looking through various news groups for the answer, but figured this was the best place. I have a number fo domains and subdomains on my system. They are set up properly on the server to be house in different information bays. What I want to know is, how do I configured tomcat to recognise say.. containers.mydomain.com and point it to a different web application to the one that www.mydomain.com points to? Is this even possible in tomcat? If it is, I would imagine it's a pretty simple answer, so hopefully someone there can help me out. Thanks in advance Steve
Problem with web.xml error-page not invoking servlet filter
Hi, I am using Tomcat 5. In my application, my web.xml declares a filter, and a global error page error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page By examining the call stack in my error page JSP, I notice that when this error page is invoked, my filter is not called. However, if I define %@ page errorPage=/error.jsp % in my JSP file, my filter is invoked (and as a part of the call stack). Is this a Tomcat bug? Or does this behavior conform with the Servlet 2.4 spec? Thanks, -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sun J2SE JVM + tomcat + Debian??
Hi! Just to add some info: I've found some problem with Debian Woody + Sun 1.4.2 JDK... at least Tomcat 5 started up from jsvc fail at File.mkdirs (more info on http://www.mail-archive.com/[EMAIL PROTECTED]/msg131293.html and http://issues.apache.org/bugzilla/show_bug.cgi?id=30177)... These problems doesn't exist on Debian versions others than Woody (to solve that, you should compile jsvc with -lpthread, so, I think it is a Debian Woody libc + Sun JVM only issue)... Horacio Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) -- El éxito debe medirse, no por la posición a la que ha llegado una persona, sino por su esfuerzo por triunfar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]