android - 503 Error when deploying WebApp from I-Jetty -
i modifying webapp provided i-jetty (console) , wish deploy i-jetty. webapp used work when accessed browser, receive:
http error: 503 problem accessing /console. reason: service unavailable powered jetty://
note: no build errors , webapp installed fine i-jetty. using jdk1.6.0_45 , have maven3.0.5 installed
my pom.xml is:
<?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 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>
can please me understand why happening , suggest fix?
edit: figured out problem. still don't have solution.
the classes.zip file not being created during webapp installation onto i-jetty. when copy classes manually jetty/webapps/console/web-inf/classes folder created when installing webapp, access browser works... i'm not sure why zip file not being created though.
i ended answering own question in question: how compile .war file i-jetty (android web server)? , , posting here else has run same error:
so official i-jetty website says, need include 3 things in pom.xml listen in site https://code.google.com/p/i-jetty/wiki/downloadablewebapps. problem face including 3 on newer android releases (the android-maven-plugin), face issues part. need add following enable correct execution (add after closing plugins element, , before closing build element ( <./plugin> add here <./build> , without dots):
<pluginmanagement> <plugins> <plugin> <groupid>org.eclipse.m2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1.0.0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <pluginexecution> <pluginexecutionfilter> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <versionrange>[2.0,)</versionrange> <goals> <goal>copy-dependencies</goal> </goals> </pluginexecutionfilter> <action> <execute /> </action> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement>
now when run maven build, generate your_webapp.war file need in your_application/target/res-overlay/raw folder. copy your_webapp.war file your_application/res/raw folder. run maven build again. there have it!! webapp can built correctly :) , no longer error 503 message.
Comments
Post a Comment