简体   繁体   中英

Error-page not working (with pic)

I'm working in Eclipse+tomcat. My custom made static error page is not showing up in tomcat when i click on url for non-existing pages. generated-error.html has a simple img src="404_man.jpg" tag. But I keep getting the error page shown on the pic. 在此处输入图片说明

My servlet version is 3.0 if i view it from manifest.mf.

Have you tried the error definition for generic errors, not just 404.

/general-error.html

And are you sure tomcat is running on port 8080? The error page does not look like Tomcat7's default 'cant find page' page.

Some browser like IE needs atleast 512 bytes of data to render. Otherwise it will not render the response. Try adding more content in your error page.

I believe you have very less content in your error page.

Mozilla will work without any problem in this kind of situation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM