【发布时间】:2017-01-02 16:58:17
【问题描述】:
我能够在我的电脑的本地主机上成功运行 openfire 程序。
但是如果我在eclipse上运行openfire的源代码
我收到错误 “HTTP 错误:503 访问 /index.jsp 时出现问题。原因: 服务不可用”
在控制台eclipse中运行源代码后的输出是: “Openfire 3.9.3 [2016 年 8 月 26 日上午 8:42:49] 管理控制台在 http://my-localhost:9090"
监听我在这里想念什么? 感谢您的帮助。
我发现我的 build.xml 文件有问题
之后,运行 AS > Ant Build
新的错误是:" 构建失败 C:\Android\Root_workspace\V7\openfire\build\build.xml:511:执行此行时出现以下错误: C:\Android\Root_workspace\V7\openfire\build\build.xml:519: C:\Android\Root_workspace\V7\openfire\src\web 不存在。”
网络路径有问题。
我的Build.xml部分代码是:
<!-- jspc ================================================================================== -->
<target name="jspc" depends="compile" description="Compiles all JSP pages in the admin console">
<mkdir dir="${jspc.dest.dir}"/>
<mkdir dir="${jspc.java.dest.dir}"/>
<mkdir dir="${jspc.classes.dest.dir}"/>
<mkdir dir="${webapp.dest.dir}"/>
<antcall target="-jspc-impl"/>
</target>
<target name="-jspc-impl" unless="no.jspc">
<!-- we're forced to create a temp dir to properly overwrite sources from overlay directory -->
<mkdir dir="${jspc.jsp.src.dir}"/>
<copy todir="${jspc.jsp.src.dir}">
<fileset dir="${web.dir}"/>
</copy>
<!-- copy overlay -->
【问题讨论】: