You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Ravi <ra...@motivitylabs.com> on 2019/06/17 12:52:49 UTC

Post upgrade from karaf 4.2.2 to 4.2.6, webconsole is not logging

Hi Team

We updated our application from karaf 4.2.2 to 4.2.6. As per release notes
we even upgraded our dependencies too. But after that when we tried to login
to webconsole facing below login issue.
we even not able to login to one of our portals too where windows login
authentication happens.

Can you please give us some idea what might causes this issue.

org.apache.karaf.webconsole.console | 4.2.6 | ERROR | ID=170
THR=qtp4518903-170 CAT=JaasSecurityProvider MSG=General Security Exception
javax.security.auth.login.LoginException: Login Failure: all modules ignored
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:906)
~[?:?]
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
~[?:?]
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
~[?:?]
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
~[?:?]
at javax.security.auth.login.LoginContext.login(LoginContext.java:588)
~[?:?]
at
org.apache.felix.webconsole.internal.servlet.JaasSecurityProvider.doAuthenticate(JaasSecurityProvider.java:119)
~[170:org.apache.karaf.webconsole.console:4.2.6]
at
org.apache.felix.webconsole.internal.servlet.JaasSecurityProvider.authenticate(JaasSecurityProvider.java:201)
~[170:org.apache.karaf.webconsole.console:4.2.6]
at
org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext.handleSecurity(OsgiManagerHttpContext.java:103)
~[170:org.apache.karaf.webconsole.console:4.2.6]
at
org.ops4j.pax.web.service.internal.WebContainerContextWrapper.handleSecurity(WebContainerContextWrapper.java:46)
~[?:?]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
~[273:org.ops4j.pax.web.pax-web-jetty:7.2.10]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
~[228:org.eclipse.jetty.server:9.4.18.v20190429]
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
~[224:org.eclipse.jetty.security:9.4.18.v20190429]

Reagrds,
Ravi



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Post upgrade from karaf 4.2.2 to 4.2.6, webconsole is not logging

Posted by Sai Sankar <sa...@motivitylabs.com>.
In AbstractKarafLoginModule, new flags for introduced for login and commit
methods.
After login it is expected to set succeeded flag to true to proceed for
commit.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Post upgrade from karaf 4.2.2 to 4.2.6, webconsole is not logging

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
If you don't use watchdog, there's no reason JNA cause any issue.

So, I don't think it's a problem.

Regards
JB

On 18/06/2019 14:47, Ravi wrote:
> Hi JB
> 
> Thanks for the update. 
> 
> Is it necessary to update the JNA to 5.3.1 ? Currently we are using 4.5.0
> when updating to 5.3.1 some compilation errors are happening(seems some
> constructors undergone change)
> Is there any chance the older version of JNA causing login issues?
> 
> -Ravi
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Post upgrade from karaf 4.2.2 to 4.2.6, webconsole is not logging

Posted by Ravi <ra...@motivitylabs.com>.
Hi JB

Thanks for the update. 

Is it necessary to update the JNA to 5.3.1 ? Currently we are using 4.5.0
when updating to 5.3.1 some compilation errors are happening(seems some
constructors undergone change)
Is there any chance the older version of JNA causing login issues?

-Ravi



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Post upgrade from karaf 4.2.2 to 4.2.6, webconsole is not logging

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

I just tried on a fresh Karaf 4.2.6, where I just did: feature:install
webconsole.

It works fine.

It seems you have some specific login modules on the Karaf realm right ?

Can you provide some details ?
Did you try to purge the cookies on the browser ?

Regards
JB

On 17/06/2019 14:52, Ravi wrote:
> Hi Team
> 
> We updated our application from karaf 4.2.2 to 4.2.6. As per release notes
> we even upgraded our dependencies too. But after that when we tried to login
> to webconsole facing below login issue.
> we even not able to login to one of our portals too where windows login
> authentication happens.
> 
> Can you please give us some idea what might causes this issue.
> 
> org.apache.karaf.webconsole.console | 4.2.6 | ERROR | ID=170
> THR=qtp4518903-170 CAT=JaasSecurityProvider MSG=General Security Exception
> javax.security.auth.login.LoginException: Login Failure: all modules ignored
> at javax.security.auth.login.LoginContext.invoke(LoginContext.java:906)
> ~[?:?]
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
> ~[?:?]
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
> ~[?:?]
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
> ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> ~[?:?]
> at javax.security.auth.login.LoginContext.login(LoginContext.java:588)
> ~[?:?]
> at
> org.apache.felix.webconsole.internal.servlet.JaasSecurityProvider.doAuthenticate(JaasSecurityProvider.java:119)
> ~[170:org.apache.karaf.webconsole.console:4.2.6]
> at
> org.apache.felix.webconsole.internal.servlet.JaasSecurityProvider.authenticate(JaasSecurityProvider.java:201)
> ~[170:org.apache.karaf.webconsole.console:4.2.6]
> at
> org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext.handleSecurity(OsgiManagerHttpContext.java:103)
> ~[170:org.apache.karaf.webconsole.console:4.2.6]
> at
> org.ops4j.pax.web.service.internal.WebContainerContextWrapper.handleSecurity(WebContainerContextWrapper.java:46)
> ~[?:?]
> at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
> ~[273:org.ops4j.pax.web.pax-web-jetty:7.2.10]
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
> ~[228:org.eclipse.jetty.server:9.4.18.v20190429]
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> ~[224:org.eclipse.jetty.security:9.4.18.v20190429]
> 
> Reagrds,
> Ravi
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com