Can TomCat run WITHOUT Apache?
Sorry for this newbie question: Can TomCat run WITHOUT Apache? AFAIK yes. Apache is only useful when performance for static HTML pages is needed. On the other side TomCat can run independently from Apache and can serve as a server for the following techs: Servlets, Java Server Faces, Java Server Pages, Hibernate, Ajax, Javascript+normal HTMP web pages Is this statement correct? Thomas -- View this message in context: http://www.nabble.com/Can-TomCat-run-WITHOUT-Apache--tp21649403p21649403.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Transfer all HttpSessions from one cluster node to another
Hi all, We intend to run in a cluster, with stickiness enabled, and without replication. This of course does not give us failover capabilities, in case of a server crash, but it is sufficient for our needs. However, we would like to be able to transfer all sessions currently on one node, to another node, when we are about to shutdown a server for maintenance. This is different from the default behavior of session-replication, in that it only happens when we trigger it (e.g. via JMX), and with us specifying the source node and destination node. Is this supported? Has anyone done such a thing? I would appreciate any tips. Thanks, Naaman -- View this message in context: http://www.nabble.com/Transfer-all-HttpSessions-from-one-cluster-node-to-another-tp21649886p21649886.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: GenericType error?
Jonathan Mast wrote: I only thing is that the corruption (actually SVN's DIFF notation) was nowhere near line 28, it was further down in the file. Perhaps Tomcat could have been helpful in indicating this. That is caused by a bug that is fixed in later Tomcat versions. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can TomCat run WITHOUT Apache?
yes Am 25.01.2009 um 09:23 schrieb thoste tho...@email.com: Sorry for this newbie question: Can TomCat run WITHOUT Apache? AFAIK yes. Apache is only useful when performance for static HTML pages is needed. On the other side TomCat can run independently from Apache and can serve as a server for the following techs: Servlets, Java Server Faces, Java Server Pages, Hibernate, Ajax, Javascript+normal HTMP web pages Is this statement correct? Thomas -- View this message in context: http://www.nabble.com/Can-TomCat-run-WITHOUT-Apache--tp21649403p21649403.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] run tomcat as tomcat user
Rusty Wright wrote: [...] The \( \) is the grouping thing where what matches in it is then substituted for as the \1 on the right hand side. Yes, but if you escape them with \ , do they still get seen as (meta) grouping indicators, or as plain ( and ) ? (I don't remember what sed wants precisely, but in a perl regex, escaping the () would not work as you intend; it would look for real (), and not group. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fresh install problems
Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can TomCat run WITHOUT Apache?
Ok, I'll bite, and improve a bit on Gregor's correct but rather terse response. thoste wrote: Sorry for this newbie question: Can TomCat run WITHOUT Apache? Yes. AFAIK yes. Apache is only useful when performance for static HTML pages is needed. The answer to that is more nuanced. Tomcat can serve static content such as HTML pages, images, stylesheets etc.., maybe as fast as Apache does, once its machinery is up and running. It is (for the moment) a bit less sophisticated than Apache httpd for that purpose, in the sense that it does not have, in the standard Tomcat distribution, as many additional features such as caching, proxying, URL rewriting, AAA variations, etc.., all things that would make more complex configurations possible out of the box. Under Tomcat, you would have to achieve such things using additional servlets and servlet filters, which might or might not be as readily available as the corresponding Apache modules. Another thing you don't have in Tomcat, but do have in Apache httpd, is the availability of some modules which optimise the running of external scripts or other server-side active pages such as PHP, Perl, Python, Ruby etc.. On the other hand, Apache httpd by itself cannot run Java servlets. Another thing to point out is that, to serve purely static content, Tomcat will probably consume quite a bit more RAM than Apache would for the same thing (say a factor 10 at least). But as soon as you have at least one Java servlet to run, serving static content also won't make a difference. Now, if your purpose is mainly to run Java applications and accessorily some static content, then using Tomcat alone will probably be more efficient than configuring it with an Apache httpd front-end, which will only add some overhead to most requests. On the other hand, if your server is not heavily loaded, and you want to preserve a lot of future flexibility in terms of all the additional features mentioned earlier, then using an Apache front-end will not kill your server, and doing this from the start will make your life a lot easier for the day when you need these features. On the other side TomCat can run independently from Apache and can serve as a server for the following techs: Servlets, Java Server Faces, Java Server Pages, Hibernate, Ajax, Javascript+normal HTMP web pages Is this statement correct? Basically yes, except that Ajax and Javascript don't really have anything to do with Apache httpd or Tomcat per se. They are client-side things. Your httpd server (Apache httpd or Tomcat) processes HTTP requests, and does not really care if they come from a browser directly, or from some Javascript or Ajax function embedded in an HTML page. That also extends to Java applets by the way. Let's put it this way : Tomcat is a Java servlet engine, which means it is a program whose main purpose is to provide an environment for running Java servlets, as defined in the Java Servlet Specification. In other words, Tomcat provides a comfortable home for a special kind of Java program known as a servlet; in this home, a servlet can expect a known environment, to be called in a certain way, and make itself use of a number of standard interfaces to process and manipulate web requests and responses. JSP pages and all the rest you mention above are additional layers on top of that, in the sense that they are first pre-compiled into Java servlets, which are then run inside Tomcat. And there exists a standard (or default) servlet embedded in Tomcat, whose function is to serve static content. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
I dont know about that but you do need to specify JRE dir so that cant be part of the package. On 25/01/2009, michel compu...@videotron.ca wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question abut CometProcessor EventSubType.TIMEOUT semantics
Filip Hanik - Dev Lists wrote: are you calling response.flushBuffer() to flush your data? No, I was calling response.getOutputStream().flush(). I'll try your suggestion and report back, thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
Ok - So what do I have to do then ? Im really lost, Ive tried every possible way I know and nothing works. On 25/01/2009, Ken Bowen kbo...@als.com wrote: No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
make that one more stupid assumption for moi! - Original Message - From: Ken Bowen kbo...@als.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:43 AM Subject: Re: Fresh install problems No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
Are you using the 32-bit or 64-bit version of the JRE? -- Len On Sun, Jan 25, 2009 at 09:47, Shaolin shaolinfin...@gmail.com wrote: Ok - So what do I have to do then ? Im really lost, Ive tried every possible way I know and nothing works. On 25/01/2009, Ken Bowen kbo...@als.com wrote: No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
64 bit On 25/01/2009, Len Popp len.p...@gmail.com wrote: Are you using the 32-bit or 64-bit version of the JRE? -- Len On Sun, Jan 25, 2009 at 09:47, Shaolin shaolinfin...@gmail.com wrote: Ok - So what do I have to do then ? Im really lost, Ive tried every possible way I know and nothing works. On 25/01/2009, Ken Bowen kbo...@als.com wrote: No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Logging configuration in Tomcat
Chuck Finally I got it working. As I had said, there were no System.out in my web apps code. They are log4j statements with proper syntax. Just that no log4j configuration is done for each web app. Because of this, tomcat was directing log messages to stdout which was further getting written to catalina.out. Now, I wrote a simple java program, which will redirect stdout stderr to a print stream which is directed by log4j to a rotating file appender. Thus the problem is solved. Thanks for your help. --- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: Logging configuration in Tomcat To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, January 13, 2009, 1:13 PM From: Jay [mailto:difficult...@yahoo.com] Subject: RE: Logging configuration in Tomcat Ok. What I am asking is, is there a mechanism to roll catalina.out based on size of the file. You're missing the point. If you configure log4j properly AND your webapps do not make direct use of System.out and System.err, there will never be anything written to catalina.out. You need to fix your log4j config so it doesn't use System.out but rather a specific file appender that will rotate based on size. You'll need to look at the log4j documentation to figure out how to do that - this has nothing to do with Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Logging configuration in Tomcat
Chuck Finally I got it working. As I had said, there were no System.out in my web apps code. They are log4j statements with proper syntax. Just that no log4j configuration is done for each web app. Because of this, tomcat was directing log messages to stdout which was further getting written to catalina.out. Now, I wrote a simple java program, which will redirect stdout stderr to a print stream which is directed by log4j to a rotating file appender. Thus the problem is solved. Thanks for your help. --- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: Logging configuration in Tomcat To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, January 13, 2009, 1:13 PM From: Jay [mailto:difficult...@yahoo.com] Subject: RE: Logging configuration in Tomcat Ok. What I am asking is, is there a mechanism to roll catalina.out based on size of the file. You're missing the point. If you configure log4j properly AND your webapps do not make direct use of System.out and System.err, there will never be anything written to catalina.out. You need to fix your log4j config so it doesn't use System.out but rather a specific file appender that will rotate based on size. You'll need to look at the log4j documentation to figure out how to do that - this has nothing to do with Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Logging configuration in Tomcat
--- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: Logging configuration in Tomcat To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, January 13, 2009, 11:29 AM From: Jay [mailto:difficult...@yahoo.com] Subject: RE: Logging configuration in Tomcat I guess, Tomcat is directing all the log4j log messages in the code to system.out which in turn is being written to catalina.out You laboring under a misconception - Tomcat doesn't interact with log4j at all; where the messages go is entirely dependent on your log4j configuration. If you've configured (or misconfigured) log4j to output to System.out (a bad idea), then log4j messages will go to catalina.out due to the redirection in the Tomcat startup scripts. There's nothing in Tomcat that can fix your log4j config - that's up to you. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
Shaolin wrote: Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: Hi. Before anything else, just verify the following : In the Tomcat installation directory, there should be a program called tomcat6w.exe. This is a GUI program, which allows you to set parameters important for running Tomcat as a Windows service. Double-click on it, and then maybe look at the various parameters that contain file paths, and (if not already so), if some of these parameters contain embedded spaces, try quoting them. Like C:\Program Files\Java\jdk1.6.0_11\jre. Then try again. Then some tips, but only after the above : When you choose the Windows Service installer version of Tomcat to download and install, you do not get all the same files as you would get if you chose the zip version, and it works a bit differently. You get essentially 2 programs : tomcat6.exe and tomcat6w.exe, instead of the full panoply of shell-like startup scripts (startup.sh, startup.bet, catalina.sh etc..). As already mentioned above, tomcat6w.exe is in fact a Windows GUI program, whose sole function is to set a number of parameters in the Windows Registry, to be used by the other program tomcat6.exe. tomcat6.exe is a wrapper program, which will start a Java JVM (as per these Registry settings), which will itself launch the Tomcat bootstrap Java class bootstrap.jar. This wrapper program exists under Windows, to wrap the Java JVM and allow it to interact with Windows in the way in which a Windows Service should interact (e.g. respond to Windows commands such as start Service, stop service etc..), and translate that into the kind of action which Tomcat expects in order to start up, stop etc.. All this is kind of explained in the following pages, but not necessarily in the clearest or most up-to-date way : http://tomcat.apache.org/tomcat-6.0-doc/setup.html http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html http://commons.apache.org/daemon/ http://commons.apache.org/daemon/procrun.html An alternative to all the above is : - de-install your current version of Tomcat 6 - download and unzip the zip version instead, in a directory like C:\tomcat6. I strongly suggest a path without embedded spaces, as this will most probably save you some aggravation later. - then read the RUNNING.TXT, for general info - then run the (installdir)/bin/service.bat file to install this version of Tomcat as a Windows Service. You may want to inspect this file first, to get an idea of what it does. It is a bit more tedious, but it provides more insight as to what is going on. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
The problem is that you're running the 32-bit version of the Tomcat service wrapper (tomcat6.exe) so it can't load the 64-bit JRE. I think you can use the 64-bit exe's from here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Replace the ones in your Tomcat bin directory with those ones. (Rename tomcat5.exe - tomcat6.exe, tomcat5w.exe - tomcat6w.exe.) -- Len On Sun, Jan 25, 2009 at 09:58, Shaolin shaolinfin...@gmail.com wrote: 64 bit On 25/01/2009, Len Popp len.p...@gmail.com wrote: Are you using the 32-bit or 64-bit version of the JRE? -- Len On Sun, Jan 25, 2009 at 09:47, Shaolin shaolinfin...@gmail.com wrote: Ok - So what do I have to do then ? Im really lost, Ive tried every possible way I know and nothing works. On 25/01/2009, Ken Bowen kbo...@als.com wrote: No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question abut CometProcessor EventSubType.TIMEOUT semantics
David Boreham wrote: Filip Hanik - Dev Lists wrote: are you calling response.flushBuffer() to flush your data? No, I was calling response.getOutputStream().flush(). I'll try your suggestion and report back, thanks. This made no difference, btw. It's broken in the same way as before. Do you want me to call flush() on the stream AND on the response ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fresh install problems
Thanks guys for the replies. Len, you are right, I d/led the 64 bit for tomcat 6 and it works now. http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/res/procrun/amd64/ Thanks guys On 25/01/2009, Len Popp len.p...@gmail.com wrote: The problem is that you're running the 32-bit version of the Tomcat service wrapper (tomcat6.exe) so it can't load the 64-bit JRE. I think you can use the 64-bit exe's from here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Replace the ones in your Tomcat bin directory with those ones. (Rename tomcat5.exe - tomcat6.exe, tomcat5w.exe - tomcat6w.exe.) -- Len On Sun, Jan 25, 2009 at 09:58, Shaolin shaolinfin...@gmail.com wrote: 64 bit On 25/01/2009, Len Popp len.p...@gmail.com wrote: Are you using the 32-bit or 64-bit version of the JRE? -- Len On Sun, Jan 25, 2009 at 09:47, Shaolin shaolinfin...@gmail.com wrote: Ok - So what do I have to do then ? Im really lost, Ive tried every possible way I know and nothing works. On 25/01/2009, Ken Bowen kbo...@als.com wrote: No. On Jan 25, 2009, at 9:18 AM, michel wrote: OK, here is a stupid question, but isn't he JDK included in Tomcat? - Original Message - From: Shaolin shaolinfin...@gmail.com To: users@tomcat.apache.org Sent: Sunday, January 25, 2009 9:15 AM Subject: Fresh install problems Hi Guys I downloaded Tomcat 6.0.18 and JDK 6 Update 11 - Installed the JDK followed by tomcat, specified JRE path (C:\Program Files\Java\jdk1.6.0_11\jre). The problem is it doesnt start. Here are the log errors: [2009-01-25 03:00:28] [info] Procrun (2.0.4.0) started [2009-01-25 03:00:28] [info] Running Service... [2009-01-25 03:00:28] [info] Starting service... [2009-01-25 03:00:28] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-01-25 03:00:28] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_11\jre\bin\server\jvm.dll [2009-01-25 03:00:28] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-01-25 03:00:28] [info] Run service finished. [2009-01-25 03:00:28] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question abut CometProcessor EventSubType.TIMEOUT semantics
are you able to submit a simple example, and we shall get it taken care of Filip David Boreham wrote: David Boreham wrote: Filip Hanik - Dev Lists wrote: are you calling response.flushBuffer() to flush your data? No, I was calling response.getOutputStream().flush(). I'll try your suggestion and report back, thanks. This made no difference, btw. It's broken in the same way as before. Do you want me to call flush() on the stream AND on the response ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Transfer all HttpSessions from one cluster node to another
nlif wrote: Hi all, We intend to run in a cluster, with stickiness enabled, and without replication. This of course does not give us failover capabilities, in case of a server crash, but it is sufficient for our needs. However, we would like to be able to transfer all sessions currently on one node, to another node, when we are about to shutdown a server for maintenance. This is different from the default behavior of session-replication, in that it only happens when we trigger it (e.g. via JMX), and with us specifying the source node and destination node. Is this supported? Has anyone done such a thing? hi Naaman, while this feature is not currently in place, it's something that has been brewing in the back of my head for a long time. It is an extremely useful feature, and its just a matter of time for me to get it implemented. The simplest way would be to start with the BackupManager, but simple remove the nr of backup nodes and therefore not replicate. And then simply implement a move sessions during a graceful shutdown. Filip I would appreciate any tips. Thanks, Naaman - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Is it possible for error page from one webapp to direct to another?
Is it possible for error page from one webapp to direct to another? What I'm thinking is: In mywebservice/WEB-INF/web.xml error-page error-code404/error-code location/errors/404.html/location /error-page But I want the error page to be ROOT/errors/404.html Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can TomCat run WITHOUT Apache?
André, actually I was provoking some comment like yours ;) To the OP: There are a lot of threads regaring this topic here in the tomcat userlist, and I believe so are some information on the tomcat website. To complete André's posting regarding static content: Tomcat offers the option to use the Apache Portable Runtime (APR) when it comes to serving static content. Basically the APR is the same library Apache HTTPD uses to serve static content, which means, that Tomcat will not be slower than Apache HTTPD serving static content *if* the APR is used. If you have to serve static content using SSL, the difference in speed is remarkable compared Tomcat with and without using the APR. As André pointed out, Apache makes life a bit easier when it comes to things like proxying, URL-rewriting etc. All those things are possible with Tomcat, too, however, you'll have to implement them yourself, i.e. write a filter, a valve or even a servlet /jsp. The big plus in running Tomcat only is security: The more components you are using, the more possibilities there are that one of those components has a security relevant problem. An statement often seen is using Apache HTTPD and Tomcat doubles security since you have two components implementing security measures. This statement is definatley wrong: Each additional component multiplies the possibility of a security problem. OK, having said that plus André's posting, I figure you've got same useful information on judging if you want to front Tomcat with Apache HTTPD or not. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] run tomcat as tomcat user
When you put a backslash in front of them they become part of the matching machinery's special characters, like . [ and so on. Without the backslash they're normal characters and matched as-is. So if you had the sed command s/(a)+/z/ and you fed it the string aaa, you would not get back z. You'd only get back z if you fed it the string (a)+. These old regexps of the ed lineage also didn't use the newfangled + notation; you had to list how many you wanted to match, or zero or more; a* would match zero or more, aa* would match one or more, etc. André Warnier wrote: Rusty Wright wrote: [...] The \( \) is the grouping thing where what matches in it is then substituted for as the \1 on the right hand side. Yes, but if you escape them with \ , do they still get seen as (meta) grouping indicators, or as plain ( and ) ? (I don't remember what sed wants precisely, but in a perl regex, escaping the () would not work as you intend; it would look for real (), and not group. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Can TomCat run WITHOUT Apache?
if more than 50% of your pages are static html use Apache HTTP server as Apache serves HTML faster than TC if static html is less than 50% of your pages use TC Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 25 Jan 2009 21:12:03 +0100 Subject: Re: Can TomCat run WITHOUT Apache? From: rc4...@googlemail.com To: users@tomcat.apache.org André, actually I was provoking some comment like yours ;) To the OP: There are a lot of threads regaring this topic here in the tomcat userlist, and I believe so are some information on the tomcat website. To complete André's posting regarding static content: Tomcat offers the option to use the Apache Portable Runtime (APR) when it comes to serving static content. Basically the APR is the same library Apache HTTPD uses to serve static content, which means, that Tomcat will not be slower than Apache HTTPD serving static content *if* the APR is used. If you have to serve static content using SSL, the difference in speed is remarkable compared Tomcat with and without using the APR. As André pointed out, Apache makes life a bit easier when it comes to things like proxying, URL-rewriting etc. All those things are possible with Tomcat, too, however, you'll have to implement them yourself, i.e. write a filter, a valve or even a servlet /jsp. The big plus in running Tomcat only is security: The more components you are using, the more possibilities there are that one of those components has a security relevant problem. An statement often seen is using Apache HTTPD and Tomcat doubles security since you have two components implementing security measures. This statement is definatley wrong: Each additional component multiplies the possibility of a security problem. OK, having said that plus André's posting, I figure you've got same useful information on judging if you want to front Tomcat with Apache HTTPD or not. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009
RE: Can TomCat run WITHOUT Apache?
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Can TomCat run WITHOUT Apache? if more than 50% of your pages are static html use Apache HTTP server as Apache serves HTML faster than TC Not true, as has been properly pointed out by Andre and Gregor. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org