Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9449

Classcast Exception while deploying an ear file in jboss 5.1.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • None
    • None
    • Deployers
    • None
    • High
    • Hide

      1.Deploy an ear file with an SAR file and War File packaged in it under deploy directory.
      2.During the startup of the server,we will encounter this issue.

      Show
      1.Deploy an ear file with an SAR file and War File packaged in it under deploy directory. 2.During the startup of the server,we will encounter this issue.

    Description

      When we tried to migrate our application from jboss-3.2.7 to jboss-5.1.0, we faced this issue.Basically in our application, we have an EAR file packaged with couple of WAR files and a SAR file along with META-INF directory. While deploying the EAR file under server\default\deploy directory, we are getting the below error.Our application do not useany EJB related stuffs. Basically,this error is thrown when we have an SAR file and WAR files packaged together in an EAR file.

      Caused by: java.lang.ClassCastException: org.jboss.metadata.ear.jboss.ServiceModuleMetaData cannot be cast to org.jboss.metadata.ear.spec.WebModuleMetaData

      at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:327)

      at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:97)

      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Abstra

      ctSimpleRealDeployer.java:62)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer

      .java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      ... 30 more

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            thoranai46 suresh kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: