问题描述
我正在VirtualBox内的Windows Server 2012 R2,Java版本1.8.0_60下使用apache Archiva v.2.0.在Windows自动更新之前,它曾经工作了很长时间.
I am using apache Archiva v. 2.2.0 under Windows Server 2012 R2, Java version 1.8.0_60 inside VirtualBox. It used to work for quite a long time before Windows autoupdate.
在Windows自动更新后,我在转到存档URL时收到一条错误消息:HTTP错误:503.访问/时出现问题.原因:服务不可用,由Jetty://提供支持.
After Windows autoupdate I am getting an error message when going to archiva url: HTTP ERROR: 503 . Problem accessing /. Reason: Service Unavailable, Powered by Jetty://.
Apache Archiva服务正在运行.没有错误日志生成.重新启动甚至重新安装该服务都没有影响.
The Apache Archiva service is running. No error logs are generated. Restarting or even reinstalling of the service has no impact.
回滚Windows更新后,我恢复了Archiva的正常运行,但神秘地,只有一次,即停止和重新启动Archiva会导致相同的HTTP错误503.
After rolling back of Windows update I restore the normal operation of Archiva, but mysteriously, just once, i.e. stopping and restarting of Archiva will cause the same HTTP ERROR 503.
日志文件未指示任何问题或错误原因.
The log file do not indicate any problem or error cuase.
谢谢您的提示.
推荐答案
就我而言,我发现ARCHIVA_BASE \ conf中的码头配置文件jetty.xml损坏了.
In my case I've found out that the jetty configuration file jetty.xml in ARCHIVA_BASE\conf got corrupted.
解决方案:
- 停止存档服务
- 用新的或最后一次已知的工作替换jetty.xml备份.可以从 archiva网站上下载jetty.xml的新副本.网站作为apache-archiva-2.2.0-bin.zip.文件中的文件位置压缩文件是apache-archiva-2.2.1 \ conf \ jetty.xml
- 开始存档服务
- Stop archiva service
- Replace jetty.xml with either a fresh one or from last known workingbackup. A fresh copy of jetty.xml can be downloaded from archiva website as an apache-archiva-2.2.0-bin.zip. File location within thezip file is apache-archiva-2.2.1\conf\jetty.xml
- Start archiva service
这篇关于Apache Archiva返回http错误503的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!