LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How do I get Tomcat to accept my application and start displaying the pages (http://www.linuxquestions.org/questions/linux-server-73/how-do-i-get-tomcat-to-accept-my-application-and-start-displaying-the-pages-553274/)

driven13 05-11-2007 08:55 PM

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.

j-ray 05-12-2007 04:46 AM

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

driven13 05-12-2007 03:57 PM

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.


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