Re: Cluster Not Syncing After Restart

2008-01-17 Thread Peter Rossbach
Hi David, you can't restart your nodes so quickly. As you shutdown one node you must wait 30-45 sec before next restart. Don't restart both nodes at same time. Peter Am 17.01.2008 um 02:25 schrieb David Rees: I'm running a Tomcat 5.5.25 cluster with 2 nodes and the following cluster

Re: Cluster Not Syncing After Restart

2008-01-17 Thread David Rees
On Jan 17, 2008 12:16 AM, Peter Rossbach [EMAIL PROTECTED] wrote: you can't restart your nodes so quickly. As you shutdown one node you must wait 30-45 sec before next restart. Don't restart both nodes at same time. I am waiting at 4 minutes before restarting node 2 before restarting node 1,

RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Jonadan
How big is your main memory? Compiling (both source JIT) consumes lots of memory. If your main memory is small, it can take a lot of initialization time! Gavan Hood wrote: My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very

Re: Tomcat 6 embedded use - problems with jsp - No Java compiler available

2008-01-17 Thread olk
Hi, I found a first hint on my own - it is probably related to setting-up jasper correctly - but I hope someone can tell me how to set the parameter for jasper in embedded mode. What I did was: // Create a handler for jsps Wrapper jspServlet = context.createWrapper();

RE: java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

2008-01-17 Thread olk
Thanks Chuck, for pointing me to this. I'm just starting with tomcat and did not take a look at the \bin directory, where the tomcat-juli.jar should have jumped into my face .. :o) Caldarale, Charles R wrote: From: olk [mailto:[EMAIL PROTECTED] Subject: java.lang.NoClassDefFoundError:

RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Gavan Hood
I agree it will take time, i have 64MB of ram. I guess dotnets ability to compile on install would be useful here... i don't think there is an equivalent for java especially 1.4.2 that I am running. Has there been any progress on that in recent times ? If there is that would be great...

Failover not happening

2008-01-17 Thread Shiby Maria John
hi, In my cluster failover is not happening. I am gettitng 503 after shuttng down the main server. Attaching the log files .. can anyone say why this is happening ? (See attached file: staging1_2)(See attached file: Staging2_1) It is urgent pls help. I have checked all my settings and they

RE: Tomcat 6 cluster

2008-01-17 Thread Hehl, Thomas
Holy smokes! I didn't even see that. Thanks for better at reading than me. :( -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 4:53 PM To: Tomcat Users List Subject: Re: Tomcat 6 cluster it would be very strange to how the

solved -- missing jasper-jdt.jar

2008-01-17 Thread olk
I was missing the jasper-jdt.jar which caused the message !! olk wrote: Hi, I'm running tomcat in embedded mode from an applet. When I open a html page the embedded server responds correct. When I call a jsp I get the error java.lang.IllegalStateException: No Java compiler

what could be possibly wrong with my admin.xml and manager.xml files?

2008-01-17 Thread Albretch Mueller
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // __ These are my admin.xml and manager.xml files ~ !-- Context configuration file for the Tomcat Manager Web App $Id: manager.xml 287893 2002-04-08 17:46:08Z craigmcc $ -- Context path=/manager

Automatic Thread Dump configuration

2008-01-17 Thread Chad Kellerman
Tomcat Users, I have been googling Tomcat thread dumps and have not seen what I want to accomplish anywhere... Is there a way to configure Tomcat to execute a thread dump whenever there is an Out Of Memory issue or if an app reached the max thread count? I am using Tomcat 5.5.25 on

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Len Popp
How big is your Java heap? And how much of your 64MB is used by other (non-Tomcat) processes? If Tomcat is causing a lot of virtual memory swapping, it *may* help to decrease the size of the heap so it fits into main memory. But that may make the heap too small, so garbage collection becomes a

Tomcat 6 - Cluster error.

2008-01-17 Thread Raúl García
Hi, I repost the problem with a better subject: We had a tomcat 5.0.28 server configured with 2 clustered instances(working perfectly), and we decided to migrate to java6 and the new tomcat 6.0.14. We modified the configuration files to match the new tomcat 6.0.14 structure. But now we have

