LinuxQuestions.org
Help answer threads with 0 replies.
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 04-24-2003, 09:27 AM   #1
gballsch
LQ Newbie
 
Registered: Mar 2003
Location: Northern Virginia
Distribution: Red Hat 8
Posts: 18

Rep: Reputation: 0
Question Tomcat configuration


Hello - I have RH8 with Apache installed and working on port 80, which works fine, but would like to have Tomcat running on same IP on port 8080. I have Tomcat installed but am having trouble configuring the server to work from Apache root (localhost) AND Tomcat root (localhost:8080). How should I configure the http service to do this? Two virtual hosts? Appreciate any help ...

Thanks, Gregg
 
Old 04-24-2003, 10:39 AM   #2
phantom0810
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Rep: Reputation: 0
What u want to do is go to an XML file (I think is "server.xml") to
config the port.
 
Old 04-24-2003, 02:21 PM   #3
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Rep: Reputation: 15
it should be in you tomcat home directory, in the conf subdirectory. There will be a file called server.xml that lists the various services and ports for Tomcat.
 
Old 04-24-2003, 03:38 PM   #4
gballsch
LQ Newbie
 
Registered: Mar 2003
Location: Northern Virginia
Distribution: Red Hat 8
Posts: 18

Original Poster
Rep: Reputation: 0
Hello again. I checked the server.xml file, it looked ok, restarted and all of a sudden I was able to see the tomcat root page on localhost:8080 (also apache on localhost:80). But upon a reboot I can no longer see the tomcat root page on locahost:8080 (still can see apache). I don't know what I did to make it start working, and then stop. Is some comfiguration changing when I reboot. I also tried flushing the iptable. .... frustrating .......
 
Old 04-24-2003, 03:41 PM   #5
gballsch
LQ Newbie
 
Registered: Mar 2003
Location: Northern Virginia
Distribution: Red Hat 8
Posts: 18

Original Poster
Rep: Reputation: 0
BTW - I get a connection refused error message when I try to access localhost:8080 .........
 
Old 04-24-2003, 03:42 PM   #6
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
I am getting the same problems. The big one with me when I reboot is the error "You do not have permissions to view this host"
 
Old 04-24-2003, 03:52 PM   #7
gballsch
LQ Newbie
 
Registered: Mar 2003
Location: Northern Virginia
Distribution: Red Hat 8
Posts: 18

Original Poster
Rep: Reputation: 0
I discovered why I got tomcat to work previously - I need to execute the startup script from root. Where should I put this startup so that it executes automatically w/ reboot? Thanks for help ...............
 
Old 04-24-2003, 03:58 PM   #8
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Rep: Reputation: 15
To make it start up as root, you should put it in one of the rc directories or scripts.

If you're running a SysV-type of system (rc.1, rc.2, etc. directories) put the script in the rc.3 or rc.5 directory (depending on what inittab has the starting level set to).

If you're running a BSD-style system (rc.local file, etc.), then add to the rc.local file the commands necessary to change to the directory and start up tomcat.
 
  


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
Apache and Tomcat Configuration Problem inspiration Linux - Software 0 04-19-2004 02:46 AM
Apache Tomcat Cocoon Final Configuration RKris Linux - Software 0 12-13-2003 09:18 AM
Tomcat + Servlets configuration nightmare lethalinjection Programming 2 11-04-2003 09:18 PM
Apache-Tomcat Configuration Bond2312 Linux - Software 1 08-29-2001 11:46 PM
Apache Tomcat configuration gilbert_on_line Linux - General 0 04-18-2001 07:48 AM

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

All times are GMT -5. The time now is 02:51 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