Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unwanted login dialog when running application from a JNLP.

875003Jul 12 2011 — edited Jul 12 2011
HI,

I'm building an application using the OpenCmis library to communicate with Cmis repositories. The librairy itself call REST services using the HttpUrlConnection object. So I don't have any access to the connection object. The authentication is made directly by the transport protocol: So the server returns a "http error 401 Unauthorize" when the provided credentials are wrong, the library catch the exception, raised a CmisSomethingException, the application manages it and everything works fine.

Everything works fine... until I tried to test the application outside my dev environment. The application is started from a JNLP and when I use it from there... some internal Java handling seems to outrun the library handling, catch the 401 error and pop a Java login dialog asking for credentials.

It works well if the user provides valid username and password. The login dialog is re-showned if the credentials are wrong. And finally, the 401 error is finally catched by the librairy (and passed to the application) if the login dialog is cancelled by the user.

The Look, the functionnalites and the feedback provided by this dialog to the user are not what we want.

Does anybody now how to "bypass/get rid of" this dialog when using the app from Java web start???

Thanks

Jeff
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2011
Added on Jul 12 2011
1 comment
330 views