RE: question for deploystartup forROOT.war on tomcat cluster
Thanks for your reply, but I do not see any errors and also cannot find any configuration error. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Saturday, January 23, 2010 1:44 PM To: Tomcat Users List Subject: Re: question for deploystartup forROOT.war on tomcat cluster 2010/1/23 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: 1. What attributes are set on the Host element of your server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- Valve className=org.apache.catalina.ha.authenticator.ClusterSingleSignOn / !-- Access log processes all example. Documentation at: /docs/config/valve.html -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=webclust1_access_log. suffix=.log pattern=common resolveHosts=false/ /Host http://tomcat.apache.org/tomcat-6.0-doc/config/host.html 2. Are there any Context elements inside Host in your server.xml? Remove them, if there are any. None. 3. When ROOT fails to deploy at startup, does Tomcat Manager at that host shows any webapplication mapped to the same path? (E.g. present, but not started). It is running by seeing from the manager, but it is not starting from the log and by accessing from URL(hostname:port/). OK - Listed applications for virtual host localhost /manager:running:1:manager /:running:0:/ /host-manager:running:0:host-manager ... ... HTTP Status 404 - / type Status report message / description The requested resource (/) is not available. 4. Any relevant messages in the log files? No Error generated, but After Stop-Start or Reload from manager generates the following message Jan 25, 2010 10:18:43 AM org.apache.catalina.core.StandardContext start INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has already been started Jan 25, 2010 10:18:45 AM org.apache.catalina.core.StandardContext start INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has already been started Jan 25, 2010 10:26:25 AM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started Jan 25, 2010 10:26:25 AM org.apache.catalina.ha.session.DeltaManager stop INFO: Manager [localhost#] expiring sessions upon shutdown Jan 25, 2010 10:26:25 AM org.apache.catalina.ha.session.DeltaManager start INFO: Register manager localhost# to cluster element Engine with name Catalina Jan 25, 2010 10:26:25 AM org.apache.catalina.ha.session.DeltaManager start INFO: Starting clustering manager at localhost# Jan 25, 2010 10:26:25 AM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions WARNING: Manager [localhost#], requesting session state from org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, -6, -56, 33}:4000,{10, -6, -56, 33},4000, alive=436811673,id={-73 -106 -118 34 90 37 69 -120 -107 118 21 127 50 12 28 -85 }, payload={}, command={}, domain={}, ]. This operation will timeout if no session state has been received within 60 seconds. Jan 25, 2010 10:27:25 AM org.apache.catalina.ha.session.DeltaManager waitForSendAllSessions SEVERE: Manager [localhost#]: No session state send at 1/25/10 10:26 AM received, timing out after 60,081 ms. When I restart tomcat node [shutdown.sh/startup.sh], My ROOT.war needs to read database and to initialize servlets as specified in its web.xml, but it looks like it is not reading the data from database under cluster setup like other applications do. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: question for deploystartup forROOT.war on tomcat cluster
2010/1/25 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: OK - Listed applications for virtual host localhost This: /manager:running:1:manager /:running:0:/ /host-manager:running:0:host-manager and this: HTTP Status 404 - / type Status report message / description The requested resource (/) is not available. means that the web application is deployed and running. When there is no ROOT application deployed, Tomcat will respond with an empty zero-length response (it looks like a blank page in a browser). It looks like a web application that does not have a welcome page. Please check that your ROOT.war was properly expanded into /webapps/ROOT folder, and that those files (especially WEB-INF/web.xml) are readable by the user that runs that Tomcat instance. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: question for deploystartup forROOT.war on tomcat cluster
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, January 25, 2010 11:16 AM To: Tomcat Users List Subject: Re: question for deploystartup forROOT.war on tomcat cluster 2010/1/25 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: OK - Listed applications for virtual host localhost This: /manager:running:1:manager /:running:0:/ /host-manager:running:0:host-manager and this: HTTP Status 404 - / type Status report message / description The requested resource (/) is not available. means that the web application is deployed and running. When there is no ROOT application deployed, Tomcat will respond with an empty zero-length response (it looks like a blank page in a browser). It looks like a web application that does not have a welcome page. Please check that your ROOT.war was properly expanded into /webapps/ROOT folder, and that those files (especially WEB-INF/web.xml) are readable by the user that runs that Tomcat instance. Yes, it has. welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list -rw-rw-r-- 1 xxx yyy 114 Nov 25 14:05 webapps/ROOT/index.html -rw-rw-r-- 1 xxx yyy 15197 Nov 25 14:51 webapps/ROOT/WEB-INF/web.xml Best regards, Konstantin Kolinko - 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 for deploystartup forROOT.war on tomcat cluster
From: Okubo, Yasushi (TSD) [mailto:yasushi.ok...@takedasd.com] Subject: question for deploystartup forROOT.war on tomcat cluster 3. confirmed that [Catalina_home]/conf/ROOT.xml and webapps/ROOT and webapps/ROOT.war existed Two obvious problems: 1) The ROOT.xml file belongs in conf/Catalina/[host], not conf. 2) The existence of the webapps/ROOT directory will prevent the unpacking of the .war file. Your process is flawed. If you're going to do a manual redeployement rather than using the Tomcat manager or deployer, you will need to clean up the bits of the old version of the application yourself, including the expanded directory, anything for ROOT under the work directory, and possibly the old ROOT.xml file. - 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: question for deploystartup forROOT.war on tomcat cluster
Thanks for your reply. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Saturday, January 23, 2010 8:53 AM To: Tomcat Users List Subject: RE: question for deploystartup forROOT.war on tomcat cluster From: Okubo, Yasushi (TSD) [mailto:yasushi.ok...@takedasd.com] Subject: question for deploystartup forROOT.war on tomcat cluster 3. confirmed that [Catalina_home]/conf/ROOT.xml and webapps/ROOT and webapps/ROOT.war existed Two obvious problems: 1) The ROOT.xml file belongs in conf/Catalina/[host], not conf. Sorry for my typo. I missed to type Catalina/[host] in the path. So it should be [Catalina_home]/conf/Catalina/localhost/ROOT.xml as exact. 2) The existence of the webapps/ROOT directory will prevent the unpacking of the .war file. Why only /ROOT? My other applications all have been re-deployed properly, even if there existed webapps/[app] and its corresponding war file. My problem is only ROOT.war is having a problem to be re-deplpoyed. Is /ROOT treated differently? Your process is flawed. If you're going to do a manual redeployement rather than using the Tomcat manager or deployer, you will need to clean up the bits of the old version of the application yourself, including the expanded directory, anything for ROOT under the work directory, and possibly the old ROOT.xml file. Again, why only /ROOT needs this special treatment under tomcat cluster environment? I have been removing ROOT.xml and /ROOT before restarting tomcat node, and I would like to stop it if is possible. The exact same ROOT.war file can be redeployed under single tomcat instance after restarting tomcat, but it is not re-redeployed on the node under tomcat cluster - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: question for deploystartup forROOT.war on tomcat cluster
2010/1/23 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: 1. What attributes are set on the Host element of your server.xml http://tomcat.apache.org/tomcat-6.0-doc/config/host.html 2. Are there any Context elements inside Host in your server.xml? Remove them, if there are any. 3. When ROOT fails to deploy at startup, does Tomcat Manager at that host shows any webapplication mapped to the same path? (E.g. present, but not started). 4. Any relevant messages in the log files? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
question for deploystartup forROOT.war on tomcat cluster
Hi I have my application packaged as ROOT.war file. I can auto-deploy this war file on single tomcat instance whenever I restart tomcat or put a new war file into webapps. However, if I put the same war file into tomcat cluster and restart tomcat, tomcat does not redeploy this war file. In tomcat cluster [6.0.20/Redhat 5(linux)] , I tested as follows: A. tomcat fresh startup [succeeded to run ROOT application] 1. shutdown tomcat 2. confirmed only webapps/ROOT.war existed and no [Catalina_home]/conf/ROOT.xml and no webapps/ROOT 3. start tomcat [node1 of cluster] 4. confirmed that ROOT.war was deployed B. restarting tomcat [failed to run ROOT application] 1. shutdown tomcat 3. confirmed that [Catalina_home]/conf/ROOT.xml and webapps/ROOT and webapps/ROOT.war existed 2. simply restarting tomcat by executing shartup.sh 3. other applications under webapps including host-manager etc deployed and running properly 4. confirmed that only ROOT.war was not deployed C. test autodeploly [succeeded to run ROOT application] 1. confirmed that tomcat is running 2. moved ROOT.war out of webapps 3. confirmed that tomcat removed [Catalina_home]/conf/ROOT.xml and webapps/ROOT 4. copied ROOT.war backed to webapps 5. confirmed that tomcat created [Catalina_home]/conf/ROOT.xml and webapps/ROOT and the application packaged in ROOT.war is running Is there any trick to make case B work? Thanks, - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org