Python 脚本中的 BEA 错误 WLContext.close()
我是 Weblogic 的新手。
最近,我创建了第一个脚本来部署 WL 应用程序。脚本非常简单。问题是脚本抛出了一个我不知道如何解决的异常。
该脚本如下所示:
wlHost=sys.argv[1]
wlPort=sys.argv[2]
username=sys.argv[3]
password=sys.argv[4]
connect(username, password, "t3://" + wlHost + ":" + wlPort)
edit()
startEdit()
progress= deploy('MyApp','/path/to/server/classes')
progress.printStatus()
save()
activate()
exit()
例外:
<Dec 11, 2011 10:41:35 AM EST> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
我将不胜感激任何帮助。
I'm new to Weblogic.
Recently I've created my first script to deploy a WL application. The script is very simple. The problem is that the script throws an exception I don't know to solve.
The script looks like:
wlHost=sys.argv[1]
wlPort=sys.argv[2]
username=sys.argv[3]
password=sys.argv[4]
connect(username, password, "t3://" + wlHost + ":" + wlPort)
edit()
startEdit()
progress= deploy('MyApp','/path/to/server/classes')
progress.printStatus()
save()
activate()
exit()
Exception:
<Dec 11, 2011 10:41:35 AM EST> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
I would appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相当确定您的问题是
exit()
您在退出之前没有运行disconnect
方法,因此系统将终止所有线程。因为您仍然有一个活动线程和一个打开的活动连接,所以会引发异常。I'm fairly sure your problem is
exit()
You don't run adisconnect
method prior to exiting so the system is terminating all threads. Because you still have an active thread with an active connection open it's raising the exception.