tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barton Hammond <bhamm...@austin.rr.com>
Subject Using JSP extension of "html" not working....
Date Thu, 05 Apr 2001 14:22:25 GMT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Using apache 1.3.12 and tomcat 3.2.1, we have confirmed that with using
mod_jk.so we have the two communicating.&nbsp; However, our "jsp" files
are not being processed.
<p>We have all our "jsp" files have an extension of "html" for various
reasons.&nbsp; If we invoke the "index.html" page it is not treated as
a "jsp".&nbsp; If we rename the *same* page to "index.jsp" it works fine.
<p>We have added a "web.xml" in the webapp/WEB-INF dir which is&nbsp;<a href="#web.xml">
as follows</a>.
<p>We added the&nbsp; "JkMount /*.html ajp13" to the httpd.conf and we
see in the <a href="#mod_tk.log">mod_jk.log</a> that a rule is defined
for the "/.html" extension but then later it is not matched (see below)
<p>What do we have to do to get a "html" extension of a "jsp" to be served
as if it is a "jsp"?
<p>Many thanks...
<p>Barton
<p>===========================<a NAME="web.xml"></a>web.xml
<br>&lt;?xml version="1.0" encoding="ISO-8859-1"?>
<p>&lt;!DOCTYPE web-app
<br>&nbsp;&nbsp;&nbsp; PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
<br>&nbsp;&nbsp;&nbsp; "<A HREF="http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">http://java.sun.com/j2ee/dtds/web-app_2_2.dtd</A>">
<p>&lt;web-app>
<p>&lt;servlet>
<br>&nbsp;&nbsp; &lt;servlet-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; servletToJsp
<br>&nbsp;&nbsp; &lt;/servlet-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-class>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
org.apache.jasper.runtime.JSPServlet
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet-class>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
keepgenerated
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/param-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-value>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
true
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/param-value>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
sendErrToClient
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/param-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-value>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
true
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/param-value>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param>
<br>&nbsp;&lt;/servlet>
<br>&nbsp;&lt;servlet-mapping>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
servletToJsp
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/servlet-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*.html
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/url-pattern>
<br>&nbsp;&lt;/servlet-mapping>
<p>&lt;/web-app>
<p>============================================
<br><a NAME="mod_tk.log"></a>mod_tk.log
<p>[jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open
<br>[jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open,
rule map size is 1
<br>[jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.html=ajp13 wa\
<br>s added
<br>[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 1 rules
<br>[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open,
done
<br>[jk_worker.c (82)]: Into wc_open
<br>[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
<br>[jk_worker.c (213)]: build_worker_map, creating worker ajp13
<br>[jk_worker.c (138)]: Into wc_create_worker
<br>[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13
of ajp13
<br>[jk_ajp13_worker.c (708)]: Into ajp23_worker_factory
<br>[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
<br>[jk_ajp13_worker.c (383)]: Into jk_worker_t::validate
<br>[jk_ajp13_worker.c (396)]: In jk_worker_t::validate for worker ajp13
contact is localhost:8009
<br>[jk_ajp13_worker.c (422)]: Into jk_worker_t::init
<br>[jk_worker.c (177)]: wc_create_worker, done
<br>[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
<br>[jk_worker.c (235)]: build_worker_map, done
<br>[jk_worker.c (102)]: wc_open, done
<br>[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
<br>[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
done without a match
<br>[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
<br>[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
<br>[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
done without</html>


Mime
View raw message