• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Struts 2 error (first struts 2 application)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm making my first struts application, I'm using the web.xml as its a simple hello user, but every time I start apache I get the following error.


as for the jar files in my lib directory, they are:
/Struts2Example1/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar
/Struts2Example1/WebContent/WEB-INF/lib/commons-io-1.3.2.jar
/Struts2Example1/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
/Struts2Example1/WebContent/WEB-INF/lib/commons-logging-api-1.1.jar
/Struts2Example1/WebContent/WEB-INF/lib/freemarker-2.3.15.jar
/Struts2Example1/WebContent/WEB-INF/lib/junit-4.8.1.jar
/Struts2Example1/WebContent/WEB-INF/lib/ognl-2.7.3.jar
/Struts2Example1/WebContent/WEB-INF/lib/spring-test-2.5.6.jar
/Struts2Example1/WebContent/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar
/Struts2Example1/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar
/Struts2Example1/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar

and the web.xml file is configured as follows.


I was hoping someone could point me in the right direction to solve this.
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You seem to have placed struts2-core-2.1.8.1.jar in the lib directory of your tomcat installation. Can you remove it and try again...
 
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
+1; you're deploying the same library twice. Keep the Struts libs in the web app itself.
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic