• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web app with filter is not getting deployed

 
S Vilish
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a small test web application with sevlet, jsp and filter but when i deploy it on tomcat, it is not gettng started. If i delete filter configuration from web.xml, evertyhing else runs fine.

Could someone suggest me where i am mistaken, see below my web.xml



my filter class gets complied fine and it is there in proper folder within WEB-INF\classes. below is the code for the filter class



Thanks in advance

regards,
Vilish
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any error messages in the log files?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your filter class needs to be public, otherwise the container won't be able to instanciate it.
 
S Vilish
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe , it is working now.

Thanks Ulf Dittmer, i will now see log in case of such problems.


Regards,
Vilish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic