0 Replies Latest reply on Dec 10, 2013 10:06 AM by calomiro

    New missing/unsatisfied dependencies...

    calomiro

      Hello, I have the following error while trying to adapt a project from jboss as 4 to AS 7.1

      I need your help and don't know how to resolve this.

       

      15:44:02,123 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "crlweb.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.web.deployment.default-host./crlweb.realmjboss.security.security-domain.crlwebMissing[jboss.web.deployment.default-host./crlweb.realmjboss.security.security-domain.crlweb]"]}

      15:44:02,293 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment crlweb.war in 168ms

      15:44:02,300 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.security.security-domain.crlweb (missing) dependents: [service jboss.web.deployment.default-host./crlweb.realm]

      15:44:02,303 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.web.deployment.default-host./crlweb.realmjboss.security.security-domain.crlwebMissing[jboss.web.deployment.default-host./crlweb.realmjboss.security.security-domain.crlweb]"]}}}

       

      I'm implementing security with ldap. Here is my conf.

      in jboss-web.xml :

       

      <security-domain>crlweb</security-domain>

       

      And in standalone.xml :

       

      <security-domain name="crlweb">

          <authentication>

            <login-module code="LdapExtended" flag="required">

              <module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>

              <module-option name="java.naming.provider.url" value="ldap://xxx.xxx:389"/>

              <module-option name="java.naming.security.authentication" value="simple"/>

              <module-option name="bindDN" value="uid=,ou=comptes,dc=etu,dc=u-cergy,dc=fr"/>

              <module-option name="baseCtxDN" value="ou=Roles,dc=etu,dc=u-cergy,dc=fr"/>

        <module-option name="roleAttributeID" value="cn"/>

        <module-option name="searchScope" value="ONELEVEL_SCOPE"/>

              <module-option name="baseFilter" value="(uid={0})"/>

              <module-option name="allowEmptyPasswords" value="true"/>

            </login-module>

         <login-module flag="required" code="org.jboss.security.ClientLoginModule">

                      <module-option name="password-stacking" value="useFirstPass"/>

                  </login-module>

          </authentication>

       

        </security-domain>

       

      And in the webapp's web.xml :

       

      <security-constraint>

          <display-name>Tomcat Server Configuration Security Constraint</display-name>

          <web-resource-collection>

            <web-resource-name>Protected Area</web-resource-name>

            <!-- Define the context-relative URL(s) to be protected -->

            <url-pattern>*.jsp</url-pattern>

            <url-pattern>*.do</url-pattern>

            <url-pattern>*.html</url-pattern>

            <http-method>GET</http-method>

            <http-method>POST</http-method>

          </web-resource-collection>

          <auth-constraint>

             <role-name>*</role-name>

          </auth-constraint>

        <user-data-constraint>

        <transport-guarantee>CONFIDENTIAL</transport-guarantee>

        </user-data-constraint>

        </security-constraint>

       

       

        <!-- Login configuration uses form-based authentication -->

        <login-config>

          <auth-method>FORM</auth-method>

          <form-login-config>

            <form-login-page>/login.jsp</form-login-page>

            <form-error-page>/error.jsp</form-error-page>

          </form-login-config>

        </login-config>

        <security-role>

              <role-name>*</role-name>

          </security-role>

      </web-app>

       

      Thank you for your help.