<div dir="ltr">For reference:<div><br></div><div><a href="https://issues.jboss.org/browse/KEYCLOAK-2461">https://issues.jboss.org/browse/KEYCLOAK-2461</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 1:03 AM, Bill Burke <span dir="ltr">&lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Yes, this is because the error was introduced in 1.9.RC1.<br>
    <br>
    Tutorials are a bit ancient.  We&#39;ll be updating them soon....but if
    you download the demo distribution, there are tons of examples.<div><div class="h5"><br>
    <br>
    <div>On 2/10/2016 7:30 PM, Renann Prado
      wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">I changed to 1.8.1.Final and it worked!<br>
        Now my only problem is that, for some reason, I do not get
        redirected to the login page when I access a protected resource.<br>
        I&#39;m watching your tutorial right now to try to understand why it
        isn&#39;t working.</p>
      <p dir="ltr">Thanks</p>
      <div class="gmail_quote">On Feb 10, 2016 22:27, &quot;Bill Burke&quot; &lt;<a href="mailto:bburke@redhat.com" target="_blank"></a><a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Its a scheduled bug. 
            Fixed in master.<br>
            <br>
            <div>On 2/10/2016 3:23 PM, Renann Prado wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div>I&#39;ve been following keycloak guide, but I&#39;m facing
                  the below exception.</div>
                <div>I&#39;m trying to secure a WAR that is inside of an
                  EAR, I&#39;ve tried to add below two dependencies in my
                  pom.xml.</div>
                <div>What am I missing?<br>
                </div>
                <div><br>
                </div>
                <div><b>Wildfly version: </b>10.0.0.Final</div>
                <div><b>Keycloak version: </b>1.9.0.CR1</div>
                <div><br>
                </div>
                <div><b>Dependencies (tried in EAR and in WAR, no luck):</b></div>
                <div><br>
                </div>
                <div>
                  <div>&lt;dependency&gt;</div>
                  <div>    &lt;groupId&gt;org.keycloak&lt;/groupId&gt;</div>
                  <div>   
                    &lt;artifactId&gt;keycloak-core&lt;/artifactId&gt;</div>
                  <div>    &lt;version&gt;1.9.0.CR1&lt;/version&gt;</div>
                  <div>    &lt;scope&gt;provided&lt;/scope&gt;</div>
                  <div>&lt;/dependency&gt;</div>
                  <div>&lt;dependency&gt;</div>
                  <div>    &lt;groupId&gt;org.keycloak&lt;/groupId&gt;</div>
                  <div>   
                    &lt;artifactId&gt;keycloak-adapter-core&lt;/artifactId&gt;</div>
                  <div>    &lt;version&gt;1.9.0.CR1&lt;/version&gt;</div>
                  <div>    &lt;scope&gt;provided&lt;/scope&gt;</div>
                  <div>&lt;/dependency&gt;</div>
                </div>
                <div><b><br>
                  </b></div>
                <div><b>Subsystem configuration:</b></div>
                <div><b><br>
                  </b></div>
                <div>
                  <div>&lt;subsystem
                    xmlns=&quot;urn:jboss:domain:keycloak:1.1&quot;&gt;</div>
                  <div>    &lt;secure-deployment
                    name=&quot;Test-web-1.0-SNAPSHOT.war&quot;&gt;</div>
                  <div>        &lt;realm&gt;TestRealm&lt;/realm&gt;</div>
                  <div>       
                    &lt;resource&gt;test-resource&lt;/resource&gt;</div>
                  <div>       
