14 Replies Latest reply on Feb 5, 2014 2:26 AM by praveen reddy

    Problem deploying ear in JBOSS AS7

    Sathish Kumar Newbie

      Hi Guys,

       

      I am not able to deploy my application in jboss server. I am using jboss 7.1.1-Final.

      This is the stack trace of the error i am getting in my console

       

       

         12:43:34,765 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "BTMSEAR.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDSMissing[jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS]","jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealmMissing[jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealm]"]}
      12:43:34,870 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment BTMS.war in 105ms
      12:43:34,871 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment BTMSEAR.ear in 106ms
      12:43:34,872 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014775: New missing/unsatisfied dependencies:
      service jboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS (missing) dependents: [service jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDS] 
      service jboss.security.security-domain.ManagementRealm (missing) dependents: [service jboss.web.deployment.default-host./BTMS.realm] 
      
      12:43:34,875 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDSMissing[jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS]","jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealmMissing[jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealm]"]}}}
      12:43:34,765 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "BTMSEAR.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDSMissing[jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS]","jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealmMissing[jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealm]"]}
      12:43:34,870 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment BTMS.war in 105ms
      12:43:34,871 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment BTMSEAR.ear in 106ms
      12:43:34,872 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014775: New missing/unsatisfied dependencies:
      service jboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS (missing) dependents: [service jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDS] 
      service jboss.security.security-domain.ManagementRealm (missing) dependents: [service jboss.web.deployment.default-host./BTMS.realm] 
      
      12:43:34,875 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDSMissing[jboss.naming.context.java.module.BTMSEAR.BTMS.env.jboss.jdbc.OracleBTMSDSjboss.naming.context.java.jboss.resources.jboss.jdbc.OracleBTMSDS]","jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealmMissing[jboss.web.deployment.default-host./BTMS.realmjboss.security.security-domain.ManagementRealm]"]}}}
       

       

      And this is my jboss-web.xml

       

       

       

      <jboss-web>
       <security-domain>ManagementRealm</security-domain>
        <context-root>/BTMS</context-root>
       <resource-ref>
              <res-ref-name>jdbc/OracleBTMSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <jndi-name>java:/jdbc/OracleBTMSDS</jndi-name>
              <res-auth>Container</res-auth>
          </resource-ref>
      </jboss-web>
      
      

       

       

      I want to authenticate my application using property files.

       

      Please help me out. I am not able to identify what configuration is wrong.

      Thanks in advance