Re: Automatic Thread Dump configuration

2008-01-17 Thread David Delbecq
En l'instant précis du 17/01/08 15:46, Chad Kellerman s'exprimait en ces termes: Tomcat Users, I have been googling Tomcat thread dumps and have not seen what I want to accomplish anywhere... Is there a way to configure Tomcat to execute a thread dump whenever there is an Out Of Memory

New jsp not being read

2008-01-17 Thread Bob Riaz
Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change is not reflected in the jsp that gets displayed. An older version of the

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavan, Gavan Hood wrote: | My web app is very simple, two servlets already installed so no war | file. Once it finally gets going it is very responsive, the | initialization just takes forever... A few quick questions: Do your servlets perform any

RE: how to communicate between different tomcat servers

2008-01-17 Thread meshkp
1) You may want to consider JBOSS or GLASSFISH (Which ever one supports clustering better). This is the best done utilizing full blown J2EE servers. This is why JEE was created in a first place. Tomcat should be used by your front end tier. Good luck. -Original Message- From:

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavin, Er, forget my ravings about SSL initialization. I forgot that you said you were seeing very high CPU utilization. Waiting for randomness would not behave that way. - -chris Christopher Schultz wrote: | Gavan, | | Gavan Hood wrote: | | My

Re: New jsp not being read

2008-01-17 Thread David Smith
I see this most often when the jsp is on a remote server and the clocks are out of sync between my desktop system and the server. Check to be sure the clocks are in sync if tomcat is on a remote system and transfer the jsp again. You may want to also consider cleaning out tomcat's work

Re: how to communicate between different tomcat servers

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, 印华 wrote: | In my design, I | [have divided] the server side into several separate logic parts, and each | part is deployed on a separate Tomcat server. e.g. the first tomcat | server is to process login request, second tomcat server is to |

Re: New jsp not being read

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, Bob Riaz wrote: | Thank you, David. The jsp is on my development machine. I'm doing all my | testing locally, so I wouldn't think this would be an issue. However, I have | been changing my system clock to test some time sensitive aspects of the

Re: Automatic Thread Dump configuration

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: | En l'instant précis du 17/01/08 15:46, Chad Kellerman s'exprimait en ces | termes: | Tomcat Users, | I have been googling Tomcat thread dumps and have not seen what I | want | to accomplish anywhere... | |Is

Re: New jsp not being read

2008-01-17 Thread Ken Bowen
I've found that working (on my dev box -- sometimes windows, sometime linux) under Eclipse, it can be somewhat unpredictable when redeployment of a new page really takes in Tomcat's directory. When it seems funny, as Chris suggested, I shutdown Tomcat (from the MyEclipse control). Since I

Re: Automatic Thread Dump configuration

2008-01-17 Thread Rainer Jung
Christopher Schultz schrieb: | When there is an OutOfMemory, it's impossible to make a ThreadDump. The | reason is that, since you lack memory, it can be seen as useless to try | allocating StackTrace object and stuff it in a new Error(). Moreover, | from my experience, when you are out of

RE: username/password in DataSource configuration

2008-01-17 Thread Propes, Barry L
This sounds like your SQL server may be running off of Windows NT authentication, taking (simply passing, like through Active Directory possibly) your network logon credentials. Are you logging on to a network through Windows each morning? Try that logon combo, if so. See if it doesn't pass

Re: Tomcat 6 - Cluster error.

2008-01-17 Thread Filip Hanik - Dev Lists
already replied to your old thread ok, it looks like you might have ended up with a rogue socket, and what happens is that any message sent to that socket just gets lost in the ether, since it doesn't have any interest ops. There is a workaround for this, turn off keep alives all together, or

RE: New jsp not being read

2008-01-17 Thread Bob Riaz
Thank you, David. The jsp is on my development machine. I'm doing all my testing locally, so I wouldn't think this would be an issue. However, I have been changing my system clock to test some time sensitive aspects of the application. I will look into this more closely. I wonder if you could give

warning error sending end packet

