Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Tomcat 7 and Ubuntu 12.04  RSS feed

 
Greenhorn
Posts: 8
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. I edited the bash.bashrc file and setup my JAVA_HOME.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!