wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 and Ubuntu 12.04
 
Similar Threads
Setting Tomcat in Ubuntu 11.10
Installing Tomcat 5.5 in Suse Linux
Tomcat7 on Eclipse indigo not working
Tomcat6 on Ubuntu
Running tomcat apache 5.5 on fedora 14 problem