• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error in filters

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i was trying out an example on filter but got a few errors that said:


i checked the log files and got this :



as the error says i do not have "LogFilter" class in "net.tushar" directory , but i have it.


my "web.xml" code is:


"LogFilter" code



i am not sure but i think the culprit is "filter-class" declaration.

waiting for an answer
--TUSHAR

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You folder location screen shot is showing path as \Root\WEB-INF\classes\net.tushar

Here net.tushar is wrong. It should be \net\tushar\LogFilter.class And why you are providing this class in Root. Provide this class in your application WEB-INF classes directory.

May it will resolve your issue.
 
tushar panda
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

xsunil kumar wrote:Here net.tushar is wrong. It should be \net\tushar\LogFilter.class


not working ,getting same error again

xsunil kumar wrote:why you are providing this class in Root.


i am testing so i have put it there.


in logfiles @line 14 ,it says "exception starting filter logfilter". i think something is here..(not sure)

 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have copied your web.xml and filter class in My local tomcat server and i am not getting any exception in server log file. When i am using wrong folder name like net.tushar then i am getting same issue but using It should be \net\tushar\LogFilter.class its running without any exception. Check last line of your log file becauser server log will be appended in same log file. Verify with the time stamp given in your log file and your system time when you have started your tomcat server.
 
tushar panda
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

xsunil kumar wrote:Check last line of your log file becauser server log will be appended in same log file. Verify with the time stamp given in your log file and your system time when you have started your tomcat server.



everything done ,still error
 
Ranch Hand
Posts: 56
Eclipse IDE Postgres Database Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your filter class in the correct directory? Please list the directory structure of your package starting at webapps. Please read this Deploying web applications...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic