[keycloak-user] keycloak-overlay-eap6-1.6.1.Final has jobs start up issue

Ismail Shaik ismail117 at gmail.com
Wed Nov 18 16:08:43 EST 2015


Hi All,

I am trying the version 1.1.0 final with EAP 6.2 I am able to configure the
applications and users and roles with demo realm.

But some how database application is not deployable in Jboss EAP 6.2

I am getting the following issue when I try to login in demo realm to
access the customer-portal

session of subresource org.keycloak.protocol.oidc.OpenIDConnectService will
not be injected according to spec


while deploying in jboss with  command   mvn jboss-as:deploy  is having the
below stack trace in my server


14:58:22,857 INFO  [org.jboss.as.server.deployment] (MSC service thread
1-3) JBAS015876: Starting deployment of "database.war" (runtime-name:
"database.war")

14:58:22,888 INFO  [org.jboss.web] (ServerService Thread Pool -- 61)
JBAS018210: Register web context: /database

14:58:22,892 ERROR [org.apache.catalina.startup] (ServerService Thread Pool
-- 61) JBWEB001034: Cannot configure an authenticator for method KEYCLOAK

14:58:22,893 ERROR [org.jboss.web] (ServerService Thread Pool -- 61)
JBAS018206: Webapp [/database] is unavailable due to startup errors

14:58:22,893 ERROR [org.apache.catalina.core] (ServerService Thread Pool --
61) JBWEB001103: Error detected during context /database start, will stop it

14:58:22,896 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool
-- 61) MSC000001: Failed to start service
jboss.web.deployment.default-host./database:
org.jboss.msc.service.StartException in service
jboss.web.deployment.default-host./database:
org.jboss.msc.service.StartException in anonymous service: JBAS018040:
Failed to start context

at org.jboss.as.web.deployment.WebDeploymentService$1.run(
WebDeploymentService.java:96)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_75]

at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[rt.jar:1.7.0_75]

at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)

Caused by: org.jboss.msc.service.StartException in anonymous service:
JBAS018040: Failed to start context

at org.jboss.as.web.deployment.WebDeploymentService.doStart(
WebDeploymentService.java:161)

at org.jboss.as.web.deployment.WebDeploymentService.access$000(
WebDeploymentService.java:60)

at org.jboss.as.web.deployment.WebDeploymentService$1.run(
WebDeploymentService.java:93)

... 6 more


14:58:23,109 ERROR [org.jboss.as.server] (management-handler-thread - 6)
JBAS015870: Deploy of deployment "database.war" was rolled back with the
following failure message:

