7 Replies Latest reply on Oct 18, 2011 3:25 AM by suresh kumar

    Classcast Exception while deploying an ear file in jboss 5.1.0

    suresh kumar Newbie

      Hi,

          We are in the process of migrating our application from jboss-3.2.7 to jboss-5.1.0.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.I have seen Daniel Flesner post this similar question without any success.Does anyone have any idea about this exception?

       

      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

       

       

      Thanks in advance,

      Sureshkumar.S

      Bangalore,India.

        • 1. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
          jaikiran pai Master

          Post the output of

           

          jar -tf yourear.ear

           

          and

           

          jar -tf yoursar.sar

           

          Also please post the contents of application.xml

          • 2. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
            suresh kumar Newbie

            Hi jai,

                    Thanks for the reply.Given below are the output of my ear file,sar file and application.xml file.

             

            Output of my EAR file:

            C:\>jar -tf hms15.2latestonetoday1\server\default\deploy\ems.ear
            META-INF/
            META-INF/MANIFEST.MF
            META-INF/application.xml

            META-INF/jboss-app.xml
            ems.war
            axis2.war
            ems.sar

             

            Output of my SAR file:

            C:\>jar -tf "Documents and Settings\testuser\Desktop\ems.sar"
            META-INF/
            META-INF/MANIFEST.MF
            ems.jar
            ha-bean-services.jar
            ha-caf.jar
            ha-core.jar
            ha-dev-tools.jar
            ha-edm.jar
            ha-enterprise-serv.jar
            ha-eo2.jar
            ha-fax.jar
            ha-html.jar
            ha-http.jar
            ha-java-mail.jar
            ha-jdbc.jar
            ha-jms.jar
            ha-leveler.jar
            ha-narl.jar
            ha-orm.jar
            ha-rules-lang.jar
            ha-security-impl.jar
            ha-security.jar
            ha-system-config.jar
            ha-web-services.jar
            ha-workflow.jar
            ha-ztd.jar
            ClassFile.jar
            FDBDataConnection.jar
            QuickServer.jar
            Sprinta2000.jar
            Symphonia3.jar
            XMLClasses.jar
            antlr-2.7.5H3.jar
            aopalliance.jar
            aqapi13.jar
            axis.jar
            backport-util-concurrent.jar
            c3p0-0.8.5.2.jar
            cglib-nodep-2.1.jar
            com.ibm.mq.jar
            com.ibm.mqbind.jar
            commons-beanutils-bean-collections.jar
            commons-beanutils-core.jar
            commons-beanutils.jar
            commons-collections-2.1.1.jar
            commons-collections-3.1.jar
            commons-dbcp-1.2.1.jar
            commons-discovery-0.2.jar
            commons-jxpath-1.2.jar
            commons-lang.jar
            commons-logging.jar
            commons-pool-1.2.jar
            dom4j-1.6.jar
            ehcache-1.1.jar
            fdbdif32.jar
            hibernate3.jar
            imap.jar
            jace.jar
            jakarta-oro-2.0.7.jar
            jakarta-oro-2.0.8.jar
            jakarta-regexp-1.2.jar
            jaxrpc.jar
            jgl3.0.0.jar
            jms.jar
            jmx.jar
            js.jar
            jta.jar
            junit.jar
            log4j-1.2.7.jar
            log4j-1.2.9.jar
            mailapi.jar
            mapper.jar
            melissa_ext.jar
            melissadata.jar
            mif.jar
            mina-0.7.3.jar
            ojdbc14.jar
            pop3.jar
            quartz-1.5.1.jar
            quartz-oracle-1.5.0.jar
            saaj.jar
            servlet.jar
            smtp.jar
            spring.jar
            wsdl4j-1.5.1.jar
            wsdl4j.jar
            xercesImpl.jar
            xstream-1.1.3.jar
            ExpertInterface.jar
            allergen.jar
            allergy.jar
            am-aom.jar
            am-attendancehistory.jar
            am-bedmanagement.jar
            am-cancellation.jar
            am-census.jar
            am-common.jar
            am-correctingempi.jar
            am-discharge.jar
            am-displaymaintainempi.jar
            am-financialsummary.jar
            am-patienttracking.jar
            am-registeradmit.jar
            annogen-0.1.0.jar
            axiom-api-1.0.jar
            axiom-impl-1.0.jar
            axis2-adb-1.2.jar
            axis2-codegen-1.2.jar
            axis2-java2wsdl-1.2.jar
            axis2-jibx-1.2.jar
            axis2-kernel-1.2.jar
            axis2-soapmonitor-1.2.jar
            axis2-xmlbeans-1.2.jar
            backport-util-concurrent-2.2.jar
            commons-codec-1.3.jar
            commons-fileupload-1.1.1.jar
            commons-httpclient-3.0.1.jar
            commons-logging-1.1.jar
            cs-addressverification.jar
            cs-audit-logging.jar
            cs-batch-scheduler.jar
            cs-commgradmin.jar
            cs-communicationmanager.jar
            cs-devicemanager.jar
            cs-deviceprofile.jar
            cs-dictionarygenerator.jar
            cs-error-handling.jar
            cs-expert-integration.jar
            cs-finddiagnosis.jar
            cs-forms.jar
            cs-medicalnecessity.jar
            cs-mednec-engine.jar
            cs-messaging.jar
            cs-notes.jar
            cs-number-generation.jar
            cs-outputservice.jar
            cs-outputservicehelper.jar
            cs-patient-banner.jar
            cs-physicianfinder.jar
            cs-physicianfindertbfw.jar
            cs-physicianinquiry.jar
            cs-printservice.jar
            cs-queryengine.jar
            cs-reportadmin.jar
            cs-reportprinting.jar
            cs-reportservice.jar
            cs-searchandretrieve.jar
            cs-security-impl-enterprise.jar
            cs-security.jar
            cs-tableframework.jar
            cs-userpreferences.jar
            cs-worklist.jar
            drug.jar
            geronimo-spec-activation-1.0.2-rc4.jar
            geronimo-spec-javamail-1.3.1-rc5.jar
            geronimo-spec-jms-1.1-rc4.jar
            ha-core-tests.jar
            ha-edi.jar
            ha-eo1.jar
            halo-shared.jar
            jaxen-1.1-beta-10.jar
            jibx-run-1.1.4.jar
            log4j-1.2.13.jar
            neethi-2.0.1.jar
            sched-worklist.jar
            stax-api-1.0.1.jar
            wstx-asl-3.2.1.jar
            xbean-2.2.0.jar
            xercesImpl-2.8.1.jar
            xml-apis-1.3.03.jar
            concurrent.jar
            xml-apis.jar
            META-INF/jboss-service.xml

             

            Output of application.xml:

            <application>
              <display-name>HMS</display-name>
            </application>

             

            Let me know if you need any more jai...by the way,do you live here in india>? i so,where do you live?

             

             

            • 3. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
              Marc Ende Newbie

              You might clean up your archives. There are two different versions of log4j and others.

               

              Try:

              a) remove all jar's which are provided by the jboss (look in all relevant folders of the jbossas)

              b) remove all libraries which are there twice or more...

               

              And then: try again.

              • 4. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
                suresh kumar Newbie

                Hi jai,

                        In addition to it,im posting below the contents of jboss-app.xml and jboss-service.xml.

                Contents of jboss-app.xml:

                 

                <!DOCTYPE jboss-app
                PUBLIC "-//JBoss//DTD Java EE Application 5.0//EN"
                "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">


                <jboss-app>   
                  <module> 
                    <service>ems.sar</service>
                  </module>
                  <module> 
                    <service>axis2.war</service>
                  </module>
                  <module> 
                    <service>ems.war</service>
                  </module>
                </jboss-app>

                 

                Contents of jboss-service.xml:

                <!-- A skeleton JBoss MBean service descriptor DTD. This cannot be used in
                general to validate a jboss-service.xml descriptor do to the fact that the attribute
                element allows ANY content.

                $Id: jboss-service_3_2.dtd,v 1.1.2.7 2003/10/30 13:42:24 ejort Exp $

                DOCTYPE server
                    PUBLIC "-//JBoss//DTD MBean Service 3.2//EN"
                    "http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd"
                -->

                <server>
                <!--  @version "%Z% %P% %I% %G% %U%" -->

                <mbean code="com.mckesson.ems.admin.server.mbean.LoggingManagerMBean" name="mckesson.ems.admin:name=LoggingManager" >
                </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.AuditLoggingManagerMBean" name="mckesson.ems.admin:name=AuditLoggingManager" >
                </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.InterfaceConfigService" name="mckesson.ems.admin:name=InterfaceConfig" >
                <depends>mckesson.ems.admin:name=AuditLoggingManager</depends>
                <depends>mckesson.ems.admin:name=LoggingManager</depends>
                </mbean>

                <mbean code="com.mckesson.ems.util.JMSEditorServiceMBean" name="mckesson.ems.util:name=JMSEditor" >
                </mbean>

                <mbean code="com.mckesson.ems.util.schemagenerator.GenSchemaServiceMBean" name="mckesson.ems.util:name=GenSchema" >
                </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.BackloadFileManagerService" name="mckesson.ems.admin:name=BackloadFileManagerService">
                </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.EmsVersionService" name="mckesson.ems.admin:name=EmsVersion">
                  </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.LogService" name="mckesson.ems.admin:name=LogService">
                  </mbean>

                <mbean code="com.mckesson.ems.admin.server.mbean.XlateTableService" name="mckesson.ems.admin:name=XlateTableService" >
                </mbean>

                </server>

                 

                i have also placed a jboss-classloading.xml under WEB-INF directory of war files packaged in my EAR file.

                Contents of jboss-classloading.xml:

                <?xml version="1.0" encoding="UTF-8"?>
                <classloading xmlns="urn:jboss:classloading:1.0"
                              name="my.war"
                              domain="DefaultDomain"
                              parent-domain="Ignored"
                              export-all="NON_EMPTY"
                              import-all="true">
                </classloading>

                 

                Let me know if you need any more information.Thanks in advance.

                • 5. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
                  jaikiran pai Master

                  suresh kumar wrote:

                   

                   

                  Output of my EAR file:

                  C:\>jar -tf hms15.2latestonetoday1\server\default\deploy\ems.ear
                  META-INF/
                  META-INF/MANIFEST.MF
                  META-INF/application.xml

                  META-INF/jboss-app.xml
                  ems.war
                  axis2.war
                  ems.sar

                  Try renaming ems.sar to ems1.sar. Looks like there's a bug where if a war is named the same as some other module (sar in this case), it potentially ends up picking wrong metadata. So try keeping the names of those subdeployments unique.

                   

                   

                  suresh kumar wrote:

                   

                  by the way,do you live here in india>? i so,where do you live?

                   

                   

                  Yes, I work from Pune, India.

                  • 6. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
                    jaikiran pai Master

                    I just noticed your other reply:

                    <!DOCTYPE jboss-app
                    PUBLIC "-//JBoss//DTD Java EE Application 5.0//EN"
                    "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">


                    <jboss-app>   
                      <module> 
                        <service>ems.sar</service>
                      </module>
                      <module> 
                        <service>axis2.war</service>
                      </module>
                      <module> 
                        <service>ems.war</service>
                      </module>
                    </jboss-app>

                    That jboss-app.xml is incorrect. You shouldn't be mapping war modules are "service". Change it to:

                     

                     

                    <!DOCTYPE jboss-app
                    PUBLIC "-//JBoss//DTD Java EE Application 5.0//EN"
                    "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
                    
                    <jboss-app>    
                      <module>  
                        <service>ems.sar</service>
                      </module>
                    </jboss-app>
                    
                    • 7. Re: Classcast Exception while deploying an ear file in jboss 5.1.0
                      suresh kumar Newbie

                      Hi,

                              We tried renaming the ems.sar to ems1.sar and ems.war to ems2.war and also modified the jboss-app.xml as suggested by you above but im now getting the below exception.You have any resolution in sight for this?

                       

                              03:18:15,127 ERROR [AbstractKernelController] Error installing to Create: name=jboss.jacc:id="vfszip
                      :/C:/hms15.2latestonetoday1/server/default/deploy/ems.ear/",service=jacc state=Configured mode=Manua
                      l requiredState=Create
                      java.lang.RuntimeException: java.lang.IllegalStateException: Can't overwrite cause
                              at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:87)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                              at $Proxy38.create(Unknown Source)
                              at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyL
                      ifecycleAction.java:42)
                              at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyL
                      ifecycleAction.java:37)
                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Sim
                      pleControllerContextAction.java:62)
                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle
                      rContextAction.java:71)
                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC
                      ontextActions.java:51)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext
                      .java:286)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                              at org.jboss.system.ServiceController.create(ServiceController.java:422)
                              at org.jboss.system.ServiceController.create(ServiceController.java:387)
                              at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                              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)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                      va:1157)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                      va:1178)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeploye
                      rAdapter.java:117)
                              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDepl
                      oyAction.java:70)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractP
                      rofileAction.java:53)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(Abstract
                      ProfileService.java:361)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(
                      AbstractProfileService.java:306)
                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst
                      rap.java:271)
                              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                              at org.jboss.Main.boot(Main.java:221)
                              at org.jboss.Main$1.run(Main.java:556)
                              at java.lang.Thread.run(Thread.java:619)
                      Caused by: java.lang.IllegalStateException: Can't overwrite cause
                              at java.lang.Throwable.initCause(Throwable.java:320)
                              at org.jboss.security.jacc.JBossPolicyConfigurationFactory.<init>(JBossPolicyConfigurationFa
                      ctory.java:65)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
                      39)
                              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
                      pl.java:27)
                              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                              at java.lang.Class.newInstance0(Class.java:355)
                              at java.lang.Class.newInstance(Class.java:308)
                              at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfig
                      urationFactory.java:91)
                              at org.jboss.deployment.security.JaccPolicy.createPolicyConfiguration(JaccPolicy.java:187)
                              at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:83)
                              ... 63 more
                      03:18:15,197 INFO  [ClientENCInjectionContainer] STOPPED CLIENT ENC CONTAINER: js
                      03:18:15,227 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/hms15.2lates
                      tonetoday1/server/default/deploy/ems.ear/ state=PreReal mode=Manual requiredState=Real
                      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jacc:service=jacc,id="vfszip:/C:
                      /hms15.2latestonetoday1/server/default/deploy/ems.ear/"
                              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentExcept
                      ion.java:49)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                              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)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                      va:1157)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                      va:1178)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeploye
                      rAdapter.java:117)
                              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDepl
                      oyAction.java:70)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractP
                      rofileAction.java:53)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(Abstract
                      ProfileService.java:361)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(
                      AbstractProfileService.java:306)
                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst
                      rap.java:271)
                              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                              at org.jboss.Main.boot(Main.java:221)
                              at org.jboss.Main$1.run(Main.java:556)
                              at java.lang.Thread.run(Thread.java:619)
                      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Can't overwrite cause
                              at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:87)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                              at $Proxy38.create(Unknown Source)
                              at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyL
                      ifecycleAction.java:42)
                              at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyL
                      ifecycleAction.java:37)
                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Sim
                      pleControllerContextAction.java:62)
                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle
                      rContextAction.java:71)
                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC
                      ontextActions.java:51)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                      java:348)
                              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext
                      .java:286)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                      4)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                      082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                      84)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                              at org.jboss.system.ServiceController.create(ServiceController.java:422)
                              at org.jboss.system.ServiceController.create(ServiceController.java:387)
                              at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)
                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)
                              ... 34 more
                      Caused by: java.lang.IllegalStateException: Can't overwrite cause
                              at java.lang.Throwable.initCause(Throwable.java:320)
                              at org.jboss.security.jacc.JBossPolicyConfigurationFactory.<init>(JBossPolicyConfigurationFa
                      ctory.java:65)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
                      39)
                              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
                      pl.java:27)
                              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                              at java.lang.Class.newInstance0(Class.java:355)
                              at java.lang.Class.newInstance(Class.java:308)
                              at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfig
                      urationFactory.java:91)
                              at org.jboss.deployment.security.JaccPolicy.createPolicyConfiguration(JaccPolicy.java:187)
                              at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:83)
                              ... 63 more
                      03:18:22,207 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jnd
                      i/rmi://127.0.0.1:1090/jmxconnector
                      03:18:22,548 INFO  [MailService] Mail Service bound to java:/Mail
                      03:18:28,466 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been dete
                      cted that the MessageSucker component which sucks messages from one node to another has not had its
                      password changed from the installation default. Please see the JBoss Messaging user guide for instru
                      ctions on how to do this.
                      03:18:28,486 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.an
                      notation.ManagementComponent
                      03:18:28,736 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.an
                      notation.ManagementComponent
                      03:18:28,987 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSST
                      S_4_6_1_GA) - JBoss Inc.
                      03:18:28,987 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
                      03:18:29,668 INFO  [TransactionManagerService] Initializing recovery manager
                      03:18:30,098 INFO  [TransactionManagerService] Recovery manager configured
                      03:18:30,098 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
                      03:18:30,179 INFO  [TransactionManagerService] Starting transaction recovery manager
                      03:18:31,180 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal perf
                      ormance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk
                      1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
                      ;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Program Files\NUnit 2.2\bin;C:\Program
                      Files\Microsoft Visual Studio\VSS\win32;C:\java\apache-ant-1.6.2\bin;C:\Program Files\NAnt\nant-0.8
                      5-rc2\bin;C:\Program Files\Borland\StarTeam SDK 2005 R2\Lib;C:\Program Files\Borland\StarTeam SDK 20
                      05 R2\Bin;C:\Program Files\Java\jdk1.6.0_18\bin;C:\tools\apache-ant-1.6.5\bin;C:\MSVC\HELP;C:\Codeba
                      se\HPF11\R11.0\src\Common\bin;C:\Codebase\HPF11\R11.0\src\IE\WIN32\DLL;C:\imnet\Common;C:\imnet\DLL;
                      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\Borland\StarTeam SDK 2006\Lib;C:\Progr
                      am Files\Borland\StarTeam SDK 2006\Bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;C:\Program File
                      s\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program
                      Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShel
                      l\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program
                      Files\Borland\StarTeam Cross-Platform Client 2006;C:\Program Files\ImageConverter Plus;C:\Program Fi
                      les\ImageConverter Plus\Microsoft.VC80.CRT;C:\Program Files\ImageConverter Plus\Microsoft.VC80.MFC;C
                      :\Program Files\Borland\StarTeam SDK 10.4\bin;C:\Program Files\Borland\StarTeam SDK 10.4\Lib;C:\WIND
                      OWS\Microsoft.NET\Framework\v2.0.50727
                      03:18:31,400 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8888
                      03:18:31,400 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
                      03:18:32,231 INFO  [StandardService] Starting service jboss.web
                      03:18:32,242 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
                      03:18:32,312 INFO  [Catalina] Server startup in 901 ms
                      03:18:32,372 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
                      03:18:33,784 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
                      03:18:33,874 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
                      03:18:34,064 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/hms15.2latestonetod
                      ay1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
                      03:18:34,104 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/hms15.2latestonetod
                      ay1/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
                      03:18:34,144 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/hms15.2latestonetod
                      ay1/server/default/deploy/jms-ra.rar/META-INF/ra.xml
                      03:18:34,164 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/hms15.2latestonetod
                      ay1/server/default/deploy/mail-ra.rar/META-INF/ra.xml
                      03:18:34,194 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/hms15.2latestonetod
                      ay1/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
                      03:18:34,395 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
                      03:18:34,435 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
                      03:18:34,435 INFO  [RAMJobStore] RAMJobStore initialized.
                      03:18:34,435 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from
                      default resource file in Quartz package: 'quartz.properties'
                      03:18:34,435 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
                      03:18:34,445 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                      03:18:35,326 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=Data
                      SourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                      03:18:42,206 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
                      03:18:42,396 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCac
                      heSize=2000
                      03:18:42,416 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection fa
                      ctory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non c
                      lustered. So connection factory will *not* support failover
                      03:18:42,416 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connecti
                      on factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is
                      non clustered. So connection factory will *not* support load balancing
                      03:18:42,546 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, leas
                      e period 10000 milliseconds
                      03:18:42,546 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@12f5
                      b63 started
                      03:18:42,556 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000,
                      downCacheSize=2000
                      03:18:42,556 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, leas
                      e period 10000 milliseconds
                      03:18:42,556 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@4210
                      77 started
                      03:18:42,556 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, leas
                      e period 10000 milliseconds
                      03:18:42,556 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@186d
                      031 started
                      03:18:42,566 INFO  [QueueService] Queue[/queue/TotalOrderQueue] started, fullSize=200000, pageSize=2
                      000, downCacheSize=2000
                      03:18:42,566 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=Conn
                      ectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                      03:18:42,827 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
                      03:18:42,927 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
                      03:18:48,885 INFO  [TomcatDeployment] deploy, ctxPath=/
                      03:18:49,076 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
                      03:18:49,276 INFO  [TomcatDeployment] deploy, ctxPath=/portal
                      03:18:50,658 INFO  [ContextConfig] WARNING: Security role name inaccessible used in an <auth-constra
                      int> without being defined in a <security-role>
                      03:18:50,828 INFO  [STDOUT] 18 Oct 2011 03:18:50,828 | main | ConfigurationServlet | Initializing...

                      03:18:50,828 INFO  [STDOUT] 18 Oct 2011 03:18:50,828 | main | ConfigurationServlet | parameter: file
                      =config/application.config
                      03:18:50,858 INFO  [STDOUT] 18 Oct 2011 03:18:50,858 | main | ConfigurationServlet | parameter: envi
                      ronment=production
                      03:18:50,858 INFO  [STDOUT] 18 Oct 2011 03:18:50,858 | main | ConfigurationServlet | parameter: loca
                      tion=servlet-context
                      03:18:50,858 INFO  [STDOUT] 18 Oct 2011 03:18:50,858 | main | ConfigurationServlet | parameter: appl
                      ication=HMS
                      03:18:50,868 INFO  [STDOUT] 18 Oct 2011 03:18:50,868 | main | SingletonConfiguration | Loading EIG c
                      onfiguration...
                      03:18:50,948 INFO  [STDOUT] 18 Oct 2011 03:18:50,948 | main | Mapping | Loading mapping descriptors
                      from vfsfile:/C:/hms15.2latestonetoday1/server/default/deploy/portal.war/WEB-INF/classes/com/mckesso
                      n/eig/common/context/configuration/descriptor/mappings.xml
                      03:18:50,958 INFO  [STDOUT] 18 Oct 2011 03:18:50,958 | main | ConfigurationParser | Parsing configur
                      ation file: config/application.config
                      03:18:51,469 INFO  [STDOUT] 18 Oct 2011 03:18:51,469 | main | ConfigurationBuilder | Building config
                      uration for environment: production
                      03:18:51,469 INFO  [STDOUT] 18 Oct 2011 03:18:51,469 | main | ConfigurationParser | Parsing configur
                      ation file: config/services.config
                      03:18:51,509 INFO  [STDOUT] 18 Oct 2011 03:18:51,509 | main | ConfigurationParser | Parsing configur
                      ation file: config/logging/console.config
                      03:18:51,519 INFO  [STDOUT] 18 Oct 2011 03:18:51,519 | main | SystemPropertyElement | System propert
                      y set:  eig.console=true
                      03:18:51,519 INFO  [STDOUT] 18 Oct 2011 03:18:51,519 | main | ConfigurationParser | Parsing configur
                      ation file: config/logging/log.config
                      03:18:51,539 INFO  [STDOUT] 18 Oct 2011 03:18:51,539 | main | SystemPropertyElement | System propert
                      y set:  com.mckesson.eig.log.pattern=%d{DATE} | %t | %X{ipaddress} | %X{userid} | %c{1} | %m%n
                      03:18:51,549 INFO  [STDOUT] 18 Oct 2011 03:18:51,549 | main | LogElement | Initializing logging...
                      03:18:51,549 INFO  [STDOUT] 18 Oct 2011 03:18:51,549 | main | LogElement | Using properties configur
                      ation file: config/logging/log4j-production.properties
                      03:19:11,398 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deploymen
                      ts (SEE PREVIOUS ERRORS FOR DETAILS):

                      DEPLOYMENTS IN ERROR:
                        Deployment "vfszip:/C:/hms15.2latestonetoday1/server/default/deploy/ems.ear/" is in error due to t
                      he following reason(s): java.lang.IllegalStateException: Can't overwrite cause

                      03:19:11,458 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=
                      200905221053)] Started in 3m:15s:992ms