My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
GettingStarted  
Getting started instructions
Featured
Updated Aug 18, 2011 by jan.bar...@gmail.com

Getting Started

After installing the i-jetty apk onto the phone, select the i-jetty application icon and click on it to activate:

Stopping and Starting

Start Jetty

Clicking the Start button will start an i-jetty service. i-jetty will be available on the phone at the port that you selected with the Configure button. The default port is 8080.

Stop Jetty Button

The Stop Jetty button kills the i-jetty service. You will need to stop and then restart i-jetty for newly downloaded webapps to be deployed.

i-jetty will continue to run as a Service in the background once it is started. If you move away from the i-jetty application, you can always quickly return to it by selecting the i-jetty item in the status bar:

Configuration

When i-jetty is stopped, click the Configure button:

Currently supported settings are:

Http Connector

  • Edit Port [8080]
  • The port on which i-jetty will listen for requests.
  • Use NIO [true|false]
  • The default is true (since i-jetty-3.0). Select falseif you want i-jetty to use a blocking-style connector.

Https Connector

  • Use SSL [false|true]
  • The default is false.Select true if you want i-jetty to ALSO start an SSL connector.
  • Use NIO [true|false]
  • The default is true (since i-jetty-3.0). Select false if you want i-jetty to use a blocking-style connector.
  • Edit Port [8443]
  • The port on which the SSL connector will listen for requests.
  • Edit Password
  • Enter a password ONLY if you are providing your own keystore. This is the password that is passed to the KeyStoreManagerFactory.init() method for the SslSocketConnector.
  • Edit KeystoreManager Password
  • Enter a password ONLY if you are providing your own keystore. This is the password that is passed to KeyStore.load() method for
    the SslSocketConnector
  • Edit Keystore Filename [/sdcard/etc/keystore]
  • If you have a different keystore file, specify it here.
  • Edit Truststore Filename [/sdcard/etc/keystore]
  • If you are not using the i-jetty default, then specify the location of your truststore here.
  • Edit Truststore Password
  • Enter a password ONLY if you are providing your own keystore.

NOTE that the SSL connector will by default use the same certificate as stand-alone Jetty. Your browser will warn you that the domain of the certificate does not match that of the server - this is expected. Configure your browser to accept the certificate, or alternatively use the configuration options to provide your own keystore.

Its worth noting that Android uses the BCK (BouncyCastle) format for the keystore, so you may need to convert your existing keystore first.

Dynamic WebApp Download

The Download button allows you to dynamically download webapps that have been prepared for Android:

Enter the http url of an android-enabled webapp. You can try this out using the "Hello World" webapp we supply at https://i-jetty.googlecode.com/p/i-jetty/downloads if you like.

Also enter the context path at which you want the web application to be deployed. For example, for the "Hello World" webapp, you may want to deploy this at /hello. Ensure that your context path starts with /.

The webapp will be downloaded and installed to i-jetty. If i-jetty is already running, you will need to stop and restart in order to have the new webapp deployed.

Comment by syedfarrukhqamar, Oct 31, 2009

I have bought htc hero today,installed ijetty the server is running but i am unable to assess it via local host or 127.0.0.1 or from outside.plz suggest me what to do

Comment by syedfarrukhqamar, Nov 20, 2009

i have installed the new update of ijetty, and still unable to access my server from my pc using google chrome or any browser in a normal way.while it worked when i followed your instructions two week back.after that it didnt work at all :( please suggest me some thing.

Comment by prac...@gmail.com, Dec 6, 2009

I used port 8080 and everthing goes fine

Comment by tnain...@gmail.com, Dec 17, 2009

I am trying to develop a webapp similar to hello world, my webapp works fine on Tomcat, now I want this app to be running on i-jetty server. I am not sure how to add pom.xml and other classes for that. Is there any tutorial for creating a web app for i-jetty.

Thanks

Comment by osobera...@gmail.com, Feb 9, 2010

I got the i-jetty to work on my Android phone. Now how I deploy my own war file? Do you have any tutorials?

Comment by Igmu.Hammerer, Feb 21, 2010

I installed I-Jetty on my Nexus One Started ok config i-jetty to custom passwords ok opened web browser on phone to http://localhost:8080/console ok use app to download hello.war restarted i-jetty, opened web browser on phone to http://192.168.0.102:8080/ ran hello.war ok

problem: I cannot see 192.168.0.102:8080 from laptop on same wifi network. Would appreciate some help or links for newbs. Thank you, Igmu.Hammerer@gmail.com

Comment by markwill...@gmail.com, Feb 25, 2010

I have installed i-jetty 2.0 on an Android emualtor framework 1.1. It starts up fine, and i can go to http://localhost:8080 but it says no contexts exist on the server, i cant find the console app either. Also the download feature does not seem to work. Also is it possible to run i-jetty on an emulator and browse to it through the emulator browser and also the computer browser?

Comment by arvindma...@gmail.com, Jul 8, 2010

I installed i-jetty-2.1-signed.apk file on HTC device. Tried accessing http://localhost:8080 and http://localhost:8080/console on phone browser but none of them are accessible. No error nothing. Am I doing something wrong?

Comment by fnjn...@gmail.com, Nov 4, 2010

a.I installed i-jetty-2.1-signed apk file on an Android emulator,it starts up very well.I can access http://localhost:8080/console on phone browser,but i cannot go to http://[phone`s IP address]:8080/console via desktop browser.what is wrong? b. I have tried access http://127.0.0.1:8080/console and http://10.0.2.15:8080/console on phone browser , to my surprise,both of them are accessible.which of them is the localhost?

Comment by smith...@gmail.com, Dec 22, 2010

I am able to browse the phone contents using the wlan0 address listed on the i-jetty screen like this: http://192.168.1.10:8080/console. This appears to be very buggy though. I am unable to view contacts due to errors accessing the database.

Problem accessing /console/contacts/json/25. Reason: <pre> no such column: people._id: , while compiling: SELECT _id, label, number, number_key, type FROM view_v1_phones phones WHERE (account_name='my_email' AND account_type='com.google') AND (people._id = ?) ORDER BY type ASC</pre></p><h3>Caused by:</h3><pre>android.database.sqlite.SQLiteException: no such column: people._id: , while compiling: SELECT _id, label, number, number_key, type FROM view_v1_phones phones WHERE (account_name='my_email' AND account_type='com.google') AND (people._id = ?) ORDER BY type ASC at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:158) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114) at android.content.ContentProviderProxy.bulkQueryInternal(ContentProviderNative.java:344) at android.content.ContentProviderProxy.query(ContentProviderNative.java:380) at android.content.ContentResolver.query(ContentResolver.java:245) at org.mortbay.ijetty.console.Phone.getPhones(Phone.java:69)

