Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!