我正在修改I-Jetty(控制檯)提供的WebApp,並希望從I-Jetty部署它。 的Web應用程序用於工作,但現在從我的瀏覽器訪問時,我得到:503從I-Jetty部署WebApp時出錯
HTTP ERROR: 503
Problem accessing /console. Reason:
Service Unavailable
Powered by Jetty://
注:我沒有得到任何構建錯誤和Web應用程序安裝罰款I-碼頭。 我使用jdk1.6.0_45並Maven3.0.5安裝
我的pom.xml的是:
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mortbay.ijetty</groupId>
<artifactId>console-parent</artifactId>
<packaging>pom</packaging>
<version>3.2-SNAPSHOT</version>
<name>I-Jetty :: Console Parent</name>
<description>Parent project for console</description>
<modules>
<module>webapp</module>
<module>apk</module>
</modules>
<properties>
<android.version>4.1.1.4</android.version>
<jetty.version>8.1.11.v20130520</jetty.version>
<servlet.version>3.0.20100224</servlet.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</build>
</project>
能否請你幫我明白爲什麼發生這種情況,建議修復?
編輯:我想出了問題。仍然沒有解決方案。
classes.zip文件在安裝到I-Jetty上的webapp時未被創建。 當我手動將類複製到安裝Web應用程序時創建的jetty/webapps/console/web-inf/classes文件夾中,從瀏覽器訪問工程...我不確定爲什麼不創建zip文件。
出於某種原因,它現在正在工作,而不是獲取HTTP503error,我的Webapp正在按預期加載。我希望我能理解真正的問題是什麼......現在,如果有人遇到了這個問題,請嘗試在你的主POM中更改你的** jetty **目標版本,因爲它是我在測試之間改變的唯一的東西。 – Artail3