2008-01-17 Thread Eqbal
I am seeing a lot of warning messages in catalina.out with the stack trace show below. We are using tomcat 5.5.16 with apache 2 and ajp13 to connect. Can someone shed some light on this? Thanks. = WARNING: Error sending end packet java.net.SocketException: Broken

Re: warning error sending end packet

2008-01-17 Thread Rainer Jung
http://www.nabble.com/mod_jk-broken-pipe-ts6882827.html Eqbal schrieb: I am seeing a lot of warning messages in catalina.out with the stack trace show below. We are using tomcat 5.5.16 with apache 2 and ajp13 to connect. Can someone shed some light on this? Thanks.

RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Jonadan
Normally compilers are the memory hogs! A few things you can do is that; 1. If you use JSP, convert to servlets to avoid initialization phase compiling. 2. If your JDk is JIT (Just in time) compiler enable, disable it. You may have a bit slow execution. But should have satisfactory speed. 3.

Re: PDF problem on IE from JSP

2008-01-17 Thread Jonadan
My output MIME is ALWAYS PDF! If I save the generated PDF into normal directory and access is OK. It may be one of these; 1. IE security system may be blocking certain patterns developed by previous errors. 2. Tomcat is not handling requests well. Regards. -- View this message in context:

life span for Tomcat 5.5.x and 6.0.x ?

2008-01-17 Thread Ray Johannsson
I was wondering if there's any sort of planned end-of-life date for when security patches will no longer be provided for Tomcat 5.5.x and 6.0.x ? We're upgrading from 5.0.x and I want to make sure we don't have to upgrade again for a while (ideally not until sometime in 2009). Thanks - Ray

Re: life span for Tomcat 5.5.x and 6.0.x ?

2008-01-17 Thread Mark Thomas
Ray Johannsson wrote: I was wondering if there's any sort of planned end-of-life date for when security patches will no longer be provided for Tomcat 5.5.x and 6.0.x ? Nothing is certain since it all depends on how much effort the release managers are able / want to put in. That said, as

Ordered loading of WAR files

2008-01-17 Thread Fu-Tung Cheng
Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml mechanism. On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... and that on the

Custom initialization after startup

2008-01-17 Thread Jonadan
Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? -- View this message in context: http://www.nabble.com/Custom-initialization-after-startup-tp14937407p14937407.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: PDF problem on IE from JSP

2008-01-17 Thread MrKimi
In my case every doc has a different name so the 'same document' issue doesn't apply. I can't tell you if that would be a problem or lot. Jonadan wrote: Thanks! After changing no-cache to cache, it worked! But I am not sure whether this may deliver the same documents when diiferent

Re: PDF problem on IE from JSP

2008-01-17 Thread Jonadan
Thanks! After changing no-cache to cache, it worked! But I am not sure whether this may deliver the same documents when diiferent documents are generated. The another problem was that inline didn't work for JSP urls, say, .../mydoc.jsp. So I have to use a servlet taking JSP as parameters and use

Re: PDF problem on IE from JSP

2008-01-17 Thread MrKimi
The critical part of my solution (which I got from someone else's post) is the setting of the cache stuff. Setting the mime type is something you have to do and my particular case depends on the filename type, but as long as it gets set you also need to set the cache right as well. Jonadan

RE: Custom initialization after startup

2008-01-17 Thread Caldarale, Charles R
From: Jonadan [mailto:[EMAIL PROTECTED] Subject: Custom initialization after startup Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? Depends on what you mean by IMMEDIATELY. You'll at least need to insure that the Host attribute

RE: Custom initialization after startup

2008-01-17 Thread Jonadan
I need to start database before any servlet gets first request. So immediately after server start, initialize embedded database and make it ready for incomming first requests, of course, in a separate thread. The same goes not termination time. I need to have control passed immediately after

RE: Custom initialization after startup

2008-01-17 Thread Jonadan
PS: Yes, it can be done with ServletContextListener since we can check whether it is alive or not. However we may not sure whether it is system shutdown or app. shutdown. This is quite tricky. DBMS can use huge heap resources up to over 500GB on larger systems. This can be a problem without

Re: PDF problem on IE from JSP

2008-01-17 Thread Jonadan
BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14947983.html Sent from the Tomcat - User mailing list archive at Nabble.com.