This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes catalina.sh not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "catalina.sh not found" Watch "catalina.sh not found" New topic
Author

catalina.sh not found

sushilkumar jamesbond
Greenhorn

Joined: Aug 20, 2005
Posts: 7
Hi ,

I'm using SSH to access and run tomcat off a remote machine.
Am using Tomcat 5.5 with jdk1.5.
I had set PATH and JAVA_HOME env vars in .bash_profile.

when I try to startup or shutdown tomcat from the bin dir of tomcat .. i get a message saying " ./catalina.sh not found. File is needed to execute this command ".

Following this none of the shell commands work.

Am also getting a NoClassDefFoundException when I try to run a java program from the classes dir even though I provide the correct classpath at run-time. Compilation is not giving me problems.

Has anybody encountered such a situation before ? If so , pls lemme know what's to be done.

Any help will be greatly appreciated. Thanks in advance.
asirob civokviz
Greenhorn

Joined: Jun 12, 2004
Posts: 24
well you should make catalina.sh executable (if on *nix this is not done automatically).

well if you got ClassNotFoundException then you sure did not set CLASSPATH correctly
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you CDed to CATALINA_HOME/bin before typing "./startup.sh"?
Try typing "ls" just before calling "./startup.sh" to see if the file is there.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
sushilkumar jamesbond
Greenhorn

Joined: Aug 20, 2005
Posts: 7
Originally posted by Ben Souther:
Have you CDed to CATALINA_HOME/bin before typing "./startup.sh"?
Try typing "ls" just before calling "./startup.sh" to see if the file is there.


Hi Ben,

I had CDed to my CATALINA_HOME/bin. As you said , I had tried LSing before starting up .. the LS itself kept giving bash: ls : command not found.

anyways, problem is solved now - turns out it was a unix shell problem which in turn caused this problem.

Thanks for the reply anyway.
sushilkumar jamesbond
Greenhorn

Joined: Aug 20, 2005
Posts: 7
Originally posted by asirob civokviz:
well you should make catalina.sh executable (if on *nix this is not done automatically).

well if you got ClassNotFoundException then you sure did not set CLASSPATH correctly


Hi,

turns out mine was a unix shell problem which in turn caused the catalina.sh not found ..so I didnt have to make catalina.sh executable .
vidhyasagar reddy
Ranch Hand

Joined: Jul 05, 2005
Posts: 40
SEE TOMCAT 5.5 IS NOT COMPATIBLE WITH THE JDK1.5
U HAVE TO INSTALL THE COMPATIBLITY PACKAGE FROM TOMCAT SITE


THE FILE WILL END WITH ....COMPAT.GZ
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by vidhyasagar reddy:
SEE TOMCAT 5.5 IS NOT COMPATIBLE WITH THE JDK1.5
U HAVE TO INSTALL THE COMPATIBLITY PACKAGE FROM TOMCAT SITE


THE FILE WILL END WITH ....COMPAT.GZ


vidhyasagar,
Typing in all caps is the equivalent to yelling and is considered to be very rude.

Also Tomcat 5.5 is compatible with JDK1.5.
The compat package is for running Tomcat 5.5 with JSDK 1.4.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: catalina.sh not found
 
Similar Threads
Trouble running tomcat on Ubuntu Linux.
problem with deployment
Tomcat - Linux gettin alert msgs after installation
How to pass tomcat-users.xml filea path to catalina.sh?
out of memory :java heap size problem