Search code examples
javaweblogic

Oracle weblogic server stop failed


When i debug my application in net beans, oracle weblogic server displays below exception in console.

Connecting to t3://localhost:7001 with userid weblogic ...
This Exception occurred at Wed Oct 16 16:56:01 IST 2013.
javax.naming.AuthenticationException
Problem invoking WLST - Traceback (innermost last):
File "D:\Weblogic\Middleware_1\base_domain\shutdown.py", line 3, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect :
User: weblogic, failed to be authenticated. 
Use dumpStack() to view the full stacktrace

my application uses oracle weblogic server and results will published into orale Bi publisher

My shutdown.py:

wlsUserID = java.lang.System.getenv('wlsUserID') wlsPassword = java.lang.System.getenv('wlsPassword') connect(username=wlsUserID, password=wlsPassword, url='t3://localhost:7001', adminServerName='AdminServer') shutdown('AdminServer','Server', ignoreSessions='true') exit()

Solution

  • I think your WebLogic AdminServer is locked when you try shutdown. Can you delete .lok files in your AdminServer directory or check Lock & Edit function in WebLogic console?

    EDIT: If not able to delete .lok files and you want to stop WebLogic you can use the nmkill command. I don't know what type of OS you use. I always use kill -9command in Unix to stop WebLogic. To start WebLogic server you first need to start NodeManager and after the AdminServer. Here is nmStart command.