• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Tomcat - Struts app Startup Error

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

A Struts 2.x.x web app gives me startup errors.



From the stack trace above, I could see that this is caused due to some incompatibilities in the Struts jar file version. But how to get rid of this error? I want to use this particular version of Struts.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like this is an issue with xwork. In my Maven pom.xml for the project, I do not have a dependency defined to xwork 2.0.4.
But the project fails simply because it cannot download this xwork 2.0.4.jar. There are two questions here:

(1) Why the heck is Maven not able to download the jar from Maven repo? I'm sure that I'm not behind a proxy.
(2) Why will it ever need a jar which I have not added as a dependency?
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems more like a Maven issue. Mods please move this to the Maven forum:

I did try to debug my build and seems that the error that I posted above originates more earlier in the build cycle. Here it is:
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Harry wrote:Seems like this is an issue with xwork. In my Maven pom.xml for the project, I do not have a dependency defined to xwork 2.0.4.
But the project fails simply because it cannot download this xwork 2.0.4.jar. There are two questions here:

(1) Why the heck is Maven not able to download the jar from Maven repo? I'm sure that I'm not behind a proxy.
(2) Why will it ever need a jar which I have not added as a dependency?



Finaly was able to resolve question 2. The xwork-2.0.4 was referrenced in the jcapcha4struts2 which I use in my project. So I had to modify it and rebuild the jcaptcha4struts2 to use xwork-core-2.2.3 and it worked finally.

Still question 1 remains unanswered, but manually downloading the jar and building the app atleast worked.
 
What a show! What atmosphere! What fun! What a tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic