aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web app with filter is not getting deployed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "web app with filter is not getting deployed" Watch "web app with filter is not getting deployed" New topic
Author

web app with filter is not getting deployed

S Vilish
Ranch Hand

Joined: Feb 06, 2007
Posts: 39
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
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
Are there any error messages in the log files?


Ping & DNS - my free Android networking tools app
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Your filter class needs to be public, otherwise the container won't be able to instanciate it.


[My Blog]
All roads lead to JavaRanch
S Vilish
Ranch Hand

Joined: Feb 06, 2007
Posts: 39
Thanks Christophe , it is working now.

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


Regards,
Vilish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web app with filter is not getting deployed