[keycloak-user] tutorial service-jee-jaxrs: Deployable container must be specified
Sebastien Blanc
sblanc at redhat.com
Sun Jul 23 15:49:54 EDT 2017
No stick to WF10 for now. What is the output of the cli command when you
install the adapter ?
Le dim. 23 juil. 2017 à 21:47, Viggo Navarsete <viggo.navarsete at gmail.com>
a écrit :
> hmm...ok:) Then, have you some other clue to why the adapter doesn't seem
> to be installed correctly? Should I try the Wildfly 11 adapter instead?
>
>
>
> On Sun, Jul 23, 2017 at 9:46 PM Sebastien Blanc <sblanc at redhat.com> wrote:
>
>> It's the same , one can be used offline and the other needs wildfly
>> running.
>>
>>
>> Le dim. 23 juil. 2017 à 21:35, Viggo Navarsete <viggo.navarsete at gmail.com>
>> a écrit :
>>
>>> When I look here:
>>> https://keycloak.gitbooks.io/documentation/getting_started/topics/secure-jboss-app/install-client-adapter.html
>>> I did this:
>>>
>>> $ cd bin
>>> $ ./jboss-cli.sh --file=*adapter-install-offline.cli*
>>>
>>> but, when I look here:
>>> https://github.com/keycloak/keycloak-quickstarts#keycloak
>>> it seems that it's another adapter that I should have installed?
>>>
>>> For Linux:
>>>
>>> WILDFLY_HOME/bin/jboss-cli.sh -c --file=WILDFLY_HOME/*bin/adapter-install.cli*
>>> WILDFLY_HOME/bin/jboss-cli.sh -c --command=:reload
>>>
>>>
>>> ..so I wonder which guide is the correct?
>>>
>>> Regards,
>>> Viggo
>>>
>>>
>>> On Sun, Jul 23, 2017 at 9:31 PM Viggo Navarsete <
>>> viggo.navarsete at gmail.com> wrote:
>>>
>>>> Update: I read another post where someone else also had issues
>>>> deploying the examples to a "vanilla Wildfly instance" and got the
>>>> recommendation to deploy them to the Keycloak server (which is a Wildfly
>>>> with Keycloak installed). I tried this, and the example worked, but then I
>>>> wonder: Isn't it normal to have Keycloack running on a separate instance?
>>>>
>>>>
>>>>
>>>> On Sun, Jul 23, 2017 at 9:17 PM Viggo Navarsete <
>>>> viggo.navarsete at gmail.com> wrote:
>>>>
>>>>> Thanks Sebastian,
>>>>>
>>>>> indeed, the running Wildfly caused the tests to fail, so as soon as I
>>>>> stopped the server they (at least) ran further :)
>>>>>
>>>>> I then tried to deploy the service.war from the target directory into
>>>>> Wildfly from the console, but ended up with this error in the console:
>>>>> Cannot upload deployment: {"WFLYCTL0080: Failed services" =>
>>>>> {"jboss.undertow.deployment.default-server.default-host./service" =>
>>>>> "org.jboss.msc.service.StartException in service
>>>>> jboss.undertow.deployment.default-server.default-host./service:
>>>>> java.lang.RuntimeException: java.lang.RuntimeException: UT010039: Unknown
>>>>> authentication mechanism KEYCLOAK Caused by: java.lang.RuntimeException:
>>>>> java.lang.RuntimeException: UT010039: Unknown authentication mechanism
>>>>> KEYCLOAK Caused by: java.lang.RuntimeException: UT010039: Unknown
>>>>> authentication mechanism KEYCLOAK"},"WFLYCTL0412: Required services that
>>>>> are not installed:" =>
>>>>> ["jboss.undertow.deployment.default-server.default-host./service"],"WFLYCTL0180:
>>>>> Services with missing/unavailable dependencies" => undefined}
>>>>>
>>>>> Any clue here?
>>>>>
>>>>> Regards,
>>>>> Viggo
>>>>>
>>>>> On Sun, Jul 23, 2017 at 12:28 PM Sebastien Blanc <sblanc at redhat.com>
>>>>> wrote:
>>>>>
>>>>>> On Sun, Jul 23, 2017 at 12:17 PM, Viggo Navarsete <
>>>>>> viggo.navarsete at gmail.com> wrote:
>>>>>>
>>>>>>> Are you able to run the same tutorials from your side?
>>>>>>>
>>>>>>> - I'm using Maven 3.2.5, JDK 1.8.0_131
>>>>>>> - I've started keycloack server (3.2.1.Final) with this command:
>>>>>>> ./standalone.sh -Djboss.socket.binding.port-offset=100
>>>>>>> - I've started Wildfly server (10.1.0.Final) with this command:
>>>>>>> ./standalone.sh
>>>>>>> - I've installed the client adapter for Wildfly 10 for Linux:
>>>>>>> https://downloads.jboss.org/keycloak/3.2.1.Final/adapters/keycloak-oidc/keycloak-wildfly-adapter-dist-3.2.1.Final.zip
>>>>>>> - I've configured a Client in Keycloak, and the file I've downloaded
>>>>>>> and put into the config directory of the tutorial looks like this:
>>>>>>> {
>>>>>>> "realm": "master",
>>>>>>> "bearer-only": true,
>>>>>>> "auth-server-url": "http://localhost:8180/auth",
>>>>>>> "ssl-required": "external",
>>>>>>> "resource": "service-jaxrs",
>>>>>>> "enable-cors": true
>>>>>>> }
>>>>>>>
>>>>>>> - I've added an admin user, viggis75, to Keycloak
>>>>>>> - I've added a "user" role, and also assigned it to viggis75
>>>>>>> - The admin user, viggis75, is refered to in the test:
>>>>>>> static {
>>>>>>> try {
>>>>>>> TestsHelper.appName = "test-demo";
>>>>>>> TestsHelper.baseUrl = "http://localhost:8080/test-demo
>>>>>>> ";
>>>>>>> TestsHelper.keycloakBaseUrl = "http://localhost:8180";
>>>>>>> // The URL Keycloak runs at
>>>>>>> importTestRealm("viggis75", "mypassword",
>>>>>>> "/quickstart-realm.json");
>>>>>>> createDirectGrantClient();
>>>>>>> } catch (Exception e) {
>>>>>>> e.printStackTrace();
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> If I run this command: mvn clean install -Pwildfly-managed
>>>>>>> -Denforcer.skip=true
>>>>>>> I get this:
>>>>>>> https://gist.github.com/anonymous/adb0d9699a5012b2e9f65e7ed22a7c91
>>>>>>>
>>>>>> This is failing because you have already manually started a Wildfly
>>>>>> and this is conflicting with the one that arquillian will start. If you
>>>>>> don't bother about the integration tests you can run :
>>>>>>
>>>>>> mvn clean install -DskipTests -Denforcer.skip=true
>>>>>>
>>>>>> This will create the WARs that you can then deploy.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> if I run this command: mvn install wildfly:deploy
>>>>>>> I get this:
>>>>>>> https://gist.github.com/anonymous/c39610ee19b73e57daed542973bf0ed7
>>>>>>>
>>>>>>> I've tried to reinstall both Wildfly and Keycloak and do everything
>>>>>>> from scratch, but end up with the same result each time, so I wonder what
>>>>>>> I'm missing...
>>>>>>>
>>>>>>> Regards,
>>>>>>> Viggo
>>>>>>>
>>>>>>> On Sun, Jul 23, 2017 at 12:16 AM Viggo Navarsete <
>>>>>>> viggo.navarsete at gmail.com> wrote:
>>>>>>>
>>>>>>>> mvn install wildfly:deploy
>>>>>>>>
>>>>>>>> On Sun, Jul 23, 2017 at 12:06 AM Sebastien Blanc <sblanc at redhat.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> What is the command you issued ?
>>>>>>>>>
>>>>>>>>> Le sam. 22 juil. 2017 à 23:59, Viggo Navarsete <
>>>>>>>>> viggo.navarsete at gmail.com> a écrit :
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> sorry for the missing attachment. Here is the gist:
>>>>>>>>>> https://gist.github.com/anonymous/0793c71c56246a7de520a849a35a2a93
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Viggo
>>>>>>>>>>
>>>>>>>>>> On Sat, Jul 22, 2017 at 8:56 PM Sebastien Blanc <
>>>>>>>>>> sblanc at redhat.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> Looks like the attachments didn't make it, make can you paste it
>>>>>>>>>>> in a gist or something like that,
>>>>>>>>>>>
>>>>>>>>>>> Seb
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jul 22, 2017 at 6:02 PM, Viggo Navarsete <
>>>>>>>>>>> viggo.navarsete at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm new to Keycloak, and have just started to familiarize with
>>>>>>>>>>>> the
>>>>>>>>>>>> tutorials. I've cloned the quickstarters and started with the
>>>>>>>>>>>> service-jee-jarxrs.
>>>>>>>>>>>>
>>>>>>>>>>>> I *think* I've followed all the instructions there, but still
>>>>>>>>>>>> it fails
>>>>>>>>>>>> while trying to both run the tests and deploy it.
>>>>>>>>>>>>
>>>>>>>>>>>> I've attached the output and hope someone are kind enough to
>>>>>>>>>>>> take a look at
>>>>>>>>>>>> it:) I think Keycloak looks great, but please help me over the
>>>>>>>>>>>> first bump
>>>>>>>>>>>> here :)
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Viggo
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> keycloak-user mailing list
>>>>>>>>>>>> keycloak-user at lists.jboss.org
>>>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
More information about the keycloak-user
mailing list