LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2008, 03:02 PM   #1
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Rep: Reputation: 30
Tomcat not working on Ubuntu


I installed Tomcat 6 and J2SE and on Ubuntu 8.04 according to these instructions. When I try to go to http://localhost:8080 I get an error loading page.

I have this in /etc/environment:
Code:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
CLASSPATH=.:/usr/lib/Java6u1/bin
JRE_HOME=/usr/lib/Java6u1
and this in ~/.bashrc
Code:
export JRE_HOME=/usr/lib/Java6u1
export PATH=$PATH:$JRE_HOME/bin
(among other things)

I have tried using JAVA_HOME and JRE_HOME but nothing seems to be working. Any thoughts?

Thanks,
Todd
 
Old 05-17-2008, 05:29 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
If you have any "ubuntu-java" installed, it might be first in your path (/usr/bin)
So it's a good idea to remove all gcj, gij, libgcj*, java-common, usually up to 10 packages.
The 'gij - java' is known not to work with several applications.
 
Old 05-17-2008, 05:40 PM   #3
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
I believe that the Java package that I did install was j2sdk1.4.2_17. Is that an appropriate package? Would I uninstall the other Java packages and just leave that one?

Thanks,
Todd
 
Old 05-17-2008, 06:00 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
Probably a good idea to go for the java working best with Tomcat.
You can have 2 different java, but only one in the regular path, AFAIK.
(In my ubuntu 7.10 gcj etc. was there after installing the distro, so better check it)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Tomcat on Ubuntu 7.10 Jayla Linux - Newbie 8 01-01-2008 06:08 PM
Tomcat not working???? ajeetraina Linux - Server 3 11-29-2007 08:07 AM
I had Java and Tomcat working until I tried setup of Mod_JK booga Linux - Software 1 05-15-2006 05:32 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM
working with apache and tomcat kefen Linux - Networking 0 12-11-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration