| Author |
Struts 2 configuration in Eclipse 3.4
|
Joshi Avadhut
Greenhorn
Joined: May 13, 2008
Posts: 15
|
posted

0
|
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
Joined: Jun 10, 2008
Posts: 68
|
|
|
You need to have the "struts2-core-2.1.6.jar" jar in the classpath
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
List the jars you think you're deploying.
|
 |
Joshi Avadhut
Greenhorn
Joined: May 13, 2008
Posts: 15
|
posted

0
|
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
Joined: Sep 07, 2008
Posts: 676
|
|
Hi Avadhut,
I think this link help you to solve your problem....
http://www.coderanch.com/t/446286/Struts/Struts-with-eclipse
|
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
|
 |
Joshi Avadhut
Greenhorn
Joined: May 13, 2008
Posts: 15
|
posted

0
|
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.
|
 |
 |
|
|
subject: Struts 2 configuration in Eclipse 3.4
|
|
|