环境说明:weblogic域部署程序包,一个控制端,两个节点,通过nginx搭建负载均衡,其中一个节点访问经常出现二验证码不能正常显示。
解决方法:引起原因是weblogic启动文件的问题,通过修改startWebLogic.sh的参数来解决。
1、在weblogic目录打开startWebLogic.sh,添加启动参数-Djava.awt.headless=true,然后重启重启控制台。
2、重启的时候可能遇到报错:
nohup: failed to run command ‘./startWebLogic.sh’: Permission denied
这是因为文件权限问题,通过命令chmod +x ./startWebLogic.sh赋予权限后,再次启动控制台,成功。
3、然后继续观察页面是否重现验证码显示即可。