This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 configuration in Eclipse 3.4

 
Joshi Avadhut
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi

I am new to Struts 2. I tried to run a sample code in Eclipse 3.4 (which is working in NetBeans). Its giving following error

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher

Note:
I have searched on net for the same and did check following
1. web.xml
2. all required jars
3. tomcat version 5.5 instead of 6
4. eclipse 3.1

Still I have not got the success. Is there anyone who can help me out please.

Thanks & Regards,

Avadhut Joshi

 
Gagan Tiwari
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to have the "struts2-core-2.1.6.jar" jar in the classpath
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
List the jars you think you're deploying.
 
Joshi Avadhut
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. freemarker-2.3.8
2. jstl
3.ognl-2.6.11
4.standard
5.struts2-core-2.0.6
6.xwork-2.0.1

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Avadhut,


I think this link help you to solve your problem....

http://www.coderanch.com/t/446286/Struts/Struts-with-eclipse



 
Joshi Avadhut
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friends. This was my first doubt and happy that all you helped.

added following jars and it worked

xwork-2.1.2 (instead of xwork-2.0.1)
struts2-core-2.1.6 (instead of struts2-core-2.0.6)

Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic