LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2003, 01:03 PM   #1
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Rep: Reputation: 15
Question Installing Tomcat on RedHat 8


Okay, I'm feeling like an idiot now...

I've used Tomcat before but now I can't get the thing to install correctly. Here's the situation:

I recently tore apart the server (as in "reformatted the disk") and installed RedHat 8 (used to be on 7). I then downloaded the Java SDK, which appears to be working (as in I can compile and run Java programs).

I then have tried pulling down and installing the following:

Tomcat 4.1.24 LE edition RPM
Tomcat 4.1.24 Edition RPM
Tomcat 4.1.24 tar/gz LE edition
Tomcat 4.1.24 tar/gz edition.

NONE of them can I get to work.

The tar/gz versions tell me that, 'Directory /usr/java/jakarta-tomcat-4.1.24/lib does not exist'.

The RPM versions tell me that no servlet container could be found.

Anyone have any ideas?
 
Old 04-26-2003, 05:05 AM   #2
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
I dint install 4x versions. but i had installes 3x. sometime earlier.. i think it was the problem with the access permissions of the directories i created .. i am not sure abt the rpm.. but i had the .tar.gz file deflated into /usr/tomcat . i changed the access permissions and it woked properly.. hope this helps
 
Old 04-27-2003, 01:14 AM   #3
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Original Poster
Rep: Reputation: 15
Now I'm REALLY feeling like an idiot - it turns out that reinstalling Java (i.e. completely wiping the /usr/java directory and starting over) fixed the problem.

Tomcat's up and running again!
 
Old 05-20-2003, 01:39 PM   #4
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Rep: Reputation: 15
Unhappy

Hey shadowbird, are you installing Tomcat from source or using an rpm? I'm having trouble installing the thing myself. I've reinstalled java, and tomcat about 3 times each and still get the 500 error page when I try to pull up the default tomcat page in the browser.

Please let me know, if you don't mind, what steps you took.

Thanks a lot!

Leo.

P.S. This is what I get:

HTTP Status 500 - No Context configured to process this request

Last edited by lsakhvoruk; 05-20-2003 at 01:41 PM.
 
Old 05-20-2003, 02:49 PM   #5
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Original Poster
Rep: Reputation: 15
Installed from RPM

Okay, that error means that you ARE contacting the Tomcat server - i.e. tomcat is running for you.

What you probably do NOT have correct is the tomcat configuration file. The "context" that's being referred to is the web application context. For example, if I have a JSP application called "MyApp", I generally will get to it through the URL of:

http://myserver.mydomain:8080/MyApp/somefile.jsp

"/MyApp" from the above URL is called a "context" in Tomcat.

A full-blown installation with all the bells and whistles will often define a context of "/" that gets you to a default Tomcat welcome page - but it doesn't have to. See if you can deploy a simple JSP application. If it works, then you're set.
 
Old 05-20-2003, 03:40 PM   #6
lsakhvoruk
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware
Posts: 26

Rep: Reputation: 15
Wink

Sure enough! Now it works. I promise that I have tried creating a sample jsp file and accessing it via the browser and I got the error every time, but now it works!

All is well and I thank you shadowbird!
 
Old 05-23-2003, 02:05 PM   #7
navinc
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
hey guys i am having the same problem I installed a tomcat rpm package in RH 9
how do you configure the tomcat4.conf to work
 
Old 06-30-2003, 09:46 AM   #8
Browndog
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
Ok I've got tomcat working as part of apache, but my problem is I cant load servlets? Currently my context loads webapps/ROOT/index.html when the address is put in now how do I get it to load a servlet?

Last edited by Browndog; 07-01-2003 at 05:47 AM.
 
  


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
tomcat installation on redhat jkmartha Linux - General 1 04-11-2005 09:52 AM
installing tomcat on redhat 9 jkmartha Linux - Software 1 04-11-2005 06:59 AM
installing tomcat on redhat 9 rsingh Linux - Newbie 2 10-02-2003 01:48 AM
jsdk and tomcat for redhat 8 ariana Programming 3 03-06-2003 04:06 PM
Redhat 7.2 : Kaffe 1.0.7 : tomcat 3.2.4 snoopy42 Linux - Software 0 01-13-2003 02:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:34 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
Open Source Consulting | Domain Registration