tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Schulz" <sch...@gaf.de>
Subject RE: Html files not displayed with webapp
Date Thu, 30 Oct 2003 14:21:46 GMT
Chris, 
> That's totally weird. Does Apache give you the 404 error, or Tomcat?
Its from Apache. If I use a URL for any existing or non existing page in
the examples (mapped to Tomcat) that ends with html, then Apache gives
an 404 error, if the page does not end with html then it is found if it
exists or Tomcat gives the 404 error if it does not exist.
> 
> >>Are you on UNIX or windoze?
> > 
> > SuSE Linux 8.2
> 
> Good!
> 
> What do your server logs say? ... and do you have an access log 
> configured for Tomcat? (I've never done this)

The Apache error_log says:
[Thu Oct 30 14:53:52 2003] [error] [client 192.168.1.254] File does not
exist: /examples/jsp/index.html
The Apache access_log:
192.168.1.254 - - [30/Oct/2003:14:53:52 +0100] "GET
/examples/jsp/index.html HTTP/1.1" 404 335

Sometimes but not at the same time I have following error in the Tomcat
logs directory for the webapp connector:
2003-10-30 14:54:10 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
        at
org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source)
        at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
        at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:536)

I don't have an access log for Tomcat
> 
> Do they confirm that the URL was *.html and that it returned a 404?
Apache does, see above
> 
> The only thing I can think of is that you're using a 
> mod_rewrite rule to 
> replace *.html with *.htm, but I'm pretty sure you'd remember putting 
> that into your httpd.conf. :)
I am not using that. Apache itself has no problems with html files, only
if they come from Tomcat
> 
> Did you copy this installation from anywhere else?
No, only the httpd.conf from another installation
> 
> -chris

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message