&lt;realm-public-key&gt;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpxbZQMAf2NPcWCbdVWfu3JKEZ5PHuL+a5JTzyuln/wXpfhGPyCDS8rYDj2tf5lA8WQYoV8M5ip3DbCdL43wsW8/oJM/UOKn7mwy2x0OdW40bw1c8b1D6FveliIXwtovyw0EGCFn67qLdtHPLAlVvv5UXPIPFCakzdx1xS/6zgZ1uF2fzwLZpLh21M9XYNHQk6ui047+13Uf5H5yYQNLin8WluZ4JLfO8teVV9ARTqezVoZ5/+SNH4Mw+N1i7sGr13mzl51XvpFmm10Yx0dNiuy+WPA9xv1eNWcWgQWXxCEzDBenn59pmZ9JnTpoOqvZknmBGqyQPDqN9tJIWnWZKQIDAQAB&lt;/realm-public-key&gt;</div>
                  <div>        &lt;auth-server-url&gt;<a href="http://localhost:8082/auth" target="_blank"></a><a href="http://localhost:8082/auth" target="_blank">http://localhost:8082/auth</a>&lt;/auth-server-url&gt;</div>
                  <div>       
                    &lt;ssl-required&gt;none&lt;/ssl-required&gt;</div>
                  <div>        &lt;credential
                    name=&quot;secret&quot;&gt;password&lt;/credential&gt;</div>
                  <div>    &lt;/secure-deployment&gt;</div>
                  <div>&lt;/subsystem&gt;</div>
                </div>
                <div><br>
                </div>
                <div><b>Exception</b></div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>
                  <div>8:13:18,779 ERROR [org.jboss.msc.service.fail]
                    (MSC service thread 1-3) MSC000001: Failed to start
                    service
                    jboss.deployment.unit.&quot;Test-ear.ear&quot;.DEPENDENCIES:
                    org.jboss.msc.service.StartException in service
                    jboss.deployment.unit.&quot;Test-ear.ear&quot;.DEPENDENCIES:
                    WFLYSRV0153: Failed to process phase DEPENDENCIES of
                    deployment &quot;Test-ear.ear&quot;</div>
                  <div><span style="white-space:pre-wrap">        </span>at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
                    java.lang.Thread.run(Thread.java:745)</div>
                  <div>Caused by: java.lang.NullPointerException</div>
                  <div><span style="white-space:pre-wrap">        </span>at
org.keycloak.subsystem.adapter.extension.KeycloakDependencyProcessor.deploy(KeycloakDependencyProcessor.java:52)</div>
                  <div><span style="white-space:pre-wrap">        </span>at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)</div>
                  <div><span style="white-space:pre-wrap">        </span>... 5
                    more</div>
                  <div><br>
                  </div>
                  <div>18:13:18,784 ERROR
                    [org.jboss.as.controller.management-operation]
                    (management-handler-thread - 2) WFLYCTL0013:
                    Operation (&quot;deploy&quot;) failed - address:
                    ([(&quot;deployment&quot; =&gt; &quot;Test-ear.ear&quot;)]) - failure
                    description: {&quot;WFLYCTL0080: Failed services&quot; =&gt;
                    {&quot;jboss.deployment.unit.\&quot;Test-ear.ear\&quot;.DEPENDENCIES&quot;
                    =&gt; &quot;org.jboss.msc.service.StartException in
                    service
                    jboss.deployment.unit.\&quot;Test-ear.ear\&quot;.DEPENDENCIES:
                    WFLYSRV0153: Failed to process phase DEPENDENCIES of
                    deployment \&quot;Test-ear.ear\&quot;</div>
                  <div>    Caused by: java.lang.NullPointerException&quot;}}</div>
                  <div>18:13:18,786 ERROR [org.jboss.as.server]
                    (management-handler-thread - 2) WFLYSRV0021: Deploy
                    of deployment &quot;Test-ear.ear&quot; was rolled back with
                    the following failure message: </div>
                  <div>{&quot;WFLYCTL0080: Failed services&quot; =&gt;
                    {&quot;jboss.deployment.unit.\&quot;Test-ear.ear\&quot;.DEPENDENCIES&quot;
                    =&gt; &quot;org.jboss.msc.service.StartException in
                    service
                    jboss.deployment.unit.\&quot;Test-ear.ear\&quot;.DEPENDENCIES:
                    WFLYSRV0153: Failed to process phase DEPENDENCIES of
                    deployment \&quot;Test-ear.ear\&quot;</div>
                  <div>    Caused by: java.lang.NullPointerException&quot;}}</div>
                </div>
                <br clear="all">
                <div>
                  <div>Renann Prado</div>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <br>
              <pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
            </blockquote>
            <br>
            <pre cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
          </div>
          <br>
          _______________________________________________<br>
          keycloak-user mailing list<br>
          <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
          <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <pre cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
  </div></div></div>

<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>