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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to start tomcat remotely, It's not coming up. Locally it's seems working fine.
I tried command ssh remoteserver sh catalina.sh start and startup.sh
but It's not working.
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 CATALINA_OUT: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using JRE_HOME: /usr/java/jre-1.6.0-sun
Using CLASSPATH: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/bin/bootstrap.jar
Logs seems ok to me..but It's not coming up
one more thing..i am preassuming there is problem with below line...
>> "$CATALINA_OUT" 2>&1 &
if some one has idea..please help me out with this problem
So when you start Tomcat "remotely" (via ssh) it's not working; when you start Tomcat "locally" (i.e. logged in directly at the server) it is working.
Is any logging happening in either case? Sounds like there may be some fundamental problem here, like CATALINA_HOME not being set properly. It's not clear in your first post whether Tomcat spit that out after a successful start or a fail.
Locally tomcat starting and remotely when I am using SSH tomcat is not starting.
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 CATALINA_OUT: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/logs/catalina.out
Using JRE_HOME: /usr/java/jre-1.6.0-sun
Using CLASSPATH: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/bin/bootstrap.jar
I think something is getting lost in translation between us. It sounds like there is an environment difference between your local session and your shell session. Normally you review catalina.out, determine the problem, and fix it.
You say you're "seeing [the] same log" -- what log are you talking about, if not catalina.out??
Thank you all for your help
I found solution, when tomcat try to write log ...at that time there is some issue...so in catalina.sh I added nohope commands..
Now it's working fine
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.