Anyone here using Struts2 with Jboss6?
What versions should I use?
I am just trying to get the simplest "HelloWorld"-type webapp to execute, but keep running into different problems.
I first tried Struts version 126.96.36.199.
I build with maven3 and the application runs OK on Tomcat.
On Jboss however, I first got an error
"Failed to parse source: cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'"
Same as described here: http://community.jboss.org/message/532593
I read that one workaround was to turn off schema-validation in
<bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">
Is there a better solution/workaround to the above?
Because I then got another deployment-error instead:
Could not create JarEntryRevision!: java.io.FileNotFoundException:
This one I dont understand, and didnt find a solution for.
The file it complaints about
DOES exist on the server.
I also tried the struts version in my POM to 188.8.131.52, but get a similar problem.
Anyone can tell me what I am missing or doing wrong here?
What are the versions to use and the basic things you need to do to get Struts2 running at all?
Looks like it's related to this jira:
The problem they fixed there in Struts-2.2.2
was that it had support for
Jboss URL protocols vfszip: and vfsmemory:
but not for vfsfile:
So vfsfile: was added in this fix.
But now... in my error msg above it complaints with another protocol, vfs:
Is vfs: by any chance, something that was recently added in Jboss6, and now need to add that, too, in Struts2 ?
I downloaded the source-code for org.apache.struts.xwork : xwork-core
and built a custom-version where I added protocol "vfs" in URLUtil.java
And finally, the Struts2-application runs OK in Jboss-6.
But what an ordeal...
I just wonder... since google didnt turn this up...
am I the first person in the universe to discover that Struts2 doesnt work with Jboss6 ?
Today I had some issues deploying my Struts 2 application on JBoss 6 and found this message.
I am using Struts 184.108.40.206 and the convention-plugin. Because of the vfs JBoss error, my action classes cannot be found. "There is no Action mapped for namespace xxx and action xxx.". So it is not in all circumstances a warning only.
It is fixed in Struts 2.3 (see Jira link), but unfortunately that version has other issues with JBoss 6. It has something to do with javassist that is now part of ognl. JBoss provides its own version of javassist that clashes with ognl's version.
which Javassist version is bundled with Struts 2.3? Does it help to simply remove it and rely on the Javassist 3.12.0 bundled with JBoss 6.1.0?
If not: you might take a look at JBoss classloading: http://community.jboss.org/wiki/JBossClassLoaderIntroduction
I solved my issue with Struts2. Indeed Javassis 3.12.0.GA is included through struts2-core 2.2.3 -> ognl 3.0.1.
I have changed my pom.xml to include a dependency for Javassist with scope "provided". The resulting war does not include javassist.jar now. During startup, everything is fine.
See also this thread of the Struts-Dev mailing list for details: