IE login popup

535 views
Skip to first unread message

Ajit

unread,
Nov 6, 2013, 12:58:04 AM11/6/13
to waffle...@googlegroups.com
I have waffle to get windows user id in my web app (running on tomcat). The solution works on dev machine (VM with local user). However when I deployed it to Test and have domain users. It prompts for user login.

I have IE 10 and site in local intranet zone and enabled windows authentication (As per document).

Any help pointers ?


Daniel Doubrovkine

unread,
Nov 6, 2013, 9:39:35 AM11/6/13
to waffle...@googlegroups.com
You should go through normal troubleshooting steps (https://github.com/dblock/waffle/blob/master/Docs/Troubleshooting.md), this is often an SPN problem.


--
You received this message because you are subscribed to the Google Groups "waffle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to waffle-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

dB. | Moscow - Geneva - Seattle - New York
code.dblock.org - @dblockdotorg - artsy.net - github/dblock

Ajit Dangal

unread,
Nov 12, 2013, 12:12:32 AM11/12/13
to waffle...@googlegroups.com
Hi Daniel,
 
we tried setting up SPN after that we received below errors:
 
1)  I tried separating jar tomcat/lib and tomcat/mywebapp/lib as per one thread in Google groups(but still no luck)
2)  If we restart tomcat it gives pop up and does not authenticate (this time no errors )
3)  If we restart our web app (which has waffle) first time it gives jnidispatch.dll error
4) if we try another browser (second instance) it starts giving
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.platform.win32.Sspi$CredHandle
 
5) I also tried replacing JNA 3.5 with JNA 4.0 without luck.
 
(steps 3 is required as we have multiple web apps hosted and we start/stop/deploy runtime)
 
Please let me know if I am missing anything. appreciate your help in advance.
 
Thanks,
Ajit
 
 
 

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception

root cause

java.lang.UnsatisfiedLinkError: Native Library C:\local\Server\work\Catalina\localhost\EloAuth\loader\com\sun\jna\win32-x86\jnidispatch.dll already loaded in another classloader

        java.lang.ClassLoader.loadLibrary0(Unknown Source)

        java.lang.ClassLoader.loadLibrary(Unknown Source)

        java.lang.Runtime.load0(Unknown Source)

        java.lang.System.load(Unknown Source)

        com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761)

        com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)

        com.sun.jna.Native.<clinit>(Native.java:131)

        com.sun.jna.Pointer.<clinit>(Pointer.java:42)

        com.sun.jna.Structure.<clinit>(Structure.java:1933)

        waffle.windows.auth.impl.WindowsCredentialsHandleImpl.initialize(Unknown Source)

        waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken(Unknown Source)

        waffle.servlet.spi.NegotiateSecurityFilterProvider.doFilter(Unknown Source)

        waffle.servlet.spi.SecurityFilterProviderCollection.doFilter(Unknown Source)

        waffle.servlet.NegotiateSecurityFilter.doFilter(Unknown Source)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.

 

 

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception

root cause

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.platform.win32.Sspi$CredHandle

        waffle.windows.auth.impl.WindowsCredentialsHandleImpl.initialize(Unknown Source)

        waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken(Unknown Source)

        waffle.servlet.spi.NegotiateSecurityFilterProvider.doFilter(Unknown Source)

        waffle.servlet.spi.SecurityFilterProviderCollection.doFilter(Unknown Source)

        waffle.servlet.NegotiateSecurityFilter.doFilter(Unknown Source)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.



--
You received this message because you are subscribed to a topic in the Google Groups "waffle" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/waffle-users/o6OzbwVtNf4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to waffle-users...@googlegroups.com.

Daniel Doubrovkine

unread,
Nov 12, 2013, 8:17:05 AM11/12/13
to waffle...@googlegroups.com
There's a lot of stuff going on here. You've set the SPN and then you got the jnidispatch errors? Make sure you have the right version of JNA that ships with waffle, not some other version, and make sure it's only one. I would first make one of the Waffle demos work in this environment, then try in your application. 

Chandima Jayawickrema

unread,
Apr 3, 2015, 12:25:12 AM4/3/15
to waffle...@googlegroups.com
I had this same issue but got it resolved by upgrading to JDK 8u40. 

Cheers,
Chandima
Reply all
Reply to author
Forward
0 new messages