navigation

The Curious Case of user Oracle WebLogic Server

The Curious Case of user Oracle WebLogic Server

by
February 3, 2015

The Case

Have you ever had the problem that you can not login in http://<host>:7001/console as weblogic  user, no matter you did it a hundred times before?

The application keeps refusing your login, no matter your user/password are correct? The following annoying exception appears:

 

User: webogic, failed to be authenticated.

 

Not too helpful, since you know that your credentials are valid.

The Study

You will find several articles like this one: http://middlewaretechnologies.blogspot.com/2013/05/err-caused-by-javalangsecurityexception.html

Basically, they suggest deleting files and restarting managed server. I`m pretty sure they will help.

But  I was convinced that there is more simple way.

I also was toо lazy at that point to do a difficult solution.

The Inspiration

Since I knew my credentials are correct I did not want to delete files, restart servers and so on. I suspected something got corrupted for weblogic user.

One of my initial thoughts was that weblogic simply got locked.

This link gave me the inspiration I needed:

 

https://community.oracle.com/thread/2524077?tstart=0

 

The Execution

Initially, I had some difficulties finding the Security screen and this is why I will add a couple of screenshots.

picture 1

 

Go to Security. Go to Unlock User.

Type ‘weblogic’ 

Picture 2 

Hit Save. The Magic happened.

Useful references

https://docs.oracle.com/cd/E17904_01/UnlockUserAccounts.html

 

Do you have other solution – share it in the comment below!

Valery Borisov

JavaEE and Oracle Developer at Dreamix

More Posts - Website

Follow Me:
LinkedIn

Do you want more great blogs like this?

Subscribe for Dreamix Blog now!

  • Anonymous

    SInce weblogic is already locked… how the user will be able to login to unlock weblogic ?

    Definitely there has to some file level changes allowing to unlock the user ..

  • Anonymous

    In one case I believe I was getting that error when trying to login in /em.
    I had /console already opened so I managed to unlock from there.

    But you should be able to do the with any other user that has sufficient rights to do that and is able to login.

    For sure it is something you should try before start deleting files and restarting servers. It saved me twice already.

    I hope that helps :)

  • Error

    Dont think that any user can unlock weblogic (Administrator Usr). You must have done something else

  • Valery Borisov

    Hi,
    It just happened again and it worked perfectly fine.
    User weblogic got locked, after several attempts with wrong password. My coworker was actually asking me why he can not login anymore.
    I logged in with my user and did the described actions.
    As a result ‘weblogic’ was usable again.

    The Day is Saved by … this blog :)