Unexpected element 'class-loading' in jboss-web.xml when migrating to JBoss EAP 6

Solution Unverified - Updated -

Issue

  • We are migrating an application from JBoss EAP 4. The loader-repository in jboss-web.xml is failing. What is the equivalent be for the following contents of that file:
<jboss-web> 
  <class-loading> 
    <loader-repository>org.hibernate:loader=hibernate3.jar</loader-repository> 
  </class-loading> 
</jboss-web> 

The error received is:

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."example.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."example.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "example.war" 
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14] 
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1] 
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1] 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03] 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03] 
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03] 
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/C:/Program Files/JBoss/jboss-as/6.2.0/jboss-as/standalone/deployments/example.war/WEB-INF/jboss-web.xml" at [2,4] 
    at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:79) 
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14] 
    ... 5 more 
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,4] 
    Message: Unexpected element 'class-loading' encountered

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.