Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to start remote tomcat server, it's not working as expected.
I like to mansion that..I am able to stop tomcat server remotly.
Below command i am using
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh start
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/startup.sh
Both are not working..when i run this script locally it's working file
same way when i run tomcat stop command it's working fine.
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh stop
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/shutdown.sh
I check log file also..when i am executing tomcat start there is no log entry in log file
Using CATALINA_BASE: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_HOME: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_TMPDIR: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/temp
Using JRE_HOME: /usr/local
Using CLASSPATH: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/bin/bootstrap.jar
Hi,
I tried to create remote script which is setting all env variable...
than also tomcat is not starting.....
ssh -t remoteserver sudo sh remote.sh
I am seeing log on console
Using CATALINA_BASE: /opt/tomcat/apache-tomcat-6.0.29
Using CATALINA_HOME: /opt/tomcat/apache-tomcat-6.0.29
Using CATALINA_TMPDIR: /opt/tomcat/apache-tomcat-6.0.29/temp
Using JRE_HOME: /usr/java/jre-1.6.0-sun
Using CLASSPATH: /opt/tomcat/apache-tomcat-6.0.29/bin/bootstrap.jar
Aug 9, 2010 11:40:26 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15 config=null
Aug 9, 2010 11:40:26 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 397 ms
Aug 9, 2010 11:41:08 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 9, 2010 11:41:09 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 9, 2010 11:41:09 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Aug 9, 2010 11:40:26 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15 config=null
Aug 9, 2010 11:40:26 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 397 ms
Here tomcat was running. How was it started?
Quote:
Aug 9, 2010 11:41:08 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 9, 2010 11:41:09 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 9, 2010 11:41:09 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
This logs is for shutdown.
Leave the tail command running and try to start tomcat remotely ssh
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.