11 Replies Latest reply: Aug 29, 2011 8:17 AM by Rob Juurlink RSS

    Struts2 under JBoss ?

    rop Newbie

      Hi,

       

      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 2.1.8.1. 

       

      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

        JBOSS_HOME\server\default\deployers\jbossweb.deployer\META-INF\war-deployers-jboss-beans.xml

      by adding

       

         <bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">

             ...

            <property name="useSchemaValidation">false</property>     

         </bean>

       

      Is there a better solution/workaround to the above?

       

      Because I then got another deployment-error instead:

       

       

      [com.opensymphony.xwork2.util.FileManager]

      Could not create JarEntryRevision!: java.io.FileNotFoundException:

        vfs:\C:\program1\jboss6\server\default\deploy\msglist-webapp.war\WEB-INF\lib\struts2-sitemesh-plugin-2.1.8.1

       

       

      This one I dont understand, and didnt find a solution for.

      The file it complaints about

        C:\program1\jboss6\server\default\deploy\msglist-webapp.war\WEB-INF\lib\struts2-sitemesh-plugin-2.1.8.1.jar

      DOES exist on the server.

       

      I also tried the struts version in my POM to 2.2.1.1, 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?