我试图在Java embebed / 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环境路径中没有写权限的特定用户 .
当我运行程序并执行wlst connect时,会出现一个警告日志
WARNING - Unable to create log file : java.io.IOException: Permission denied
我可以看到可以像这个链接一样修改wlst.sh:
[https://community.oracle.com/thread/1107844][1]
但也许不是一个好主意,因为我不是管理员,我只想要自己的日志 .
是可以重定向和写入我自己的家/用户/日志或提供替代?
提前致谢 .