-
1. Struts2 under JBoss ?
genman Mar 31, 2011 3:23 PM (in response to rop)Google found me this:
http://community.jboss.org/message/532593
https://issues.apache.org/jira/browse/WW-3299
You should try Struts 2.2.1
-
2. Re: Struts2 under JBoss ?
rop Mar 31, 2011 6:02 PM (in response to genman)Hi Elias,
Yes, that also solves the first problem I described above.
But what about the second one? Thats where I really get stuck...
BR
-
3. Re: Struts2 under JBoss ?
rop Mar 31, 2011 6:45 PM (in response to rop)Looks like it's related to this jira:
https://issues.apache.org/jira/browse/WW-3507
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 ?
Any ideas?
-
4. Re: Struts2 under JBoss ?
rop Mar 31, 2011 7:55 PM (in response to rop)Heureka...
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 ?
-
5. Re: Struts2 under JBoss ?
genman Apr 1, 2011 12:33 AM (in response to rop)rop,
It'd be helpful to file a bug with a patch with your changes. It's possible that you're the first with the problem, or at least the first to post here with the problem.
-
6. Struts2 under JBoss ?
rop Apr 4, 2011 1:53 PM (in response to genman)Turned out, in spite of a long Exception-stacktrace in the server-log, it was just a warning and the application actually worked...
Struts2/xwork team had a Jira for it already.
-
7. Struts2 under JBoss ?
jaikiran Apr 5, 2011 2:19 AM (in response to rop)rop wrote:
Struts2/xwork team had a Jira for it already.
Could you please post a link to that JIRA?
-
8. Struts2 under JBoss ?
rop Apr 5, 2011 4:41 AM (in response to jaikiran)Here the jira:
xwork does not support the VFS of jboss-6.0Final
-
9. Re: Struts2 under JBoss ?
kozmoz Aug 28, 2011 10:01 AM (in response to rop)Today I had some issues deploying my Struts 2 application on JBoss 6 and found this message.
I am using Struts 2.2.1.1 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.
-
10. Re: Struts2 under JBoss ?
wolfgangknauf Aug 29, 2011 7:57 AM (in response to kozmoz)Hi,
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
Best regards
Wolfgang
-
11. Re: Struts2 under JBoss ?
kozmoz Aug 29, 2011 8:17 AM (in response to wolfgangknauf)Hi,
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.
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.0.GA</version>
<scope>provided</scope>
</dependency>
See also this thread of the Struts-Dev mailing list for details:
http://struts.1045723.n5.nabble.com/Struts2-under-Jboss-6-td4275132.html#a4745931