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)