Re: Maxime Buisson is out of the office.
Great! Fourteen days times about 20 messages per day! Thanks, maxime! Have a great time! I hope your email box is full when you return! lane On Sunday 29 May 2005 23:49, [EMAIL PROTECTED] wrote: I will be out of the office starting 16/05/2005 and will not return until 31/05/2005. I will be out of the office from monday 16th of May until Monday 30th of May included. My emails will not be forwarded. For any urgent matters, contact Isabelle Picot: [EMAIL PROTECTED] With best regards, - 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]
Where are the results of a System.out.println command ?
I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28. That servlet has a System.out.println(userAgent ** : +userAgent); command. On my PC i found the result of the same command (and other) in the DOS window that logs the tomcat's processes (serving the same servlet). On the Mac i can't find any log ... I send the requests to the servlet with a browser, the parameters are in the URL (GET method). Thanks. -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build Tomcat from NSIS
Hi, I have a little developper/user question. I didn't find answer with jakarta docs/google I like to build a Windows Install for Tomcat 5.0.x with my own webapps and configuration inside, using NSIS. Where can I find a Tutorial, Step by Step How to, for building a tomcat using: - Tomcat binary zip (no need to download CVS nor build anything) - tomcat.nsi from source release - adding my own configuration and webapp Or may be you have an easier solution ? Best Regards -- Jean-Philippe Encausse - RD Jalios SA [EMAIL PROTECTED] - http://www.encausse.com - http://www.jalias.com ICQ: 109796741 - AOL: NextOne - MSN: [EMAIL PROTECTED] Mob: +33 6 80 75 71 09 Office: +33 1 39 23 92 83 Home: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the results of a System.out.println command ?
In general prefer the use of a logging system in your code (commons-logging or log4j for example). Concerning System.out, i guess for linux it's the same as for Mac, the System.out is redirected to the log file (logs/catalina.out by default) Le Lundi 30 Mai 2005 10:39, Jean-Luc Douville a écrit : I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28. That servlet has a System.out.println(userAgent ** : +userAgent); command. On my PC i found the result of the same command (and other) in the DOS window that logs the tomcat's processes (serving the same servlet). On the Mac i can't find any log ... I send the requests to the servlet with a browser, the parameters are in the URL (GET method). Thanks. -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the results of a System.out.println command ?
On May 30, 2005, at 10:53 AM, delbd wrote: In general prefer the use of a logging system in your code (commons-logging or log4j for example). Concerning System.out, i guess for linux it's the same as for Mac, the System.out is redirected to the log file (logs/catalina.out by default) Yes ... i didn't search correctly. Thank you ! Le Lundi 30 Mai 2005 10:39, Jean-Luc Douville a écrit : I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28. That servlet has a System.out.println(userAgent ** : +userAgent); command. On my PC i found the result of the same command (and other) in the DOS window that logs the tomcat's processes (serving the same servlet). On the Mac i can't find any log ... I send the requests to the servlet with a browser, the parameters are in the URL (GET method). Thanks. -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS and Tocmat
Hi, I have the following situation: - 2 IIS virtual websites. One for internet and one for intranet. running on Port 80. Internet is available via Internet and Intranet and Intranet only via Intranet (surprise!). - a Tomcat 5.0.28 instance running on the same machine, JK1.2 connector connecting IIS via ajp13 to Tomcat on Port 8009. - 2 webapps on Tomcat exclusively for internet - 2 other webapps on Tomcat exclusively for intranet - 1 webapp on Tomcat that should be reachable via Internet and Intranet As far as I see there can be only one iss_redirect.dll per machine (only one configurable via registry on windows) and therefore only one worker.properties and uriworker.properties. The problem now is: how can I prevent that webapps that should be available only via Intranet to be available via Internet? I mean: I am sure that this is possible with some programming within my webapps - but is there a possibility to have this configuration within the JK environment? Jost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configure tomcat to protect authentification
Hey, i'm new in Tomcat. I installed tomcat 4.1.29 and create some Servlets and put dem to Tomcat_Home/webapps/MyProject/WEB-INF/classes Now i will, that tomcat ask for login, for the first time if client access my web application under MyProject directory. What should i change in server.xml or elsewhere ? thanks for any Hints ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP compiled files created with different users
Hi, I'm working on a Mandrake 10.1. I launch Tomcat 5.5.9 with an user called gama to which belong all files in the Tomcat home directory and has been granted 777 rights on it. However, when I launch my webapp, Tomcat writes some files in the TOMCAT_HOME/work/ directory with the user root and have only 444 rights on these files, which causes FileNotFound errors. Is there a mean for Tomcat to compile and write all files with the same user that have launched it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the results of a System.out.println command ?
Jean-Luc Douville said: I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28. That servlet has a System.out.println(userAgent ** : +userAgent); command. On my PC i found the result of the same command (and other) in the DOS window that logs the tomcat's processes (serving the same servlet). On the Mac i can't find any log ... Doesn't System.out usually go to catalina.out in Tomcat's logs directory? I send the requests to the servlet with a browser, the parameters are in the URL (GET method). Thanks. -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - 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: JSP compiled files created with different users
tomcat does not switch user, it runs as the user who ran bin/startup.sh So tomcat will indeed attempt to write file as the user who ran it. Don't forget only way for an application to switch user at runtime is to have it setuid root, which is not the case of tomcat. Le Lundi 30 Mai 2005 13:49, Yves-Marie Brault a écrit : Hi, I'm working on a Mandrake 10.1. I launch Tomcat 5.5.9 with an user called gama to which belong all files in the Tomcat home directory and has been granted 777 rights on it. However, when I launch my webapp, Tomcat writes some files in the TOMCAT_HOME/work/ directory with the user root and have only 444 rights on these files, which causes FileNotFound errors. Is there a mean for Tomcat to compile and write all files with the same user that have launched it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configure tomcat to protect authentification
henry human said: Hey, i'm new in Tomcat. I installed tomcat 4.1.29 and Why do you use such an old version? I'd recommend to use Tomcat 5 or maybe even 5.5 create some Servlets and put dem to Tomcat_Home/webapps/MyProject/WEB-INF/classes Now i will, that tomcat ask for login, for the first time if client access my web application under MyProject directory. What should i change in server.xml or elsewhere ? thanks for any Hints You could use Container Managed Security: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html If you need some example setup I could help out. Torsten ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.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]
RE: JSP compiled files created with different users
Ok, thank you very much. Actually, I used to launch Tomcat with bin/catalina.sh start, which seemed to cause the problem. -Message d'origine- De : delbd [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 mai 2005 13:56 À : Tomcat Users List Objet : Re: JSP compiled files created with different users tomcat does not switch user, it runs as the user who ran bin/startup.sh So tomcat will indeed attempt to write file as the user who ran it. Don't forget only way for an application to switch user at runtime is to have it setuid root, which is not the case of tomcat. Le Lundi 30 Mai 2005 13:49, Yves-Marie Brault a écrit : Hi, I'm working on a Mandrake 10.1. I launch Tomcat 5.5.9 with an user called gama to which belong all files in the Tomcat home directory and has been granted 777 rights on it. However, when I launch my webapp, Tomcat writes some files in the TOMCAT_HOME/work/ directory with the user root and have only 444 rights on these files, which causes FileNotFound errors. Is there a mean for Tomcat to compile and write all files with the same user that have launched it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - 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 Integration
Well, things got a bit more complicated lately. Now, my bos wants me to connect both Tomcat 4 and Tomcat 5 to the httpd server. If I use mod_jk, I have to specify the path to a tomcat installation in the workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to connect both and relay to the right server using the appropriate folder alias. Is there any other connector which could support two tomcat installation ? I've read about mod_jk, mod_jk2 but I remember seeing a third connector module. Does anyone ever succeeded in installing such a configuration ?? Luc Boudreau Université du Québec Canada
Re: Apache Integration
If my memory is good, tomcat is also able to act as a proxy. why not have apache forward to tomcat5 which forwards when needed to tomcat 4 (looks crazy engouh?:) Le Lundi 30 Mai 2005 14:28, [EMAIL PROTECTED] a écrit : Well, things got a bit more complicated lately. Now, my bos wants me to connect both Tomcat 4 and Tomcat 5 to the httpd server. If I use mod_jk, I have to specify the path to a tomcat installation in the workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to connect both and relay to the right server using the appropriate folder alias. Is there any other connector which could support two tomcat installation ? I've read about mod_jk, mod_jk2 but I remember seeing a third connector module. Does anyone ever succeeded in installing such a configuration ?? Luc Boudreau Université du Québec Canada -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the results of a System.out.println command ?
The results of System.out.println() are written to a file called catalina.out which you should find in your tomcat/logs directory. Rhino - Original Message - From: Jean-Luc Douville [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 30, 2005 4:39 AM Subject: Where are the results of a System.out.println command ? I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28. That servlet has a System.out.println(userAgent ** : +userAgent); command. On my PC i found the result of the same command (and other) in the DOS window that logs the tomcat's processes (serving the same servlet). On the Mac i can't find any log ... I send the requests to the servlet with a browser, the parameters are in the URL (GET method). Thanks. -- Jean-Luc Douville GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 27/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.3.0 - Release Date: 30/05/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Integration
Define two workers tc4 and tc5 On httpd.conf JkMount /tc4prj/*.jsp tc4JkMount /tc5prj/*.jsp tc5http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html Viorel Dragomir . .. --- - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 30, 2005 14:28 Subject: Re: Apache Integration Well, things got a bit more complicated lately. Now, my bos wants me to connect both Tomcat 4 and Tomcat 5 to the httpd server. If I use mod_jk, I have to specify the path to a tomcat installation in the workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to connect both and relay to the right server using the appropriate folder alias. Is there any other connector which could support two tomcat installation ? I've read about mod_jk, mod_jk2 but I remember seeing a third connector module. Does anyone ever succeeded in installing such a configuration ?? Luc Boudreau Université du Québec Canada
newbie: invoking singlesignon from servlet filter
hi all! is it possible to invoke a singlesignon from a servlet filter? i'm using tomcat 4.1.24, the sso valve is up and running (successfully tested). but within a special usecase i can't use security constraints in web.xml, as the main servlet needs to be freely accessible. only certain parts of the application (identified by url-params) need authentication. example: if http://www.foobar.com/app?service=one is requested -- no authentication required if http://www.foobar.com/app?service=two is requested -- i need to perform a singlesignon programmatically from a servlet filter can someone provide some hints / code examples? thanks, chris
Re: Apache Integration
On Mon, May 30, 2005 at 08:28:32AM -0400, [EMAIL PROTECTED] wrote: : connect both Tomcat 4 and Tomcat 5 to the httpd server. : : If I use mod_jk, I have to specify the path to a tomcat installation in the : workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to : connect both and relay to the right server using the appropriate folder : alias. Are you using JK1 (supported) or JK2 (deprecated)? I use JK1 and there's no explicit path to the Tomcat install in the config file. Tomcat isn't even installed on the Apache/httpd machine. =) So what do you mean by path to a tomcat installation? -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: looking for insight on invoking Thread.sleep() from a tomcat servlet
On Sun, May 29, 2005 at 03:08:28PM -0700, Clark O'Brien wrote: : Can someone provide insight on the adverse affects of : invoking sleep() from a servlet. It's more a question of, why would you want to invoke sleek() from a servlet? : I understand that the : J2EE explicitly forbids invoking sleep from within a : servlet Well, then, don't do it. When you have a case that leaves you no choice but to break the standards, then do it. Otherwise, don't. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configure tomcat to protect authentification
i installed the new version 5.5.9 and configured as the documentation recommands.And the authentification works. thanks for your answer --- Torsten Römer [EMAIL PROTECTED] schrieb: henry human said: Hey, i'm new in Tomcat. I installed tomcat 4.1.29 and Why do you use such an old version? I'd recommend to use Tomcat 5 or maybe even 5.5 create some Servlets and put dem to Tomcat_Home/webapps/MyProject/WEB-INF/classes Now i will, that tomcat ask for login, for the first time if client access my web application under MyProject directory. What should i change in server.xml or elsewhere ? thanks for any Hints You could use Container Managed Security: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html If you need some example setup I could help out. Torsten ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.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] ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't get to administration web app
Hello, I installed tomcat and the admin bundle under linux, but I keep getting the message: Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. every time I try to connect to http://localhost:8080/admin. Here is the procedure I followed: - I untarred both jakarta-tomcat-5.5.9.tar.gz and jakarta-tomcat-5.5.9-admin.tar.gz from the same basedir. - I updated $CATALINA_HOME/conf/tomcat-users.xml as follows: role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat,admin,manager/ - then started tomcat with $CATALINA_HOME/bin/startup.sh Please help, I'm really stuck. thanks, Carlo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shared install under Linux
David Smith wrote: Sounds like you want to setup multiple TC instances. Try using CATALINA_BASE. See this message for more info: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg151971.html Thanks, this is what I was looking for. --David Marius Marius Scurtescu wrote: Mark wrote: Then in that case, I would make the context writable to all developers, and also make the context reloadable. By making the context reloadable, tomcat will reload any classes/jars that are placed into/or updated in the context. A couple tips would be: 1. If you are building classes into the context/WEB-INF directory, do not perform a clean operation, as this could throw tomcat off. 2. I would recommend building jar files, and then place a copy of the jar file into the context. Thanks Mark. This is what I do know (more or less). I was wondering if it is possible to install Tomcat to a common location and then run separate instances (separate server.xml files) with totally separate web apps. You can always install the whole Tomcat in separate folders (for each user) I guess. Marius On 5/26/05, Marius Scurtescu [EMAIL PROTECTED] wrote: Mark wrote: Is this for a development environment ? Yes, for development. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Namespace federation
Is there any way to pass parameters to an object factory? What I'm looking to do is have the object factory bound at bean/mybean and expose foo=?,bar=? to the getObjectInstance() method of test.MyBeanFactory to be used as initialization parameters. The following doesn't work in tomcat, but it's more or less what I'd like to do: Resource name=bean/mybean factory=test.MyBeanFactory type=test.MyBean auth=Container/ Context initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:comp/env); MyBean mybean1 = (MyBean) ctx.lookup(bean/mybean/foo=1,bar=xyz); MyBean mybean2 = (MyBean) ctx.lookup(bean/mybean/foo=2,bar=abc);
Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException?
Hello Tomcat Users and Committers,Platform: Tomcat 4.1, Linux ES 2.1, jdk1.4.1.06Here is a snippet of the stack trace we regularly in our Tomcat 4.1.24 logs.- Root Cause -java.lang.IllegalStateException: getOutputStream() has already been called for this responseat org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:756) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:174) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.ViewAttachment_jsp._jspService(ViewAttachment_jsp.java:76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)We intend to migrate to Tomcat 5.x later this year. In the interim, we recently linked this exception event to leaked memory. That is, the PageContextImpl.release() method (6th from top in stack trace, body below) never completes as it does not catch the IllegalStateException that happens when ResponseBase.getWriter()is called in the scope of flushBuffer(). public void release() {out = baseOut;try { if (isIncluded) { ((JspWriterImpl)out).flushBuffer();// push it into the including jspWriter } else {// Do not flush the buffer even if we're not included (i.e.// we are the main page. The servlet will flush it and close// the stream. ((JspWriterImpl)out).flushBuffer();} } catch (IOException ex) { loghelper.log(Internal error flushing the buffer in release()); } servlet = null;config = null;context = null; needsSession = false; errorPageURL = null;bufferSize = JspWriter.DEFAULT_BUFFER;autoFlush= true;request = null; response = null;depth = -1; baseOut.recycle(); session = null;attributes.clear();}The tear-down activity session=null is skipped because of the exception, which creates a problem since the session so referenced becomes ineligible for garbage collection after processing the request.Does anyone know:a) is this documented somewhere (I read 102 matches for memory leak on the Tomcat 4.1 list archives, but I did not find this exact problem, except for an entry in the 4.1 release notes where it is reported fixed in 4.1.20).b) is there a patch available to fix this in Tomcat 4.x?Thanks very much for your time,
Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException?
Hello Tomcat Users and Committers, [duplicate as first msg got formatted incorrectly]Platform: Tomcat 4.1.24, Linux ES 2.1, jdk1.4.1.06Here is a snippet of the stack trace we regularly in our Tomcat 4.1.24 logs.- Root Cause -java.lang.IllegalStateException: getOutputStream() has already been called for this responseat org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:756) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:174) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.ViewAttachment_jsp._jspService(ViewAttachment_jsp.java:76)We intend to migrate to Tomcat 5.x later this year. In the interim, we recently linked this exception event to leaked memory. That is, the PageContextImpl.release() method (6th from top in stack trace above, body below) never completes as it does not catch the IllegalStateException that happens when ResponseBase.getWriter()is called in the scope of 2nd flushBuffer() call below.See org.apache.jasper.runtime.PageContextImpl:public void release() {out = baseOut;try {if (isIncluded) { ((JspWriterImpl)out).flushBuffer();// push it into the including jspWriter} else {// Do not flush the buffer even if we're not included (i.e.// we are the main page. The servlet will flush it and close// the stream. ((JspWriterImpl)out).flushBuffer();}} catch (IOException ex) { loghelper.log(Internal error flushing the buffer in release());}servlet = null;config = null;context = null;needsSession = false;errorPageURL = null;bufferSize = JspWriter.DEFAULT_BUFFER;autoFlush = true;request = null;response = null; depth = -1;baseOut.recycle();session = null;attributes.clear();}The 2nd last line above, session=null is skipped because of the uncaught exception, which creates a problem since a session so referenced becomes ineligible for garbage collection after processing the request.Does anyone know:a) is this a documented limitation (I read 102 matches for memory leak on the Tomcat 4.1 list archives, but I did not find this exact problem, except for an entry in the 4.1 release notes where it is reported fixed in 4.1.20).b) is there a patch available to fix this in Tomcat 4.x?Thanks very much for your time,Matthew
.pst file type unknown in tomcat
Hi all, I'm trying to manage .pst files stored on my Tomcat server. But unfortunately when i click on a pst file link it opens the file in a pop-up (an of course content is not readable). How could i pevent tomcat from serving the file this way but better propose do save it on user's local disk ? .pst file mime type is not decalred by default in web.xml Thanks a lot Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .pst file type unknown in tomcat
.pst file mime type is not decalred by default in web.xml So, why don't you declare it? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 2:33 PM To: Tomcat Users List Subject: .pst file type unknown in tomcat Hi all, I'm trying to manage .pst files stored on my Tomcat server. But unfortunately when i click on a pst file link it opens the file in a pop-up (an of course content is not readable). How could i pevent tomcat from serving the file this way but better propose do save it on user's local disk ? .pst file mime type is not decalred by default in web.xml Thanks a lot Laurent - 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: .pst file type unknown in tomcat
I don't know what to put in the mime-type attribute mime-mapping extensionpss/extension mime-type?/mime-type /mime-mapping -Message d'origine- De : George Sexton [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 mai 2005 22:44 À : 'Tomcat Users List' Objet : RE: .pst file type unknown in tomcat .pst file mime type is not decalred by default in web.xml So, why don't you declare it? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Marot Laurent [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 2:33 PM To: Tomcat Users List Subject: .pst file type unknown in tomcat Hi all, I'm trying to manage .pst files stored on my Tomcat server. But unfortunately when i click on a pst file link it opens the file in a pop-up (an of course content is not readable). How could i pevent tomcat from serving the file this way but better propose do save it on user's local disk ? .pst file mime type is not decalred by default in web.xml Thanks a lot Laurent - 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]
Is session replication working with Tomcat 5.5.9?
Hi all, I set up a cluster of TWO tomcats on different boxes, and loadbalanced with mod_jk. I followed all the processes in app and config, but when I was testing the session replication feature, it seemed to be always creating a new session. Therefore, the data(implements serializable, and the setAttribute method has been invoked already on the deliberately-killed tomcat instance) is no longer available in the other Tomcat instance. My OS is Redhat 3ES with JDK 1.4.1_07. Any idea? Note: loadbalancing is working fine. Thanks in advance. Gary
Re: Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException?
Hmm. Looks like PageContextImpl.release() code could do with a clean up ;) Ignoring that for now, do you have any idea what is calling getOutputStream()? Is it called in ViewAttachment.jsp? Mark [EMAIL PROTECTED] wrote: Hello Tomcat Users and Committers,Platform: Tomcat 4.1, Linux ES 2.1, jdk1.4.1.06 Here is a snippet of the stack trace we regularly in our Tomcat 4.1.24 logs. - Root Cause - java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:756) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:174) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.ViewAttachment_jsp._jspService(ViewAttachment_jsp.java:76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) We intend to migrate to Tomcat 5.x later this year. In the interim, we recently linked this exception event to leaked memory. That is, the PageContextImpl.release() method (6th from top in stack trace, body below) never completes as it does not catch the IllegalStateException that happens when ResponseBase.getWriter()is called in the scope of flushBuffer(). public void release() { out = baseOut; try { if (isIncluded) { ((JspWriterImpl)out).flushBuffer(); // push it into the including jspWriter } else { // Do not flush the buffer even if we're not included (i.e. // we are the main page. The servlet will flush it and close // the stream. ((JspWriterImpl)out).flushBuffer(); } } catch (IOException ex) { loghelper.log(Internal error flushing the buffer in release()); } servlet = null; config = null; context = null; needsSession = false; errorPageURL = null; bufferSize = JspWriter.DEFAULT_BUFFER; autoFlush= true; request = null; response = null; depth = -1; baseOut.recycle(); session = null; attributes.clear(); } The tear-down activity session=null is skipped because of the exception, which creates a problem since the session so referenced becomes ineligible for garbage collection after processing the request.Does anyone know: a) is this documented somewhere (I read 102 matches for memory leak on the Tomcat 4.1 list archives, but I did not find this exact problem, except for an entry in the 4.1 release notes where it is reported fixed in 4.1.20). b) is there a patch available to fix this in Tomcat 4.x? Thanks very much for your time, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is session replication working with Tomcat 5.5.9?
Hey, have you set the multicast ip route between the two boxes? Which tomcat release and config (server.xml) you use? Peter Gary Zhu schrieb: Hi all, I set up a cluster of TWO tomcats on different boxes, and loadbalanced with mod_jk. I followed all the processes in app and config, but when I was testing the session replication feature, it seemed to be always creating a new session. Therefore, the data(implements serializable, and the setAttribute method has been invoked already on the deliberately-killed tomcat instance) is no longer available in the other Tomcat instance. My OS is Redhat 3ES with JDK 1.4.1_07. Any idea? Note: loadbalancing is working fine. Thanks in advance. Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException?
Hi Mark, Thanks for your quick response. The string 'getOutputStream' actually is retrieved from org/apache/catalina/connector/LocalStrings.properties using key 'responseBase.getWriter.ise' by org.apache.catalina.ResponseBase.getWriter(). getOutputStream() is called from org.apache.jasper.runtime.JspWriterImpl.initOut() which is called from same class flushBuffer() method. flushBuffer() is in turn called by PageContextImpl.release() which is method I included in my previous email. The ViewAttachment.jsp (8th line down in the prev. stack trace) is the where the problem originates. This JSP writes to output stream the file attachment, but since the JSP already has an output stream active, this causes the exception (I think.) I could rewrite the application as a servet, as a fix. However, before doing that I wanted to find out if the memory leak is: a) a known limitation b) whether a patch is available for example to add a finally block to PageContextImpl. release() which would solve the leak problem. Thanks, Matthew Original Message From: [EMAIL PROTECTED] Date: May 30, 2005 9:07:35 PM To: Tomcat Users List tomcat-user@jakarta.apache.org Subj: Re: Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException? Hmm. Looks like PageContextImpl.release() code could do with a clean up ;) Ignoring that for now, do you have any idea what is calling getOutputStream()? Is it called in ViewAttachment.jsp? Mark [EMAIL PROTECTED] wrote: Hello Tomcat Users and Committers,Platform: Tomcat 4.1, Linux ES 2.1, jdk1.4.1.06 Here is a snippet of the stack trace we regularly in our Tomcat 4.1.24 logs. - Root Cause - java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java: 756) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:174) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java: 166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java: 198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.ViewAttachment_jsp._jspService(ViewAttachment_jsp.java: 76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java: 684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java: 356) We intend to migrate to Tomcat 5.x later this year. In the interim, we recently linked this exception event to leaked memory. That is, the PageContextImpl.release() method (6th from top in stack trace, body below) never completes as it does not catch the IllegalStateException that happens when ResponseBase.getWriter()is called in the scope of flushBuffer(). public void release() { out = baseOut; try { if (isIncluded) { ((JspWriterImpl)out).flushBuffer(); // push it into the including jspWriter } else { // Do not flush the buffer even if we're not included (i.e. // we are the main page. The servlet will flush it and close // the stream. ((JspWriterImpl)out).flushBuffer(); } } catch (IOException ex) { loghelper.log(Internal error flushing the buffer in release()); } servlet = null; config = null; context = null; needsSession = false; errorPageURL = null; bufferSize = JspWriter.DEFAULT_BUFFER; autoFlush= true; request = null; response = null; depth = -1; baseOut.recycle(); session = null; attributes.clear(); } The tear-down activity session=null is skipped because of the exception, which creates a problem since the session so referenced becomes ineligible for garbage collection after processing the request.Does anyone know: a) is this documented somewhere (I read 102 matches for memory
Re: Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException?
Matthew, I take it that you call response.getOutputStream() within your JSP? If so, this is a spec violation (section JSP.2.7 of JSP 1.2): spec-quote JSP page authors are prohibited from writing directly to either the PrintWriter or OutputStream associated with the ServletResponse. /spec-quote If you are using response.getOutputStream() in your JSP then you will need to write a servlet. If the memory leak only occurs when the spec is violated (as I think is the case from what you have said) then it is going to be right at the bottom of the to-do list and is unlikely to be addressed. However, if my assumption about your call to response.getOutputStream() is wrong, then this is a bug and it should get fixed pretty quickly - how soon there is another 4.1.x release is another question ;) What would be a big help in this case is the smallest JSP you can construct that demonstrates the bug. Mark [EMAIL PROTECTED] wrote: Hi Mark, Thanks for your quick response. The string 'getOutputStream' actually is retrieved from org/apache/catalina/connector/LocalStrings.properties using key 'responseBase.getWriter.ise' by org.apache.catalina.ResponseBase.getWriter(). getOutputStream() is called from org.apache.jasper.runtime.JspWriterImpl.initOut() which is called from same class flushBuffer() method. flushBuffer() is in turn called by PageContextImpl.release() which is method I included in my previous email. The ViewAttachment.jsp (8th line down in the prev. stack trace) is the where the problem originates. This JSP writes to output stream the file attachment, but since the JSP already has an output stream active, this causes the exception (I think.) I could rewrite the application as a servet, as a fix. However, before doing that I wanted to find out if the memory leak is: a) a known limitation b) whether a patch is available for example to add a finally block to PageContextImpl. release() which would solve the leak problem. Thanks, Matthew Original Message From: [EMAIL PROTECTED] Date: May 30, 2005 9:07:35 PM To: Tomcat Users List tomcat-user@jakarta.apache.org Subj: Re: Is there Patch for 4.1 PageContextImpl unhandled IllegalStateException? Hmm. Looks like PageContextImpl.release() code could do with a clean up ;) Ignoring that for now, do you have any idea what is calling getOutputStream()? Is it called in ViewAttachment.jsp? Mark [EMAIL PROTECTED] wrote: Hello Tomcat Users and Committers,Platform: Tomcat 4.1, Linux ES 2.1, jdk1.4.1.06 Here is a snippet of the stack trace we regularly in our Tomcat 4.1.24 logs. - Root Cause - java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java: 756) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:174) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java: 166) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java: 198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.ViewAttachment_jsp._jspService(ViewAttachment_jsp.java: 76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java: 684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java: 356) We intend to migrate to Tomcat 5.x later this year. In the interim, we recently linked this exception event to leaked memory. That is, the PageContextImpl.release() method (6th from top in stack trace, body below) never completes as it does not catch the IllegalStateException that happens when ResponseBase.getWriter()is called in the scope of flushBuffer(). public void release() { out = baseOut; try { if (isIncluded) { ((JspWriterImpl)out).flushBuffer(); // push it into the including jspWriter } else { // Do not flush the buffer even if we're not included (i.e. // we are the main page. The servlet will flush it