{"JBAS014671: Failed services" =>
{"jboss.web.deployment.default-host./database" => "
org.jboss.msc.service.StartException in service
jboss.web.deployment.default-host./database:
org.jboss.msc.service.StartException in anonymous service: JBAS018040:
Failed to start context

    Caused by: org.jboss.msc.service.StartException in anonymous service:
JBAS018040: Failed to start context"}}



Can you please me with that, I am not able to login in demo with the create
roles . Thanks,

Ismail

On Wed, Nov 18, 2015 at 9:20 AM, Ataraxus <atx at binaryninja.de> wrote:

> Hey Ismail,
>
> please consider this statement:
>
> "
> On 18 November 2015 at 13:55, Ataraxus < <atx at binaryninja.de>
> atx at binaryninja.de> wrote:
>
>> Hello Stian, thank you very much making this point clear!
>>
>> I guess the reason why people show up with the "expectation" that EAP 6.2
>> should be supported, is that on the frontpage it states:
>>   Supports JBoss AS7, EAP 6.x, Wildfly, Tomcat,...
>> and as you mentioned this holds only true for the adapters (maybe this
>> point should be stressed on the frontpage somehow).
>>
>
> Good point. We will update the website and documentation to make it
> clearer.
> "
> I guess trying to get Keycloak running on EAP 6.2 is not worth the effort,
> nor supported. What is supported are the adapters for EAP 6.2 but i guess
> you need keycloak oon it (as i did).
>
>
> Am 18.11.15 um 16:15 schrieb Ismail Shaik:
>
> Stian,
> I done the same procedure , but I am still having the same Issue , I think
> this is the version in compatible , Key cloak config has the server 1.7 and
> the  EAP standalone has the version 1.5 . I try to update the version with
> different combinations. I did not have luck yet .
>
> I tried another version  1.1.0 Final version which is working on existing
> EAP 6.2.3.  but I am not able to deploy the examples customer and  product
> portals.
>
> I am able to maven build successfully and the server is not able to deploy
> the ear file .
>
> I am trying all the options but not able to get it work on my EAP 6.2 . Un
> fortunately what ever the documentation is in the key cloak.org I
> followed every step multiple times no luck yet. Please throw some light on
> this . Help is highly appreciated.
>
> Thanks,
> Ismail
>
> On Wed, Nov 18, 2015 at 1:37 AM, Stian Thorgersen <sthorger at redhat.com>
> wrote:
>
>> Keycloak server only runs as standalone or deployed to WildFly 9 or EAP
>> 6.4. The adapter bits which is what you need for your applications works on
>> a large ranger of containers.
>>
>> Use the standalone Keycloak server download and run it separately to your
>> applications. Then get the eap6 adapter and deploy to EAP 6.2.
>>
>> On 17 November 2015 at 21:38, Ismail Shaik < <ismail117 at gmail.com>
>> ismail117 at gmail.com> wrote:
>>
>>> Hi Ataraxic,
>>>
>>> there is no manual process unless we compare and put them manually like
>>>  standalone folder and bin folder . Its available on with older versions .
>>> If you go to Beta version once you extract the
>>> *keycloak-war-dist-all-1.1.0.Beta2.zip*
>>> you will see deployment folder then just place that extracted deployment
>>> folder into your existing jboss standalone/deployment folder .
>>>
>>>
>>> On Tue, Nov 17, 2015 at 2:28 PM, Ataraxus < <atx at binaryninja.de>
>>> atx at binaryninja.de> wrote:
>>>
>>>> Hi Ismail,
>>>>
>>>> I'm able of installing keycloak via the documentation. The
>>>> documentation tells one how to install keycloak via the server overlay. The
>>>> error you get and posted here states (please correct me, if i'm wrong),
>>>> that jboss is not able to parse the configuration, since its not compatible
>>>> with the old versions.
>>>>
>>>> So I was asking if there is a "manual" of installing keycloak
>>>> "manually" without relying on the server overlay aka configuration. By
>>>> droping jars or wars in some jboss folders ;)
>>>>
>>>> Am 17.11.15 um 20:55 schrieb Ismail Shaik:
>>>>
>>>> Hi Bill,
>>>>
>>>> This is the Issue I am getting when I start the Server using the  *" bash
>>>> standalone.sh --server-config=standalone-keycloak.xml"*
>>>>
>>>>
>>>> Ismails-MacBook-Pro:bin ismailshaik$ bash standalone.sh
>>>> --server-config=standalone-keycloak.xml
>>>>
>>>>
>>>> =========================================================================
>>>>
>>>>
>>>>   JBoss Bootstrap Environment
>>>>
>>>>
>>>>   JBOSS_HOME: /Users/ismailshaik/Jboss/jboss-eap-6.2
>>>>
>>>>
>>>>   JAVA:
>>>> /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java
>>>>
>>>>
>>>>   JAVA_OPTS:  -server -XX:+UseCompressedOops -Xms1303m -Xmx1303m
>>>> -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
>>>> -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
>>>>
>>>>
>>>>
>>>> =========================================================================
>>>>
>>>>
>>>> 13:53:49,193 INFO  [org.jboss.modules] (main) JBoss Modules version
>>>> 1.3.3.Final-redhat-1
>>>>
>>>> 13:53:50,205 INFO  [org.jboss.msc] (main) JBoss MSC version
>>>> 1.0.4.GA-redhat-1
>>>>
>>>> 13:53:50,303 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899:
>>>> JBoss EAP 6.2.3.GA (AS 7.3.3.Final-redhat-SNAPSHOT) starting
>>>>
>>>> 13:53:50,814 ERROR [org.jboss.as.server] (Controller Boot Thread)
>>>> JBAS015956: Caught exception during boot:
>>>> org.jboss.as.controller.persistence.ConfigurationPersistenceException:
>>>> JBAS014676: Failed to parse configuration
>>>>
>>>> at
>>>> org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141)
>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>
>>>> at org.jboss.as.server.ServerService.boot(ServerService.java:324)
>>>> [jboss-as-server-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>
>>>> at
>>>> org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:253)
>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>
>>>> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]
>>>>
>>>> Caused by: javax.xml.stream.XMLStreamException: ParseError at
>>>> [row,col]:[2,1]
>>>>
>>>> Message: Unexpected element '{urn:jboss:domain:1.7}server'
>>>>
>>>> at
>>>> org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
>>>> [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
>>>>
>>>> at
>>>> org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
>>>> [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
>>>>
>>>> at
>>>> org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133)
>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>
>>>> ... 3 more
>>>>
>>>>
>>>> 13:53:50,816 FATAL [org.jboss.as.server] (Controller Boot Thread)
>>>> JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See
>>>> previous messages for details.
>>>>
>>>> 13:53:50,825 INFO  [org.jboss.as] (MSC service thread 1-15)
>>>> JBAS015950: JBoss EAP 6.2.3.GA (AS 7.3.3.Final-redhat-SNAPSHOT)
>>>> stopped in 4ms
>>>>
>>>> Ismails-MacBook-Pro:bin ismailshaik$
>>>>
>>>>
>>>> On Tue, Nov 17, 2015 at 1:43 PM, Bill Burke < <bburke at redhat.com>
>>>> bburke at redhat.com> wrote:
>>>>
>>>>> You don't need to migrate your 7 applications.  The client adapter
>>>>> should still work on EAP 6.2.  If it doesn't thats something we would fix.
>>>>> Its the server that we won't support on anything earlier.
>>>>>
>>>>> On 11/17/2015 2:29 PM, Ismail Shaik wrote:
>>>>>
>>>>>> Bill,
>>>>>>
>>>>>> Yes if I change the server I need to migrate all my 7 applications to
>>>>>> new jboss  EAP. Which is why I would like to have the version
>>>>>> compatible
>>>>>> with jboss eap 6.2.x.
>>>>>> Thank you for quick reply.
>>>>>>
>>>>>> On Nov 17, 2015 1:24 PM, "Bill Burke" < <bburke at redhat.com>
>>>>>> bburke at redhat.com
>>>>>> <mailto: <bburke at redhat.com>bburke at redhat.com>> wrote:
>>>>>>
>>>>>>     Is there a reason we don't work on 6.2.3?
>>>>>>
>>>>>>     On 11/17/2015 2:07 PM, Ismail Shaik wrote:
>>>>>>      > Marko,
>>>>>>      >
>>>>>>      > Can you please let me know Which version of key cloak is good
>>>>>> for
>>>>>>     Jboss
>>>>>>      > EAP 6.2.3. ? I have to use the Jboss EAP 6.2.3 . Thanks in
>>>>>> advance.
>>>>>>      >
>>>>>>      > On Tue, Nov 17, 2015 at 10:24 AM, Marko Strukelj
>>>>>>     < <mstrukel at redhat.com>mstrukel at redhat.com <mailto:
>>>>>> <mstrukel at redhat.com>mstrukel at redhat.com>
>>>>>>      > <mailto: <mstrukel at redhat.com>mstrukel at redhat.com <mailto:
>>>>>> <mstrukel at redhat.com>mstrukel at redhat.com>>> wrote:
>>>>>>      >
>>>>>>      >     You should use EAP 6.4.x. We only support that.
>>>>>>      >
>>>>>>      >     On Tue, Nov 17, 2015 at 5:12 PM, Ismail Shaik
>>>>>>     < <ismail117 at gmail.com>ismail117 at gmail.com <mailto:
>>>>>> <ismail117 at gmail.com>ismail117 at gmail.com>
>>>>>>      >     <mailto: <ismail117 at gmail.com>ismail117 at gmail.com <mailto:
>>>>>> <ismail117 at gmail.com>ismail117 at gmail.com>>> wrote:
>>>>>>      >
>>>>>>      >         Hi,
>>>>>>      >         This is Ismail , I am trying to set up SSO using the
>>>>>> key
>>>>>>     cloak ,
>>>>>>      >         I extracted the a *keycloak-overlay-eap6-1.6.1.Final
>>>>>> *to my
>>>>>>      >         Jboss Home  which has the version 6.2.3. EAP and when I
>>>>>>     try to
>>>>>>      >         start the server I am getting the below exception
>>>>>>      >
>>>>>>      >         se configuration
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>
>>>>>> org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141)
>>>>>>      >
>>>>>>
>>>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>       org.jboss.as.server.ServerService.boot(ServerService.java:324)
>>>>>>      >
>>>>>>
>>>>>> [jboss-as-server-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>
>>>>>> org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:253)
>>>>>>      >
>>>>>>
>>>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>>>      >
>>>>>>      >         at java.lang.Thread.run(Thread.java:745)
>>>>>> [rt.jar:1.7.0_75]
>>>>>>      >
>>>>>>      >         Caused by: javax.xml.stream.XMLStreamException:
>>>>>> ParseError at
>>>>>>      >         [row,col]:[2,1]
>>>>>>      >
>>>>>>      >         Message: Unexpected element '{urn:jboss:domain:1.7
>>>>>> }server'
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>
>>>>>> org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
>>>>>>      >
>>>>>>  [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>
>>>>>> org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
>>>>>>      >
>>>>>>  [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
>>>>>>      >
>>>>>>      >         at
>>>>>>      >
>>>>>>
>>>>>> org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133)
>>>>>>      >
>>>>>>
>>>>>> [jboss-as-controller-7.3.3.Final-redhat-SNAPSHOT.jar:7.3.3.Final-redhat-SNAPSHOT]
>>>>>>      >
>>>>>>      >         ... 3 more
>>>>>>      >
>>>>>>      >
>>>>>>      >         09:27:24,775 FATAL [org.jboss.as.server] (Controller
>>>>>> Boot
>>>>>>      >         Thread) JBAS015957: Server boot has failed in an
>>>>>>     unrecoverable
>>>>>>      >         manner; exiting. See previous messages for details.
>>>>>>      >
>>>>>>      >         09:27:24,784 INFO  [org.jboss.as <
>>>>>> <http://org.jboss.as>http://org.jboss.as>
>>>>>>     < <http://org.jboss.as/>http://org.jboss.as/>] (MSC
>>>>>>      >         service thread 1-7) JBAS015950: JBoss EAP 6.2.3.GA
>>>>>>     < <http://6.2.3.GA>http://6.2.3.GA>
>>>>>>      >         < <http://6.2.3.ga/>http://6.2.3.ga/> (AS
>>>>>> 7.3.3.Final-redhat-SNAPSHOT)
>>>>>>     stopped in 4ms
>>>>>>      >
>>>>>>      >
>>>>>>      >         I am running the server using below command.
>>>>>>      >
>>>>>>      >         bash standalone.sh
>>>>>> --server-config=standalone-keycloak.xml
>>>>>>      >
>>>>>>      >
>>>>>>      >         I am using the MAC OS
>>>>>>      >
>>>>>>      >
>>>>>>      >         --
>>>>>>      >         Thanks,
>>>>>>      >         Ismail Shaik - 908 922 9571 <908%20922%209571>
>>>>>> <908%20922%209571><tel:908%20922%209571> <908%20922%209571>
>>>>>>     <908%20922%209571><tel:908%20922%209571> <908%20922%209571>
>>>>>>      >
>>>>>>      >         _______________________________________________
>>>>>>      >         keycloak-user mailing list
>>>>>>      > <keycloak-user at lists.jboss.org>keycloak-user at lists.jboss.org
>>>>>>     <mailto: <keycloak-user at lists.jboss.org>
>>>>>> keycloak-user at lists.jboss.org>
>>>>>>     <mailto: <keycloak-user at lists.jboss.org>
>>>>>> keycloak-user at lists.jboss.org
>>>>>>     <mailto: <keycloak-user at lists.jboss.org>
>>>>>> keycloak-user at lists.jboss.org>>
>>>>>>      > <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>>      >
>>>>>>      >
>>>>>>      >
>>>>>>      >
>>>>>>      >
>>>>>>      > --
>>>>>>      > Thanks,
>>>>>>      > Ismail Shaik - 908 922 9571 <908%20922%209571>
>>>>>> <908%20922%209571><tel:908%20922%209571> <908%20922%209571>
>>>>>>      >
>>>>>>      >
>>>>>>      > _______________________________________________
>>>>>>      > keycloak-user mailing list
>>>>>>      > <keycloak-user at lists.jboss.org>keycloak-user at lists.jboss.org
>>>>>> <mailto: <keycloak-user at lists.jboss.org>keycloak-user at lists.jboss.org
>>>>>> >
>>>>>>      > <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>>      >
>>>>>>
>>>>>>     --
>>>>>>     Bill Burke
>>>>>>     JBoss, a division of Red Hat
>>>>>>     <http://bill.burkecentral.com>http://bill.burkecentral.com
>>>>>>     _______________________________________________
>>>>>>     keycloak-user mailing list
>>>>>>     <keycloak-user at lists.jboss.org>keycloak-user at lists.jboss.org
>>>>>> <mailto: <keycloak-user at lists.jboss.org>keycloak-user at lists.jboss.org
>>>>>> >
>>>>>>     <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>>
>>>>>>
>>>>> --
>>>>> Bill Burke
>>>>> JBoss, a division of Red Hat
>>>>> <http://bill.burkecentral.com>http://bill.burkecentral.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks,
>>>> Ismail Shaik - 908 922 9571 <908%20922%209571>
>>>>
>>>>
>>>> _______________________________________________
>>>> keycloak-user mailing listkeycloak-user at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> keycloak-user mailing list
>>>> keycloak-user at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks,
>>> Ismail Shaik - 908 922 9571 <908%20922%209571>
>>>
>>> _______________________________________________
>>> keycloak-user mailing list
>>> keycloak-user at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>
>>
>>
>
>
> --
> Thanks,
> Ismail Shaik - 908 922 9571
>
>
>


-- 
Thanks,
Ismail Shaik - 908 922 9571
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151118/da3c7ec9/attachment-0001.html 


More information about the keycloak-user mailing list