我想补充下<server>
节点在WebLogic Server中的config.xml中的下列Jython脚本错误
<ssl>
<enabled>true</enabled>
</ssl>
我可以做到这一点使用管理控制台,但我不得不使用Jython脚本,以便它可以在安装应用程序时完成。
我遵循的步骤在这里解释 -
http://blogs.oracle.com/jamesbayer/2010/04/record_and_play_your_weblogic.html
生成下面的脚本 -
cd('/Servers/ocsServer')
cmo.setListenPortEnabled(true)
cmo.setJavaCompiler('javac')
cmo.setClientCertProxyEnabled(false)
cd('/Servers/ocsServer/SSL/ocsServer')
cmo.setEnabled(true)
activate()
startEdit()
但我得到这个例外 -
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
任何想法?
确实小写'ssl'作任何差异? – JoseK 2011-04-05 11:11:18
当我用小写的SSL我得到这个 com.bea.plateng.domain.script.j ython.WLSTException:com.bea.plateng.domain.script.jython.WLSTException:java.la NG。 UnsupportedOperationException:无法创建通用操作:ssl – nasaa 2011-04-05 13:20:48