tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "van Hilten, Clive" <>
Subject cHTML through Tomcat
Date Wed, 21 Nov 2001 11:41:11 GMT
Good day all

environment: Windows 2000 Server with SP1, Tomcat 3.2, Apache 1.3.19,
JDK 1.3.0_02

background: I am doing some development work getting JSP to create
simple, dynamic cHTML code for display on iMode devices. 

Full error message:
2001-11-21 10:57:39 - Ctx( /examples ): 404 R( /examples +
/jsp/imode/i.jsp + null) JSP file not found

problem: Tomcat reports that it cannot find 'imode/i.jsp'. However, if I
copy another JSP ('good' JSP, see below) I have written and place it on
the same path and give it the same filename, it is found and is compiled
okay (note that this working JSP creates WML code rather than cHTML).
Therefore Tomcat is loading the context properly from the server.xml

I therefore conclude that my Tomcat installation is correctly configured
(it has been working fine for about 6 months), and the problem must be
with this particular JSP file. I have searched through the FAQ and
various usenet groups without success. I feel it must be a simple
problem, because this particular JSP was being compiled by Tomcat with
no problems before I decided to make a few changes related to the DTD.
I've checked my current DTD against the DTD for cHTML at and it
is correct. I have tried the backup copy I made before I made the
changes, but without success. 

Here is the faulty JSP:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">
<%@ page contentType="text/html;charset=SHIFT-JIS" %>
<% response.setHeader("Cache-Control", "must-revalidate, no-store"); %>
		<p align="left">
				<form action="asignon/signon.jsp"
				<input type="text" name="user">
				<input type="password" name="pass" >
				<input type="submit" value="sign on">
				<input type="reset" value="clear">

Here is the 'good' JSP:

<%@ page contentType="text/vnd.wap.wml;charset=ISO-8859-1" %>
<% response.setHeader("Cache-Control", "must-revalidate, no-store"); %>
<card id="user" title="login">
		<jsp:include page="ainclude/prev.jsp" flush="true" />
		<p align="left">user name:<input name ="un"
maxlength="10" format="*m"/>
		<br/>password:<input type="password" name ="pw"
maxlength="4" format="4N" />
			<go href ="asignon/signon.jsp" method="get">
					<postfield name="user"
					<postfield name="pass"
				sign on

Any comments would be welcome!



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message