• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

catalina.sh not found

 
sushilkumar jamesbond
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sushilkumar jamesbond
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic