<p dir="ltr">Have you tried it with the examples available here <a href="http://www.redhat.com/j/elqNow/elqRedir.htm?ref=http://downloads.jboss.org/keycloak/1.9.1.Final/keycloak-demo-1.9.1.Final.tar.gz">http://www.redhat.com/j/elqNow/elqRedir.htm?ref=http://downloads.jboss.org/keycloak/1.9.1.Final/keycloak-demo-1.9.1.Final.tar.gz</a> ?</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 7, 2016, 7:34 PM Juan Diego <<a href="mailto:juandiego83@gmail.com">juandiego83@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I dont think I did something in particular. I downloaded keycloak 1.9.1 server. Added scandir to the standalone.xml.<br></div>Git clone keycloak repo. I used eclipse, imported maven examples to workspace.<br></div><div>cd examples/<br></div><div>mvn clean install<br></div>cd /demo-templates<br></div>mvn clean install<br></div>cd third-party-cdi<br></div>mvn clean install<br></div>cp target/oauth-client-cdi.war keycloak-1.9.1.final/standalone/deployments/<br><br></div>I imported the test realm from json file as explained on the documentaion. <br><br></div>I might have done something else wrong. But i thought I follow all the instructions to the letter twice.<br><br></div>I added the standalone.xml<br><br></div>I dont know If I should any other stuff.<br><br></div>Thanks,<br><br></div>Juan Diego<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 4:15 PM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Could you please provide the exact steps to reproduce it? I'm running the same example based on 2.0.0.CR1-SNAPSHOT (preconfigured distribution) against master with no issues.<div><br></div><div>What I did was:</div><div><br></div><div>1. mvn clean install -Pdistribution</div><div>2. cp distribution/demo-dist/target/keycloak-demo-2.0.0.CR1-SNAPSHOT.tar.gz someplace/</div><div>3. Upload my testrealm.json</div><div>4. Under examples/preconfigured-demo, deploy third-party-cdi</div></div><br><div class="gmail_quote"><div><div><div dir="ltr">On Thu, Apr 7, 2016 at 12:58 PM Juan Diego <<a href="mailto:juandiego83@gmail.com" target="_blank">juandiego83@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div>Hi,<br><br></div>I ran the demo oauth-client-cdi the day before yesterday and it seemed to work. It had some problems with the database service configuration, and I fixed that. But then I decided to do a git fetch in order to get latest repo and I am getting this error.<br><br>ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 78) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: java.lang.RuntimeException: java.lang.NullPointerException<br> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)<br> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<br> at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br> at java.lang.Thread.run(Thread.java:745)<br> at org.jboss.threads.JBossThread.run(JBossThread.java:320)<br>Caused by: java.lang.RuntimeException: java.lang.NullPointerException<br> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)<br> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)<br> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)<br> ... 6 more<br>Caused by: java.lang.NullPointerException<br> at org.keycloak.servlet.ServletOAuthClientBuilder.build(ServletOAuthClientBuilder.java:47)<br> at org.keycloak.example.oauth.AppContextListener.contextInitialized(AppContextListener.java:59)<br> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)<br> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)<br> ... 8 more<br><br>10:52:00,992 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./oauth-client-cdi" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: java.lang.RuntimeException: java.lang.NullPointerException<br> Caused by: java.lang.RuntimeException: java.lang.NullPointerException<br> Caused by: java.lang.NullPointerException"}}<br><br></div>The third party app works fine just the cdi doesnt work.<br><br></div>Thanks,<br><br></div>Juan Diego<br></div></div></div>
_______________________________________________<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></blockquote></div>
</blockquote></div><br></div>
</blockquote></div>