• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to resolve ClassNotFoundException

 
Swapna latha
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting an error in the jsp page. I am not understanding whats the error and how to resolve it.

Any suggestions are highly appreciated



Regards
Swapna
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.ClassNotFoundException: com.apnabox.presentation.servlets.SystemFilter.class


[I am not sure] just check filter-class mapping name . is it end with *.class* string? if yes remove and give an another try.
 
Swapna latha
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi seetha rama swamy there is no .class in the filter mapping. Its fine in the mapping class. What exactly is the problem also i am unable to find it.

regards

Swapna
 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
checkout your code..

did you implement filter class with your filter with proper imports of javax dorectories..
and your filter class is placed in web-inf/class/* directory of your web-app ..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shivam singhal wrote: and your filter class is placed in web-inf/class/* directory of your web-app ..

This is not correct. The correct directory is WEB-INF/classes
 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,,
yeah bear is correct.. :)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error simply means that the com.apnabox.presentation.servlets.SystemFilter class has not been included in the web application. What is this class, and where did you place the class file?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic