Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-11-2007, 08:55 PM   #1
LQ Newbie
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Post How do I get Tomcat to accept my application and start displaying the pages

Hello all:

I might have bitten off more than I can chew, but how else is one to learn?

I am running latest Apache on latest Fedora and 5.5 Tomcat and latest MySQL. I have turned SELINUX off.

Someone else has written an application using JSP and loaded it on the server but, as this person is no longer with us, I cannot get any help from him.

Here is the situation:

I have Tomcat running and it is "talking to" Apache. I have configured Apache to run VirtualDomains, thusly in httpd.conf:

NameVirtualHost *:80

<Directory "/home/www/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

<VirtualHost *:80>
        ProxyPreserveHost On
        ProxyPass / ajp://localhost:8009/
The actual page shows a Tomcat 404 error. I know these pages/application works as I have seen it before on a different server when it was being developed off-site.

There are two places on the server where I have found all the JSP files and I am not sure which "instance" is the right one. I found them at (1) /var/lib/tomcat5/webapps/widget/ and (2) /home/www/ I had created (2) to accomodate this virtual domain but for some reason he had loaded the files in two different directories. The WEB-INF folder in (1) has the default web.xml file but the WEB-INF folder in (2) does not have a web.xml file.

I am an absolute newbie, so it took me a week to figure out all of the above.

Can anyone please help me to figure out which one, (1) or (2), is being used?

And, more importantly, how do I get Tomcat to accept my application and start displaying the pages?

If I have not provided any relevant information that's because I am too dumb to know the difference. So, please bear with me.

Thank you all in advance. I am at my wits end.



Last edited by driven13; 05-11-2007 at 10:07 PM.
Old 05-12-2007, 04:46 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
I know there is a module for apache to run jsp pages but if you want to run a tomcat- start tomcat, deploy the application and see whether it is displayed or not on http://localhost:8080. Apache is not in the game then at all...
Old 05-12-2007, 03:57 PM   #3
LQ Newbie
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Yes, I have apache configured thus so for Tomcat to work (in httpd.conf file):

<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / ajp://localhost:8009/
#ProxyPass / ajp://localhost:8009/jsp-examples/test/



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
xterm is not displaying man pages properly geletine Linux - Software 1 08-15-2006 08:48 PM
Tomcat : unable to access the jsp pages minil Programming 11 01-28-2006 09:19 AM
browser displaying localhost pages in code howarddevore Ubuntu 4 07-31-2005 08:14 AM
Apache displaying only blank pages? punker22 Linux - Software 4 05-03-2004 04:36 PM
Displaying custom error pages charliecb2 Linux - Newbie 1 03-09-2002 07:20 AM > Forums > Linux Forums > Linux - Server

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