我正在尝试在Java嵌入式/ Jython 1.6和Weblogic 10.3.5中使用WLST命令。一个Java应用程序连接到weblogic服务器。
try {
WLST.ensureInterpreter();
WLSTInterpreter interpreter = WLST.getWLSTInterpreter();
interpreter.exec(connect('weblogic','weblogic_passw','t3://localhost:7001')
...........
}
程序运行正常,但日志有问题。
用户通过运行jar程序(java -jar application.jar)的shell脚本从自己的家中运行该程序,它不是oracle,是在weblogic / oracle环境路径中没有写权限的特定用户。
当我运行程序并通过Java执行wlst connect时,会出现警告日志
WARNING - Unable to create log file </home/oracle/product/modules/../logs/wlst_20180622081245.log>: java.io.IOException: Permission denied
我可以看到可以像下面的链接那样修改wlst.sh:
[https://community.oracle.com/thread/1107844][1]
但是可能不是一个好主意,因为我不是管理员,我只想要自己的日志。
是否可以重定向并写入我自己的家庭/用户/日志或提供替代方法?
谢谢。