File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Validator framework vs JBoss issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator framework vs JBoss issue." Watch "Validator framework vs JBoss issue." New topic
Author

Validator framework vs JBoss issue.

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
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???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What version are you using?

This is a known issue that I believe has been fixed, although perhaps only recently.
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
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
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Sep 26, 2008
Posts: 399
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
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Sep 26, 2008
Posts: 399
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

Joined: Sep 26, 2008
Posts: 399
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 :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validator framework vs JBoss issue.