Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Weblogic Jython脚本错误_Weblogic_Jython - Fatal编程技术网

Weblogic Jython脚本错误

Weblogic Jython脚本错误,weblogic,jython,Weblogic,Jython,我试图在节点下的weblogic服务器的config.xml中添加以下内容 <ssl> <enabled>true</enabled> </ssl> 但我得到了一个例外- com.bea.plateng.domain.script. jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.

我试图在
节点下的weblogic服务器的config.xml中添加以下内容

<ssl>

  <enabled>true</enabled>

</ssl>
但我得到了一个例外-

com.bea.plateng.domain.script.
jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: No nested element SSL is found

有什么想法吗?

您没有指定您使用的是哪个版本的WebLogic Server,但我使用的是10.x。您能否通过从命令提示符启动wlst并手动检查对象来检查MBean层次结构是否正常:

connect('weblogic','weblogic-passsword','t3://your-hostname:your-port')
edit()
cd('/Servers/ocsServer')
ls()

您是否在列表中看到“SSL”MBean层次结构节点?

实际上有必要创建一个新的SSL MBean作为服务器MBean的子节点,与日志配置相同:

cd('/Servers/ocsServer')
ssl = create('ocsServer','SSL')
ssl.setEnabled(1)

小写
ssl
有什么区别吗?当我使用小写ssl时,我得到这个com.bea.plateng.domain.script.jython.WLSTException:com.bea.plateng.domain.script.jython.WLSTException:java.la ng.unsupportedoperationxception:无法创建通用操作:ssl
cd('/Servers/ocsServer')
ssl = create('ocsServer','SSL')
ssl.setEnabled(1)