• Post Reply Bookmark Topic Watch Topic
  • New Topic

java

 
anitha rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i am getting java.lang.ClassNotFoundException during a struts application.
the class which can't be found is ContextListener.
Please give me a solution.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by anitha rao:
i am getting java.lang.ClassNotFoundException during a struts application.
the class which can't be found is ContextListener.
Please give me a solution.


Do you have all the required libraries on your classpath. Such as servlet.jar/servlat-api.jar etc.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by anitha rao:
hello,

Yes,I have all the necessary jar files. I am configuring the Context Listener in web.xml. The exception arrises through web.xml and it tells
"cannot load class. context Listener.


(Moved by Dave.)
 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide more details on how you are compiling? Are you using an IDE, Ant or commandline 'javac'? What is the exact command you are using? Is it in UNIX or Windows?
[ July 26, 2005: Message edited by: Sharad Agarwal ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!