[keycloak-user] tutorial service-jee-jaxrs: Deployable container must be specified

Viggo Navarsete viggo.navarsete at gmail.com
Sun Jul 23 15:17:13 EDT 2017


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