Re: [jetty-user] war file for i-jetty
Alexei Serov <[email protected]> Thu, 14 Apr 2011 15:29:07 -0700
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Hi Lennert! Thank you for your advice. It already helped. Previously I left some jar file out of dex because I saw a jar file out of dex in the web_text.war example (supposedly known). Now I have packed everything into dex and the application worked at http://localhost:8080/HJ though not 100% but more %% that I would expect to start with. 8-). For beginning I meant running within Android emulator and accessing from the same emulator, so localhost is what I needed. Alex On Thu, Apr 14, 2011 at 2:52 AM, Lennert Raesch <[email protected]> wrote: > Hi, > > the context is the path to where you access your web-application. So > setting it to "HJ" would lead to where you expected it to be < > http://localhost:8080/HJ> > > I am not quite sure whether localhost will actually work, I think it might > not (as it doesn't work the other way around - the android emulator can't > access the host machine via localhost, it is reserved for the emulator). But > you should be able to use localhost from the emulators browser. > > I have taken a quick look at your war, and found some jars, I believe this > won't work, maybe take one of the examples to reproduce the necessary build > steps. I am not on my developing machine right now, so I can't check my own > .war but will do that later in case you don't get it to work. > > Regards, > Lennert > > On Thu, Apr 14, 2011 at 4:35 AM, Alexei Serov <[email protected]>wrote: > >> Hi! >> >> I have successfully installed i-Jetty on Android emulator. Now I want to >> load some test web application and see it running at least locally on the >> device, >> >> Another instance of this application is permanently running on Tomcat at >> http://hybridjava.com:8080/HJ_Sample. It also runs OK under Jetty on PC. >> >> Now I have prepared file HJ.war for i-Jetty using dx to the best of my >> understanding. This HJ.war file downloads OK from >> http://hybridjava.com:8080/HJ.war (about 150k). >> >> I have downloaded this file to emulator using "download" button though I >> was not sure if I have to use the second field ("context:"). >> >> This way or that way, but at the end of the day I am not able to see the >> test application running on http://localhost:8080/HJ or any other way. >> >> Maybe the war file is malformed? >> >> Alex >> > >