[keycloak-dev] [keycloak-user] JBoss_Keycloak_"404 - Not Found"

Sushil Singh sushil.singh at guavus.com
Fri Nov 15 05:08:37 EST 2019


I think , you might be countering an error while the war is deployed that is why it is giving 404

You should identify the server logs first to identify what is failing

Thanks

Sushil

________________________________
From: keycloak-user-bounces at lists.jboss.org <keycloak-user-bounces at lists.jboss.org> on behalf of Naga Vijay <nagausb2 at gmail.com>
Sent: 13 November 2019 20:22
To: keycloak-user at lists.jboss.org <keycloak-user at lists.jboss.org>; keycloak-dev at lists.jboss.org <keycloak-dev at lists.jboss.org>
Subject: Re: [keycloak-user] JBoss_Keycloak_"404 - Not Found"

As I haven't heard back from anyone, I have logged this -
https://issues.jboss.org/browse/KEYCLOAK-12036

Thanks
Naga

On Wed, Nov 13, 2019 at 5:43 AM Naga Vijay <nagausb2 at gmail.com> wrote:

>
> Hello,
>
> Did anyone get a chance to look into this? I am wondering whether I am
> facing a bug. Keycloak realm, user, client definition are all in place. And
> the adapter has been installed into JBoss EAP instance. Here's web.xml in
> the hello.war ...
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
>
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
>
>          version="3.0">
>
>
>
>     <module-name>basicauth</module-name>
>
>
>
>     <security-constraint>
>
>         <web-resource-collection>
>
>             <url-pattern>/*</url-pattern>
>
>         </web-resource-collection>
>
>         <auth-constraint>
>
>             <role-name>*</role-name>
>
>         </auth-constraint>
>
>     </security-constraint>
>
>
>
>     <login-config>
>
>         <auth-method>KEYCLOAK</auth-method>
>
>         <realm-name>MyRealm</realm-name>
>
>     </login-config>
>
>
>
>     <security-role>
>
>         <role-name>*</role-name>
>
>     </security-role>
> </web-app>
>
> And here's keycloak.json alongside web.xml ...
>
> {
>
>   "realm": "MyRealm",
>
>   "auth-server-url": "http://localhost:8180/auth",
>
>   "ssl-required": "external",
>
>   "resource": "dkc",
>
>   "public-client": true,
>
>   "confidential-port": 0,
>
>   "enable-cors" : true
> }
>
> http://localhost:8080/hello gives "404 - Not Found" instead of showing
> keycloak login page.
>
> What am I missing?
>
> Thanks
> Naga
>
> On Tue, Nov 12, 2019 at 9:24 PM Naga Vijay <nagausb2 at gmail.com> wrote:
>
>>
>> (+) keycloak-dev
>>
>> On Tue, Nov 12, 2019 at 7:56 PM Naga Vijay <nagausb2 at gmail.com> wrote:
>>
>>>
>>> Hello,
>>>
>>> Can someone help me with this?
>>>
>>> ==============
>>> Environment -
>>> ==============
>>>
>>> 1. OS - Mac OS X
>>> 2. JBoss EAP 7.1
>>>
>>> 3. Keycloak 7.0.1
>>>
>>> ==============
>>> Issue -
>>> ==============
>>>
>>> . Getting "404 - Not Found" for a simple hello.war (with KEYCLOAK as the
>>> auth-method in its web.xml) when accessing http://localhost:8080/hello
>>>
>>> ==============
>>> Attachments -
>>> ==============
>>>
>>>    1. kc.json - export dump of keycloak database/configuration
>>>    2. hello.war - the simple war tested with
>>>
>>> Let me know if you need any other info.
>>>
>>> Thanks
>>>
>>> Naga
>>>
>>>
>>>
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-dev mailing list