GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Tomcat 7 and Ubuntu 12.04 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 and Ubuntu 12.04" Watch "Tomcat 7 and Ubuntu 12.04" New topic
Author

Tomcat 7 and Ubuntu 12.04

Chris Bohannon
Greenhorn

Joined: Jul 28, 2009
Posts: 8

Hello,

I am pretty new to Linux and I have been trying to setup Tomcat. I used the instructions here:

http://www.howtogeek.com/howto/linux...t-6-on-ubuntu/

and changed them to fit Tomcat 7. I have edited my .bashrc file with the following:

export JAVA_HOME=/usr/bin/java

Now this did work once but when I rebooted and go to localhost:8080 after running ./startup.sh the Tomcat startup page does not appear. This is the output from ./startup.sh:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

And this is the output from running ./shutdown.sh:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
./catalina.sh: 1: eval: /usr/bin/java/bin/java: not found

I am not sure what I am doing wrong. When I do a which java I get the following: /usr/local/tomcat/bin$. Can anyone point me in the right direction? I'm not trying to auto start Tomcat or anything complicated but I just can't seem to get this to run after editing .bashrc and rebooting. I am editing the wrong file?

Thanks!
Chris Bohannon
Greenhorn

Joined: Jul 28, 2009
Posts: 8

Never mind. I edited the bash.bashrc file and setup my JAVA_HOME.
 
GeeCON Prague 2014
 
subject: Tomcat 7 and Ubuntu 12.04