LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-11-2007, 08:55 PM   #1
driven13
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:

Code:
NameVirtualHost *:80

<Directory "/home/www/news.mydomain.com/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
        ServerName news.mydomain.com
        ProxyPreserveHost On
        ProxyPass / ajp://localhost:8009/
</VirtualHost>
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/news.mydomain.com/htdocs/. 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.

Regards,

--D.

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

Rep: Reputation: 100Reputation: 100
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
driven13
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>
ServerName news.mydomain.com
ProxyPreserveHost On
ProxyPass / ajp://localhost:8009/
#ProxyPass / ajp://localhost:8009/jsp-examples/test/
</VirtualHost>

--D.
 
  


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
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


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration