466164 (11) [Avatar] Offline
#1
I am getting Forbidden when i access http://localhost:8080/
What could be the issue?
Ken Finnigan (7) [Avatar] Offline
#2
Are there any errors or messages in the server log?
466164 (11) [Avatar] Offline
#3
No there are no any errors in server log/eclipse consol. It is saying context root is "/" server is up on 8080 (127.0.0.1)
Ken Finnigan (7) [Avatar] Offline
#4
What operating system are you on?
466164 (11) [Avatar] Offline
#5
ubuntu 16.04
466164 (11) [Avatar] Offline
#6
Jax rs service is working as expected
466164 (11) [Avatar] Offline
#7
Same issue in Windows as well. I have enable debug logs. which gives following output,

2017-08-22 15:56:30,669 DEBUG [io.undertow.request] (default I/O-2) Matched default handler path /
2017-08-22 15:56:30,709 DEBUG [io.undertow.request.security] (default task-1) Attempting to authenticate HttpServerExchange{ GET / request {Connection=[keep-alive], Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8], Accept-Language=[en-US,en;q=0.8], Accept-Encoding=[gzip, deflate, br], Cookie=[__utma=111872281.2074891166.1470894943.1470894943.1476249119.4], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {}}, authentication required: false
2017-08-22 15:56:30,711 DEBUG [io.undertow.request.security] (default task-1) Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@5ecf2a1 for HttpServerExchange{ GET / request {Connection=[keep-alive], Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8], Accept-Language=[en-US,en;q=0.8], Accept-Encoding=[gzip, deflate, br], Cookie=[__utma=111872281.2074891166.1470894943.1470894943.1476249119.4], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {}}
2017-08-22 15:56:30,711 DEBUG [io.undertow.request.security] (default task-1) Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@4fe3fd22 for HttpServerExchange{ GET / request {Connection=[keep-alive], Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8], Accept-Language=[en-US,en;q=0.8], Accept-Encoding=[gzip, deflate, br], Cookie=[__utma=111872281.2074891166.1470894943.1470894943.1476249119.4], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {}}
2017-08-22 15:56:30,711 DEBUG [io.undertow.request.security] (default task-1) Authentication result was ATTEMPTED for HttpServerExchange{ GET / request {Connection=[keep-alive], Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8], Accept-Language=[en-US,en;q=0.8], Accept-Encoding=[gzip, deflate, br], Cookie=[__utma=111872281.2074891166.1470894943.1470894943.1476249119.4], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {}}
2017-08-22 15:56:30,711 DEBUG [io.undertow.request] (default task-1) Matched default handler path /
Ken Finnigan (7) [Avatar] Offline
#8
Which particular service are you getting this with? Forgot to ask earlier.

Nevermind, saw its in the topic
Ken Finnigan (7) [Avatar] Offline
#9
Unfortunately it's a bug in the way WF Swarm messes with dependencies in the WAR.

For now, the solution is to use:

java -jar target/chapter2-ui-swarm.jar


instead of:

mvn wildfly-swarm:run


Sorry for the inconvenience

Ken
freddog (2) [Avatar] Offline
#10
Thanks Ken, that worked for me!