Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-03-2006, 08:55 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
Question Tomcat issues in Fedora Core 4

Hello all,
First off, I'm a linux newbie here, so this very well may be to blame.

Anyways, I've recently installed FC4 along with Sun's J2EE 1.4 suite. The installation went fine and I installed it to, /usr/java/j2ee. Now, I need to install tomcat to get going on my project. So, I go to and download Tomcat 5.X and follow their installation instructions. Everything seems to go fine until I try to start or stop Tomcat.

During the startup process, with my $JAVA_HOME set to /usr/java/j2ee, I get an error that Tomcat can't find my java VM. So, I switch my $JAVA_HOME to /usr/java/jre and that works great. I am able to test and run depoyed war files. However, more problems occur during stutdown.

When I run the script, I get the following error:
SEVERE: Catalina.stop: Connection refused
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at org.apache.catalina.startup.Catalina.stopServer(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

At this point, I have no idea what to do, but am willing to try anything.

Also, when I run the command java -version, I get back 1.4.2. However, it's supposed to be using JDK1.5 that is installed with J2EE 1.4.

Any help would be greatly appreciated, as you can see I'm completely lost.
Old 03-04-2006, 04:48 AM   #2
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Rep: Reputation: 30
You do not have to install Java EE (J2EE) if all that you need is simple web development using JSP. Tomcat has a jar file that you can use to develop web applications using Servlet and JSP. The Java EE SDK that you downloaded has a Java EE certified Application Server unlike Tomcat which is a Servlet container.
From your post it looks like you downloaded Java EE 1.4 bundle that has Java SE 5.0 (J2SE 1.5). In order to use the bundled Java SE you need to override the default value of JAVA_HOME set by Fedora. You can do so by adding the following line of code to ~/.bashrc or ~/.bash_profile
export JAVA_HOME=/location_to_your_bundled_java_home
The bundled Java SE should be in a directory under /usr/java/j2ee in your case.

If you want to know which java and javac are used issue the following command
which javac
Please note that changes to one of .bashrc and .bash_profile takes place only when you start a new session. Sorry but I cannot recall which one is that.

BTW, which version of Tomcat do you have? If you want to use Java SE 5.0 you need to download Tomcat 5.5.x. Tomcat 5.0.x works with Java SE 1.4.

Last edited by Basel; 03-04-2006 at 04:50 AM.
Old 03-06-2006, 09:52 AM   #3
LQ Newbie
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for the reply.

I'm using tomcat 5.5.x, the latest one of the apache site.
I changed my Java home to use the sdk 1.5 and that worked great.

Also, I was unaware the that tomcat came with the required jar files, so that pretty much means I don't need J2EE.

Thanks for the help.
Old 03-06-2006, 10:29 AM   #4
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
There is a version of Tomcat available in the standard Fedora repositories which has, I believe, been "tuned" to work correctly in Fedora.

Rather than installing from, you might have been better off just trying a simple yum install tomcat. Under the "many hands make light work" policy, I think its usually better to try a yum install for a new package before looking for the generic package from the developers.
Old 03-07-2007, 01:34 PM   #5
LQ Newbie
Registered: May 2006
Posts: 6

Rep: Reputation: 0
hey I am having the exact same problem. when i shut down my TC i get that same error. I know every thing works and is installed correclty. I have been using this install for a while with no problems. The only change i remember making of recent is that i added a file to the shared folder. (aspectjweaver.jar) and i updated my jvm with the DSTupdater from the java site. this thing is really kicking my A#$...need some serious help here. Thanks



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
Fedora Core 4 issues JRR883 Linux - Newbie 6 09-05-2005 08:51 PM
Unable to run Tomcat 5.5.9 on Fedora core 4 tech_j Linux - Software 2 09-04-2005 09:17 AM
Install Tomcat into Fedora Core 2 treotan Fedora 4 11-18-2004 07:33 PM
Tomcat 5.0.28 into Fedora Core 2 treotan Linux - Software 3 11-09-2004 09:50 AM
Fedora Core 2 + Apache + Tomcat + JDBC paulecoyote Linux - Newbie 9 07-27-2004 06:58 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 AM.

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