You have in virtual.conf <br><br><font size="2"> JKMount /student tomcat<br>JKMount /student/* tomcat</font><br><br>But in url <a href="http://hospital/student">http://hospital/student</a>"s"/time.jsp. So in url you are using students. May be this is the issue? <br>
<br>Sarkhan Elkhanzade<br><br><div class="gmail_quote">On Thu, Jan 7, 2010 at 8:39 PM, Mathew R. Phillips <span dir="ltr"><<a href="mailto:mathew.phillips@wartburg.edu">mathew.phillips@wartburg.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">right now I'm using <a href="http://hospital/students/time.jsp" target="_blank">http://hospital/students/time.jsp</a> which is a file in /usr/local/tomcat/webapps/examples/time.jsp. As i said in the first post I know the page is servable because I can get to it using the tomcat server directly with <a href="http://hospital:8080/examples/time.jsp" target="_blank">http://hospital:8080/examples/time.jsp</a>. And I know its going through to tomcat from apache because I'm getting the tomcat 404 error page and not the one from httpd.<br>
<div><div></div><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cialug-bounces@cialug.org">cialug-bounces@cialug.org</a> on behalf of Tom Pohl<br>
Sent: Thu 1/7/2010 7:38 PM<br>
To: Central Iowa Linux Users Group<br>
Subject: Re: [Cialug] Httpd and tomcat configuration<br>
<br>
What URL are you using?<br>
<br>
-Tom<br>
<br>
On Jan 7, 2010, at 7:13 PM, "Mathew R. Phillips" <<a href="mailto:mathew.phillips@wartburg.edu">mathew.phillips@wartburg.edu</a><br>
> wrote:<br>
<br>
> yes it is<br>
><br>
> mod_jk.workers file<br>
><br>
> worker.list=tomcat,status<br>
> worker.maintain=60<br>
> worker.tomcat.type=ajp13<br>
> worker.tomcat.host=hospital<br>
> worker.tomcat.port=8009<br>
> worker.tomcat.socket_timeout=30<br>
> worker.tomcat.socket_keepalive=0<br>
> worker.tomcat.recycle_timeout=300<br>
> worker.tomcat.retries=3<br>
> worker.tomcat.cache_timeout=300<br>
> worker.status.type=status<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:cialug-bounces@cialug.org">cialug-bounces@cialug.org</a> on behalf of Sarkhan Elkhanzade<br>
> Sent: Thu 1/7/2010 7:08 PM<br>
> To: Central Iowa Linux Users Group<br>
> Subject: Re: [Cialug] Httpd and tomcat configuration<br>
><br>
> Is the "tomcat" your worker name in tomcat's worker file?<br>
><br>
> JKMount /student tomcat<br>
><br>
> JKMount /student/* tomcat<br>
><br>
><br>
> Sarkhan Elkhanzade<br>
><br>
> On Thu, Jan 7, 2010 at 6:52 PM, Josh More <<a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a><br>
> >wrote:<br>
><br>
>> Yep. I worked with Tomcat about four years ago.<br>
>><br>
>> Then I stopped.<br>
>><br>
>> I was happier then.<br>
>><br>
>> More seriously, when I used it, I just did proxies to the other port.<br>
>> It may not scale as well, but it was a lot simpler. I think I get my<br>
>> hands on a similar configuration that I did for JBoss, if you want to<br>
>> look at doing it that way.<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> -Josh More, RHCE, CISSP, NCLP, GIAC<br>
>> <a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a><br>
>> 515-245-7701<br>
>><br>
>>>>> "Mathew R. Phillips" <<a href="mailto:mathew.phillips@wartburg.edu">mathew.phillips@wartburg.edu</a>> 01/07/10<br>
>>>>> 6:39 PM<br>
>>>>><br>
>><br>
>> Does anyone on here have experience running tomcat through the httpd<br>
>> server? I've been banging my head against the wall all day trying<br>
>> to get<br>
>> it to work and I'm getting a 404 resource not found error from<br>
>> tomcat on<br>
>> my page so I know its talking to httpd. The jsp page im trying to<br>
>> load<br>
>> is in the autoloaded webapps folder in my tomcat install dir. My<br>
>> virtualhost file looks like:<br>
>><br>
>> <VirtualHost *:80><br>
>> DocumentRoot /var/www/hosp<br>
>> ServerName hospital<br>
>><br>
>> Options FollowSymLinks +Indexes<br>
>> AllowOverride None<br>
>><br>
>> Alias /student/ /usr/local/tomcat/webapps/examples/<br>
>><br>
>> JKMount /student tomcat<br>
>> JKMount /student/* tomcat<br>
>><br>
>> # Possible values include: debug, info, notice, warn, error,<br>
>> crit,<br>
>> # alert, emerg.<br>
>> LogLevel debug<br>
>> ErrorLog /var/log/apache2/hosp_error.log<br>
>> CustomLog /var/log/apache2/hosp_access.log combined<br>
>><br>
>><br>
>> I'm just trying to get the sample jsp's that come with tomcat to be<br>
>> served with httpd before I try and get my webapps working. I feel<br>
>> like<br>
>> im really close and I'm just missing something silly.<br>
>><br>
>> Note: when i use <a href="http://hospital:8080/examples/" target="_blank">http://hospital:8080/examples/</a> it works just fine<br>
>> because the tomcat server is running on that port so I know the files<br>
>> can be served.<br>
>><br>
>> Matt<br>
>><br>
>> _______________________________________________<br>
>> Cialug mailing list<br>
>> <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>
>> <a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
>><br>
><br>
> <winmail.dat><br>
> _______________________________________________<br>
> Cialug mailing list<br>
> <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>
> <a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
<br>
</div></div><br>_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
<br></blockquote></div><br>