2 Replies Latest reply on Jul 7, 2009 1:04 AM by jaikiran

    Why *.war web file of JBOSSAS-4.2.0-4.GA not working on jbos

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/V-Learn.war/WEB-INF/web.xml[106,11]

        • 1. Re: Why *.war web file of JBOSSAS-4.2.0-4.GA not working on
          peterj

          JBoss AS 5.x is pickier about the ordering of entries in XML file. Either correct the ordering, or run with the option ??? (I know there is an option, but can't find it - perhaps someone knows it offhand).

          • 2. Re: Why *.war web file of JBOSSAS-4.2.0-4.GA not working on
            jaikiran

            The property to set, depends on what is wrong in the xml contents. If the order of the elements is incorrect, then setting -Dxb.builder.useUnorderedSequence=true in the run.bat/run.conf scripts. However, if the xml contains invalid elements which is causing the validation failure, then the workaround is to disable validation (and given that the forum search has been returning 0 results for whatever search term i enter, we won't be able to point you to a similar thread where this was discussed).

            But as Peter mentioned, the real fix to this issue is to fix your xml to follow the schema.