954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Trouble starting Tomcat server on Ubuntu

Even after setting all the paths correctly, I get an error saying the "setclasspath.sh" cannot be found.

I checked the directory and it was there.

I then changed the permissions using chmod +x setclasspath.sh but to no avail. I've changed the permissions of all the files inside the "bin" directory but it's not working.

Please help.

ash@Megadeth:~$ JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
ash@Megadeth:~$ export JAVA_HOME
ash@Megadeth:~$ JRE_HOME=/usr/lib/jvm/java-1.6.0-openjdk/jre
ash@Megadeth:~$ export JRE_HOME
ash@Megadeth:~$ PATH=/usr/lib/jvm/java-1.6.0-openjdk/bin:$PATH
ash@Megadeth:~$ export PATH
ash@Megadeth:~$ CLASSPATH=$PATH:$CLASSPATH
ash@Megadeth:~$ export CLASSPATH
ash@Megadeth:~$ CATALINA_HOME=/home/tomcat/tomcat1
ash@Megadeth:~$ export CATALINA_HOME
ash@Megadeth:~$ cd tomcat/tomcat1/bin
ash@Megadeth:~/tomcat/tomcat1/bin$ ./startup.sh
Cannot find /home/tomcat/tomcat1/bin/setclasspath.sh
This file is needed to run this program
ash@Megadeth:~/tomcat/tomcat1/bin$
slasherpunk
Newbie Poster
15 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

Fixed it. The CATALINA_HOME path was wrong.

slasherpunk
Newbie Poster
15 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: