• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Validator framework vs JBoss issue.

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have a problem during deployment of web application on JBoss AP. The same application work just fine on Tomcat, but when I perform validation framework on my object domain, I get a followed message with exception trace.:


The xwork.jar doesn't exist any in classpath or in Jboss libraries, and I perform isolated classloader repository method. So, simply, what is the problem???
 
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
What version are you using?

This is a known issue that I believe has been fixed, although perhaps only recently.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my Struts version is: 2.
JBoss version is: 5.0.0.GA
and xwork.jar version is :xwork-2.0.4.jar

Do you think that I should find a different version of xwork?
 
David Newton
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
Struts 2.what?

If you're using XW 2.0.4 then you're probably running < S 2.0.12, so yes, you'll most likely want to upgrade anyway. I don't recall which version the fix is in, though; searching the XWork JIRA (issue tracker) may shed some light.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no, I'm running this jar: struts2-core-2.0.11.jar
You think I should look for xwork-2.11.jar?
Ok, I'm gonna search for it now.
 
David Newton
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
That's what I said, you're running something "less than" S 2.0.12.

I doubt you'll just be able to drop a substantially newer XWork into an older S2 and have it work--the two really go hand-in-hand. Think of WebWork/Struts 2 as an extension of XWork (because they are)--they're very tightly coupled.

I'd at least try to run S 2.0.14 and the most recent XW 2.0.x you can find, although my *guess* (and it's just a guess) is that this fix may only be in the XW 2.1 branch. The fix was small, however, and if it wasn't already backported into XW 2.0 it probably could be if you build your own XW.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi again.
I have downloaded various version of xwork (Version 2.1.0,Version 2.1.2) and struts ( struts-2.0.14 , struts-2.1.6) and permuted their presence in application. Either way I've choose (either coupling of these libraries) a get an exception and my application cannot be deployed (which wasn't the case with my previous libraries, where application normally starts with it's whole functionality except framework validation).
Exception stack trace (portion):


As we can see, now occurs problem in class loading....
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, I had to look at older versions. Like I said, no combination of mentioned libraries will not work. The solution I find is : xwork-2.0.7.jar and struts2-core-2.0.14.jar.
This combination perform successful application deployment and successful application exploitation (at least my application has perform any available task successfully)
Thanks on your advices and references :-)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic