Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange Tomcat Struts Startup Error

 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I get the following exception during Tomcat startup of a Struts application:



I suspect that there is an offending class in the lib folder....

JAR.jpg
[Thumbnail for JAR.jpg]
 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really do not know from where did the xwork-2.0.4 come from?
 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed the dependency to xwork-core-2.2.4 and it worked fine.
 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hold on. Still the same problem persists. Baffles me... I'm not sure from where did this xwork-2.0.4 come from? I have not defined it in any of my dependencies.
 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What even more confuses me is that the same project when build and run in a Linux box works without any problems, but when I use a Windows box, I get a ClassNotFoundException on com.opensymphony.xwork2.util.logging.LoggerFactory. I guess Struts 2.2.3, requires xwork-core 2.2.3. But if I include it as a dependency, then it leads me to the above error.

Allright, all I want to do now is to include xwork.core-2.2.3.jar as a dependency to my project and get rid of the xwork-2.0.4.jar. How can this be done?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic