• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 configuration in Eclipse 3.4

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to have the "struts2-core-2.1.6.jar" jar in the classpath
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
List the jars you think you're deploying.
 
Joshi Avadhut
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Avadhut,


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

https://coderanch.com/t/446286/Struts/Struts-with-eclipse



 
Joshi Avadhut
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic