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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 16:52:22  来源:igfitidea点击:

Oracle weblogic server stop failed

javaweblogic

提问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 serverand 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 WebLogicAdminServeris locked when you try shutdown. Can you delete .lokfiles in your AdminServerdirectory or check Lock & Editfunction in WebLogic console?

我认为您WebLogicAdminServer在尝试关机时已被锁定。您可以删除.lok目录中的AdminServer文件或检查Lock & EditWebLogic 控制台中的功能吗?

EDIT: If not able to delete .lokfiles and you want to stop WebLogicyou can use the nmkillcommand. I don't know what type of OS you use. I always use kill -9command in Unix to stop WebLogic. To start WebLogicserver you first need to start NodeManagerand 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_HOMEpaths. 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 服务器。