1 Reply Latest reply on Dec 13, 2011 7:23 AM by miragpl

    Web.xml related deployment issue

    miragpl Newbie

      Hi guys,

       

      Whenever I deploy application on jboss6 i got following error

       

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs:///D:/dev/java/tools/servers/jboss-6.1.0.Final/server/jbossApp/deploy/jbossApp.war/WEB-INF/web.xml@11,12
           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224) [jbossxb.jar:2.0.3.GA]
           at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:178) [jbossxb.jar:2.0.3.GA]
           at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:257) [jbossxb.jar:2.0.3.GA]
           at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231) [jbossxb.jar:2.0.3.GA]
           at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.2.GA]
           at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.2.GA]
           at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:352) [:2.2.2.GA]
           at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:334) [:2.2.2.GA]
           at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:251) [:2.2.2.GA]
           at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:369) [:2.2.2.GA]
           ... 47 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: listener cannot appear in this position. Expected content of web-app is unordered_sequence: error-page* welcome-file-list? servlet-mapping* login-config? mime-mapping* distributable? session-config? security-role* taglib* security-constraint* context-param* servlet* {all descriptionGroup}? {unordered_sequence jndiEnvironmentRefsGroup}?
      
      

       

       

      my web.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      
      
           <context-param>
               <param-name>contextConfigLocation</param-name>
               <param-value>
                     WEB-INF/appcontext.xml
               </param-value>
           </context-param>
      
      
           <listener>
               <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
           </listener>
      
      

       

       

      It all worked fine on jboss 4 but now when i'm moving to jboss 6.1 i got those problem.

       

      Thanks in advance.