1 Reply Latest reply on Feb 6, 2013 6:00 PM by Nicklas Karlsson

    Unexpected element 'class-loading' encountered

    POORNA SAMA Newbie

      Hi,

         I am getting the below exception.

       

      Exception:

       

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,3]

      Message: Unexpected element 'class-loading' encountered

              at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:108)

              at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:211)

              at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:69)

              ... 6 more

       

      We are upgrading the server from JBOSS 5.1.0.GA to JBOSS 7.1.1.Final AS

       

      jboss-web.xml (src\main\webapp\WEB-INF\jboss-web.xml) in JBOSS 5.1.0.GA environment.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>

        <class-loading java2ClassLoadingCompliance="false">

          <loader-repository>

            com.spar.pot.fo:loader=pot

            <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

          </loader-repository>

        </class-loading>

        <context-root>/pot</context-root>

      </jboss-web>

       

      jboss-web.xml (src\main\webapp\WEB-INF\jboss-web.xml) in JBOSS 7.1.1.Final environment.

       

      With the below change i am able to resolve the above mentioned exception.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>

        <context-root>/pot</context-root>

      </jboss-web>

       

      Could you please let me know the changes done by me correct or not?

       

      Your help will be appreciated.Thanks for your time.

       

       

      Thanks,

      Poorna