tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Kudyba" <rkud...@ncmintmail.com>
Subject Custom 404 page displays broken images w/ 'listings' set to false
Date Mon, 26 Jun 2006 19:00:18 GMT
Running Tomcat 5.0 on Win 2003...

I set the following in web.xml:
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup

And I also have this:
    <error-page>
        <error-code>404</error-code>
        <location>/404.html</location>
    </error-page> 

But when someone tried to list a directory, e.g., www.ourdomain.com/images,
all of the images in the 404 page and links end up broken and we see this in
the log file:	

2006-06-25 12:57:47 org.apache.catalina.core.StandardHostValve@827968:
Exception Processing ErrorPage[errorCode=404, location=/404.html]
ClientAbortException:  java.net.SocketException: Software caused connection
abort: socket write error
	at
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331)
	at
org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:297)
	at
org.apache.coyote.tomcat5.CoyoteResponse.flushBuffer(CoyoteResponse.java:537
)
	at
org.apache.coyote.tomcat5.CoyoteResponseFacade.flushBuffer(CoyoteResponseFac
ade.java:238)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:303
)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:147
)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
	at java.lang.Thread.run(Thread.java:534)

Is there another directive that needs setting?


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message