Java Oracle weblogic 服务器停止失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19402797/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Oracle weblogic server stop failed
提问by Obulesu Bukkana
When i debug my application in net beans, oracle weblogic server displays below exception in console.
当我在 net bean 中调试我的应用程序时,oracle weblogic 服务器在控制台中显示以下异常。
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
我的应用程序使用oracle weblogic server
和结果将发布到orale Bi publisher
My shutdown.py:
我的关机.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()
采纳答案by herry
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?
我认为您WebLogic
AdminServer
在尝试关机时已被锁定。您可以删除.lok
目录中的AdminServer
文件或检查Lock & Edit
WebLogic 控制台中的功能吗?
EDIT: If not able to delete .lok
files and you want to stop WebLogic
you can use the nmkillcommand. I don't know what type of OS you use. I always use kill -9
command in Unix to stop WebLogic. To start WebLogic
server you first need to start NodeManager
and after the AdminServer
. Here is nmStartcommand.
编辑:如果无法删除.lok
文件并且您想停止,WebLogic
您可以使用nmkill命令。我不知道你使用什么类型的操作系统。我总是kill -9
在 Unix 中使用命令来停止 WebLogic。要启动WebLogic
服务器,您首先需要启动NodeManager
并在AdminServer
. 这是nmStart命令。
回答by Guru
Normally you will have to define your userid and password in boot.properties file in security folder of your Admin/Managed Server. In your case the location will be "D:\Weblogic\Middleware_1\base_domain\servers\AdminServer\security". If the file boot.properties is not existent create one in that location and mention the following in plain text:
通常,您必须在 Admin/Managed Server 的 security 文件夹中的 boot.properties 文件中定义您的用户 ID 和密码。在您的情况下,位置将是“D:\Weblogic\Middleware_1\base_domain\servers\AdminServer\security”。如果文件 boot.properties 不存在,请在该位置创建一个并以纯文本形式提及以下内容:
username=weblogic
用户名=网络逻辑
password=password123
密码=密码123
If the server startup is successful it will be encrypted automatically.
如果服务器启动成功,它会自动加密。
回答by Venu Madhav
We too faced the same issue earlier. Just i reloaded the .bash_profile or .bash_rc files where i have placed the JAVA
, ORACLE_HOME
paths. After re-loading the files, the issues is resolved and I am able to shutdown the weblogic server.
我们之前也遇到过同样的问题。只是我重新加载了放置JAVA
,ORACLE_HOME
路径的 .bash_profile 或 .bash_rc 文件。重新加载文件后,问题解决了,我可以关闭 weblogic 服务器。