Forums Register Login

error in filters

+Pie Number of slices to send: Send
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

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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)

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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...
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2553 times.
Similar Threads
Error in FilterStart Struts 2 web app
Problem with Listeners in Tomcat. (Two Issues, not sure if related)
Getting exception of org.dom4j.DocumentException : feature read only while deploying war file in tom
Problem starting up servlet-examples & jsp-examples
Getting error----NoContextLoaderListener registered
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:07:40.