Confluence验证码问题

windows 下安装Confluence,是无法显示验证码的,你会发现图片看不见,如果直接请求这个验证码的链接会出现下面的错误

com.octo.captcha.CaptchaException: word is too tall: try to use less letters, smaller font or bigger background: text bounds = {text=tasble

java.awt.geom.Rectangle2D$Float[x=0.0,y=-33.177246,w=10.989258,h=45.32666] ascent=33.177246 descent=7.2509766 leading=4.8984375

java.awt.geom.Rectangle2D$Float[x=30.989258,y=-30.161133,w=18.00293,h=43.623047] ascent=30.161133 descent=9.008789 leading=4.453125

java.awt.geom.Rectangle2D$Float[x=68.99219,y=-30.161133,w=15.0,h=41.206055] ascent=30.161133 descent=6.591797 leading=4.453125

java.awt.geom.Rectangle2D$Float[x=103.99219,y=-33.177246,w=19.803223,h=47.98535] ascent=33.177246 descent=9.909668 leading=4.8984375

java.awt.geom.Rectangle2D$Float[x=143.79541,y=-30.161133,w=18.00293,h=43.623047] ascent=30.161133 descent=9.008789 leading=4.453125

.....

Confluence在3次登入失败后,会显示验证码,如果这时候没法显示验证码,那么你这辈子就别想登入了

在window下安装Confluence会默认系统文件编码格式设置为GBK,这也是出错的原因.

解决方案

命令行下cd到Apache的目录下.....\Atlassian\Confluence\bin

输入命令tomcat8w //ES//Confluence220416163109 

最后那个Confluence220416163109  是Confluence服务名称,不同电脑上显示的是不同的名称

你可以在任务管理器的服务中看到

,添加-Dfile.encoding=UTF-8参数

重启Confluence,你可以在任务管理器中重启

猜你喜欢

转载自sunxboy.iteye.com/blog/2363239
今日推荐