Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error page in web.xml never called

 
Andre Solberg
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to add some custom error pages to my application:

<error-page>
<error-code>404</error-code>
<location>/error404.jsp</location>
</error-page>

But instead I just get this when running on the j2ee preview server in eclipse.

HTTP ERROR 404

Problem accessing /app/asdf. Reason:

NOT_FOUND

What am I doing wrong?

Thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running it outside Eclipse, in a real server?
 
Andre Solberg
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I just tested on a Tomcat server, and it's working. Would still be nice if I could test locally before deploying, but I can't find any settings in the j2ee preview that has anything to do with this. Any suggestions?

thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not an IDE expert. I'll move this to our IDE forum where someone might be able to help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic