[keycloak-user] tutorial service-jee-jaxrs: Deployable container must be specified
Viggo Navarsete
viggo.navarsete at gmail.com
Sun Jul 23 06:17:14 EDT 2017
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
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