I also get a lot of parser errors when I try to view media. I am actually looking for a web server that will allow you to download all the media files. Webdroid had a decent interface where you could download one photo at a time.

Comment by krishna....@gmail.com, Feb 20, 2011

Hello,

I want to make my Android phone as web server and access it on remote PC(connected to internet) browser. I used the app provided by :http://code.google.com/p/i-jetty/ , I am able to access on my Android device as localhost.But not able to access access from remote PC. I am using 3G internet connection..

If possible, could you please give some suggestions on this. thanks,Krishna krishna.shetty.h@gmail.com

Comment by Thomas1...@gmail.com, Mar 1, 2011

Hi i-Jetty Team,

JSP does not work. We try for 4 days, to get a simple Hello word, but we only get errors like: "java.jang.string not found", no JSP support, ...

We compiled the classfish jsp 2.1 and jsp-api 2.1 into the i-jetty server and get error about ClassLoader? ClassCastExceptions? .... in JspRuntimeContext?.

We fix this problem and got the next one. Inpossible to compile our JSP, because "java.lang.string not found".

What is the Problem? classpath, context.xml, android, wrong compiler????

Please help!

thx Sascha

Comment by thboil...@gmail.com, Mar 2, 2011

it may be time to quit servlet.

Comment by thboil...@gmail.com, Mar 2, 2011

I mean : jsp.

Comment by Thomas1...@gmail.com, Mar 2, 2011

Thank you for this great answer.

Comment by Thomas1...@gmail.com, Mar 2, 2011

does that mean it's not possible to run jsp pages on i-jetty

Comment by j...@intalio.com, Mar 2, 2011

Sascha/Thomas,

Have a read of the comments on the Downloadable Webapps wiki page of this site, specifically the comments from myself around 15/17th July regarding jsps.

Jan

Comment by wnvdescr...@gmail.com, Apr 18, 2011

Hi,I-Jetty team leader i have some problems,i hope web server port android .i try to install i-jetty project my android os,but it tell me,the application i-jetty (process org.mortbay.ijetty) has stopped unexpectedly.Please try again.

If in possible, could you please give some suggestions on this. thanks, wnvweb@gmail.com.

Comment by rockzman...@gmail.com, Jun 3, 2011

i install i-jetty to my Motorola Xoom using download button of Ijetty. I cannot access console and chat apps. The message 503 service unavailable means the server responded but 8080 port cannot access the files?

Also I cannot access the webserver using my pc and url http://<jettyip>:8080/console

Comment by martin.b...@gmail.com, Jun 11, 2011

I experienced the same issues on my Motorola Xoom. 503 service unavailable.

Apart from that, in case I change the port from 8080 to 8081, the Android app logs still show an url with 8080 when I hit "Start Jetty". However, the jetty server is listening to 8081, as expected.

Comment by john.joh...@gmail.com, Jul 4, 2011

we install into Samsung and using HTC smart phone to access the i-jetty server, we test the server of i-jetty, it can work through the same Wifi network;

but if HTC smart phone camp on 3G network to access http://<jettyip>:8080/console, it will be fail to access;

Please let me know how to solve this issue.

Comment by baumgart...@gmail.com, Aug 27, 2011

Hi,

I'd like to setup my development environment and I am wondering that I can make this assumptions : 1. I can use jetty 7.5 as corresponding servlet engine on PC ? 2. I can develop as usual my servlets in eclipse and move them over after development to an i-Jetty project ? (I am aware that JSP is not directly supported and I have to dex the precompiled JSP files).

Thanks for your comments. I really love this project.

Comment by project member jan.bar...@gmail.com, Aug 28, 2011

Could I please remind everyone that has a question to post it to the Jetty discussion group: user@jetty.codehaus.org?

Thanks, Jan

Comment by atul...@gmail.com, Dec 29, 2011

I want to Access the i-jetty which is running on Android mobile/emulator From PC???????? Is any one has any idea?????????

Thanks,Atul

Comment by atul...@gmail.com, Jan 3, 2012

I have run i-jetty apk on my emulator/phon but unable to configure code given for that on eclipse...... that is i-jetty-server & i-jetty-ui........ any body help me. Atul

Comment by anuj.os...@gmail.com, Mar 22, 2012

how to enable support for JSP ?

Comment by EngnrMah...@gmail.com, Apr 15, 2012

Hi, Is it possible to access i-jetty from internet remotely? say for instance , i am in England and my android device runs i-jetty. i have a simple web application to brows my apps deployed in i-jetty. I would like my friend to access my web app hosted in my device from US . Is it possible? if so how? Self cloud can do some thing , is it different tech? can i-jetty do the same?


Sign in to add a comment
Powered by Google Project Hosting