help with localhost url for downloading forms

7 views
Skip to first unread message

Mukiza Andrew

unread,
Aug 24, 2011, 2:39:48 AM8/24/11
to openxd...@googlegroups.com
hello there,
i am trying to connect my emulator with the openxdata server (locally hosted) on my
 machine using the source code i checked out  code from https://svn.openxdata.org/J2ME/branches/1.7/
i compiled it and it is running the emulator very well
but when i try to download forms it says that the url is wrong. could some one send me a correct url to use when connecting to localhost.
Thanks
Andrew

Mark Gerard

unread,
Aug 24, 2011, 4:15:47 AM8/24/11
to openxd...@googlegroups.com
What is your current url?

Mark

--
You received this message because you are subscribed to the Google Groups "openXdata Developers" group.
To post to this group, send email to openxd...@googlegroups.com.
To unsubscribe from this group, send email to openxdata-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openxdata-dev?hl=en.


Mukiza Andrew

unread,
Aug 24, 2011, 10:44:41 AM8/24/11
to openXdata Developers
the current url is http://localhost:8888/ and came by default ... what
do i have to add to direct the openxdata mobile client to the
formdownload servlet.

On Aug 24, 11:15 am, Mark Gerard <cattaba...@gmail.com> wrote:
> What is your current url?
>
> Mark
>
> On Aug 24, 2011, at 8:39 AM, Mukiza Andrew wrote:
>
>
>
>
>
>
>
> > hello there,
> > i am trying to connect my emulator with the openxdata server (locally hosted) on my
> >  machine using the source code i checked out  code fromhttps://svn.openxdata.org/J2ME/branches/1.7/

Mark Gerard

unread,
Aug 24, 2011, 11:09:31 AM8/24/11
to openxd...@googlegroups.com
Your url should be structured in the format like http://<server-address>/openxdata/mpsubmit

Refer to the following doc for details: https://trac.openxdata.org/wiki/DynamicProtocolSupport

Mark

Jørn Ivar Klungsøyr

unread,
Aug 25, 2011, 1:20:41 AM8/25/11
to openxd...@googlegroups.com
A small addition
In the below address, "openXdata" should be the exact folder name for the application in tomcat.
http://<server-address>/openxdata/mpsubmit
Also don't forget to open firewalls etc
Best
Jørn
____________________________________________________________________________
Jorn Klungsoyr
openXdata - Centre for International Health, University of Bergen, Norway
www.openxdata.org / www.cih.uib.no / www.openrosa.org / www.open-mobile.org
Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email: jorn.kl...@gmail.com
Post: Postboks 7800, 5020 Bergen, Visit: Årstadveien 21, 5th Floor, Bergen
------¤¤¤¤------

raja mani

unread,
Aug 25, 2011, 2:49:50 AM8/25/11
to openxd...@googlegroups.com
also u can refer your localhost ip as 10.0.2.2 for localhost - this is a default ip for localhost in android test

by
Rajamani M
Chennai
cell: 9791125383

Brent Atkinson

unread,
Aug 25, 2011, 3:25:18 AM8/25/11
to openxd...@googlegroups.com
Hi,

It's not the same as localhost. I don't mean to critical here, but using a 10-dot address doesn't give the user anything in this scenario and it's actually a potential security hole if you don't understand that it's a non-routable address - not a loopback address. Another party can still potentially see traffic if you're on the same local network. I am curious, what is the intended value of providing this information?

Brent

Mukiza Andrew

unread,
Aug 31, 2011, 7:14:23 AM8/31/11
to openXdata Developers
Hey
Could u do me a favor. and explain to me how i can add the firewall
exceptions and see if they could be the reason for my connection
failure.
Thank you

On Aug 25, 8:20 am, Jørn Ivar Klungsøyr <Jorn.Klungs...@cih.uib.no>
wrote:
> A small addition
> In the below address, "openXdata" should be the exact folder name for the application in tomcat.
> http://<server-address>/openxdata/mpsubmit
> Also don't forget to open firewalls etc
> Best
> Jørn
> ____________________________________________________________________________
> Jorn Klungsoyr
> openXdata - Centre for International Health, University of Bergen, Norwaywww.openxdata.org /www.cih.uib.no /www.openrosa.org /www.open-mobile.org
> Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email: jorn.klungs...@gmail.com
> Post: Postboks 7800, 5020 Bergen, Visit: Årstadveien 21, 5th Floor, Bergen
>                        ------¤¤¤¤------
>
>
>
>
>
>
>
> -----Original Message-----
> From: openxd...@googlegroups.com [mailto:openxd...@googlegroups.com] On Behalf Of Mark Gerard
> Sent: Wednesday, August 24, 2011 5:10 PM
> To: openxd...@googlegroups.com
> Subject: Re: [openXdata-dev] Re: help with localhost url for downloading forms
>
> Your url should be structured in the format like http://<server-address>/openxdata/mpsubmit
>
> Refer to the following doc for details:https://trac.openxdata.org/wiki/DynamicProtocolSupport
>
> Mark
>
> On Aug 24, 2011, at 4:44 PM, Mukiza Andrew wrote:
>
> > the current url ishttp://localhost:8888/and came by default ... what

Jørn Ivar Klungsøyr

unread,
Aug 31, 2011, 7:24:59 AM8/31/11
to openxd...@googlegroups.com
Hi Mukiza,
This would highly depend on the firewall and OS you use - so more details would be appreciated :)
Also don't forget that the URL must include the port number used unless you have setup tomcat to use port 80 (or some other port magic.
So <server-address> in the below example could be like 123.34.23.2:8080 (if you have tomcat running on port 8080....) - for e.g. demo.openxdata.org we run tomcat on port 80 to remove the need for the :8080
Best
Jørn

____________________________________________________________________________
Jorn Klungsoyr


openXdata - Centre for International Health, University of Bergen, Norway
www.openxdata.org / www.cih.uib.no / www.openrosa.org / www.open-mobile.org

Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email: jorn.kl...@gmail.com

Mark Gerard

unread,
Aug 31, 2011, 7:29:16 AM8/31/11
to openxd...@googlegroups.com
Message has been deleted

Mukiza Andrew

unread,
Aug 31, 2011, 9:13:54 AM8/31/11
to openXdata Developers

Hey there!
thanks a lot for yo assistance am really grateful ... unfortunately
am still not successful even after disabling the firewall.
I am using the gwt developement mode for openxdataserver. When i
compile using the mvn gwt:run command everything runs well but when i
try connecting with the openxdata mobile client to dowload forms
using the url http://localjost:8888/mpsubmit but it rejects with an
error with 404 - incorrect url something like that
could any one be having any idea how to go about it ... n things else
i can explain please ask i need to get it working soon!
Thanks alot
Andrew
> > >>> the current url ishttp://localhost:8888/andcameby default ... what

Daniel Kayiwa

unread,
Aug 31, 2011, 9:20:38 AM8/31/11
to openxd...@googlegroups.com

Did you mean "localhost" or "localjost"?
If we keep uppermost in our minds the unkind and unjust acts of others, we shall find it impossible to love them as Christ has loved us; but if our thoughts dwell upon the wondrous love and pity of Christ for us, the same spirit will flow out to others.

Mukiza Andrew

unread,
Aug 31, 2011, 9:24:31 AM8/31/11
to openXdata Developers
yeah i meant localhost . sorry about that

On Aug 31, 4:20 pm, Daniel Kayiwa <kayiwadan...@gmail.com> wrote:
> Did you mean "localhost" or "localjost"?
>
>
>
>
>
>
>
>
>
> On Wed, Aug 31, 2011 at 4:13 PM, Mukiza Andrew <mandy....@gmail.com> wrote:
>
> > Hey there!
> >  thanks a lot for yo assistance am really grateful ... unfortunately
> > am still not successful even after disabling the firewall.
> > I am using the gwt developement mode for openxdataserver. When i
> > compile using the mvn gwt:run command everything runs well but when i
> > try connecting with the openxdata mobile client  to dowload forms
> > using the urlhttp://localjost:8888/mpsubmitbut it rejects with an
> > > > >>> the current url ishttp://localhost:8888/andcamebydefault ... what

Mark Gerard

unread,
Aug 31, 2011, 9:50:56 AM8/31/11
to openxd...@googlegroups.com
I dont understand, did you try to connect with http://localjost:8888/mpsubmit?

Change localjost to localhost and let us know how it goes!

Mark

P.S

- Take time to format your emails well - it is a bit of a drag to wallow in too much text that is not well formatted. We want to help but you could help us by formatting your emails well.
- Also take time to check simple things like localjost and localhost, sometimes a second look might reveal the answer!

Mukiza Andrew

unread,
Aug 31, 2011, 10:01:33 AM8/31/11
to openXdata Developers
I made the mistake here on the forum but in the applications it is
"localhost"
( http://localhost:8888/mpsubmit)
when i try to connect to the openxdataserver it returns this error
"Response code not OK =404. Please check your server url ...."
I hope this makes it clearer
thanks
Andrew



On Aug 31, 4:50 pm, Mark Gerard <cattaba...@gmail.com> wrote:
> I dont understand, did you try to connect withhttp://localjost:8888/mpsubmit?
>
> Change localjost to localhost and let us know how it goes!
>
> Mark
>
> P.S
>
> - Take time to format your emails well - it is a bit of a drag to wallow in too much text that is not well formatted. We want to help but you could help us by formatting your emails well.
> - Also take time to check simple things like localjost and localhost, sometimes a second look might reveal the answer!
>
> On Aug 31, 2011, at 3:24 PM, Mukiza Andrew wrote:
>
>
>
>
>
>
>
> > yeah i meant localhost . sorry about that
>
> > On Aug 31, 4:20 pm, Daniel Kayiwa <kayiwadan...@gmail.com> wrote:
> >> Did you mean "localhost" or "localjost"?
>
> >> On Wed, Aug 31, 2011 at 4:13 PM, Mukiza Andrew <mandy....@gmail.com> wrote:
>
> >>> Hey there!
> >>>  thanks a lot for yo assistance am really grateful ... unfortunately
> >>> am still not successful even after disabling the firewall.
> >>> I am using the gwt developement mode for openxdataserver. When i
> >>> compile using the mvn gwt:run command everything runs well but when i
> >>> try connecting with the openxdata mobile client  to dowload forms
> >>> using the urlhttp://localjost:8888/mpsubmitbutit rejects with an
> >>>>>>>> the current url ishttp://localhost:8888/andcamebydefault... what

Shashank Garg

unread,
Aug 31, 2011, 10:08:07 AM8/31/11
to openxd...@googlegroups.com, Shashank Garg
Andrew,

What is the connectivity between the mobile client and your server (localhost) where OpenXdata is hosted? Are both the client and server running on the same system? If not, is the mobile client on a cell-phone? Are you using WiFi? Or, are you using GPRS?

Your server needs to be externally accessible IP address (global IP) if you are going to use GPRS on the cell-phone.

I am sure you already have all the answers, but you could still check out these pointers.

Shashank@Handsrel

Mark Gerard

unread,
Aug 31, 2011, 10:10:18 AM8/31/11
to openxd...@googlegroups.com
What happens when you navigate to that url in the browser?

Mark

Mukiza Andrew

unread,
Aug 31, 2011, 10:17:22 AM8/31/11
to openXdata Developers
Another observation
On clicking download studies,
It shows "Connected to server. Transferring data ..."
A few seconds later the error below pops
"Response code not OK =404. Please check your server url under http
connection settings"

BTW, the connection settings are 'http://localhost:8888/mpsubmit'
Am using the emulator to connect to oxd v1.2 server(which I start with
"mvn gwt:run" via commandline)

:)
Andrew.


On Aug 31, 5:01 pm, Mukiza Andrew <mandy....@gmail.com> wrote:
> I made the mistake here on the forum but in the applications it is
> "localhost"
> (http://localhost:8888/mpsubmit)
> when i try to connect to the openxdataserver it returns this error
> "Response code not OK =404. Please check your server url ...."
> I hope this makes it clearer
> thanks
> Andrew
>
> On Aug 31, 4:50 pm, Mark Gerard <cattaba...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I dont understand, did you try to connect withhttp://localjost:8888/mpsubmit?
>
> > Change localjost to localhost and let us know how it goes!
>
> > Mark
>
> > P.S
>
> > - Take time to format your emails well - it is a bit of a drag to wallow in too much text that is not well formatted. We want to help but you could help us by formatting your emails well.
> > - Also take time to check simple things like localjost and localhost, sometimes a second look might reveal the answer!
>
> > On Aug 31, 2011, at 3:24 PM, Mukiza Andrew wrote:
>
> > > yeah i meant localhost . sorry about that
>
> > > On Aug 31, 4:20 pm, Daniel Kayiwa <kayiwadan...@gmail.com> wrote:
> > >> Did you mean "localhost" or "localjost"?
>
> > >> On Wed, Aug 31, 2011 at 4:13 PM, Mukiza Andrew <mandy....@gmail.com> wrote:
>
> > >>> Hey there!
> > >>>  thanks a lot for yo assistance am really grateful ... unfortunately
> > >>> am still not successful even after disabling the firewall.
> > >>> I am using the gwt developement mode for openxdataserver. When i
> > >>> compile using the mvn gwt:run command everything runs well but when i
> > >>> try connecting with the openxdata mobile client  to dowload forms
> > >>> using the urlhttp://localjost:8888/mpsubmitbutitrejects with an

Mark Gerard

unread,
Aug 31, 2011, 10:21:27 AM8/31/11
to openxd...@googlegroups.com
Actually, no need to navigate to it! It is formatted wrongly

Read this document before proceeding: https://trac.openxdata.org/wiki/DynamicProtocolSupport

The way to format the url (I am assuming you deployed the application correctly) is explained in there!
If you attempting to connect from with in the hosted mode server, you might have to format the url differently though I dont have the correct references handy right now! I would suggest you deploy it to tomcat!

Mark

Simon

unread,
Sep 13, 2011, 1:40:05 PM9/13/11
to openXdata Developers
Hi Andrew,
I got through some steps to get the mobile client's code of the
emulator work with a server-side code in development mode.
Here are the chronicles.

1. Set up the mobile code(used 1.2.2 from the branch) as indicated on
the link https://trac.openxdata.org/wiki/MobileSetup
2. define download and upload urls as http://localhost:8888/mpsubmit
3. If using server-side code v1.2, you will want to throw the protocal
jars into the admin project . Put those jars into the folder admin/war/
protocal-jars
4. Run your mobile code through ant's tasks as outlined in the link in
step #1.
5. Run the server-side with mvn gwt:run, ofcourse from the admin
project on commandline.

Given the above steps, I pulled a list of studies on the emulator.
Don't hesitate to get back incase of any problems.

Simon.
On Aug 31, 5:21 pm, Mark Gerard <cattaba...@gmail.com> wrote:
>  Actually, no need to navigate to it! It is formatted wrongly
>
> Read this document before proceeding:https://trac.openxdata.org/wiki/DynamicProtocolSupport
>
> The way to format the url (I am assuming you deployed the application correctly) is explained in there!
> If you attempting to connect from with in the hosted mode server, you might have to format the url differently though I dont have the correct references handy right now! I would suggest you deploy it to tomcat!
>
> Mark
>
> On Aug 31, 2011, at 4:10 PM, Mark Gerard wrote:
>
> > What happens when you navigate to that url in the browser?
>
> > Mark
>
> > On Aug 31, 2011, at 4:01 PM,MukizaAndrewwrote:
>
> >> I made the mistake here on the forum but in the applications it is
> >> "localhost"
> >> (http://localhost:8888/mpsubmit)
> >> when i try to connect to the openxdataserver it returns this error
> >> "Response code not OK =404. Please check your server url ...."
> >> I hope this makes it clearer
> >> thanks
> >>Andrew
>
> >> On Aug 31, 4:50 pm, Mark Gerard <cattaba...@gmail.com> wrote:
> >>> I dont understand, did you try to connect withhttp://localjost:8888/mpsubmit?
>
> >>> Change localjost to localhost and let us know how it goes!
>
> >>> Mark
>
> >>> P.S
>
> >>> - Take time to format your emails well - it is a bit of a drag to wallow in too much text that is not well formatted. We want to help but you could help us by formatting your emails well.
> >>> - Also take time to check simple things like localjost and localhost, sometimes a second look might reveal the answer!
>
> >>> On Aug 31, 2011, at 3:24 PM,MukizaAndrewwrote:
>
> >>>> yeah i meant localhost . sorry about that
>
> >>>> On Aug 31, 4:20 pm, Daniel Kayiwa <kayiwadan...@gmail.com> wrote:
> >>>>> Did you mean "localhost" or "localjost"?
>
> >>>>> On Wed, Aug 31, 2011 at 4:13 PM,MukizaAndrew<mandy....@gmail.com> wrote:
>
> >>>>>> Hey there!
> >>>>>> thanks a lot for yo assistance am really grateful ... unfortunately
> >>>>>> am still not successful even after disabling the firewall.
> >>>>>> I am using the gwt developement mode for openxdataserver. When i
> >>>>>> compile using the mvn gwt:run command everything runs well but when i
> >>>>>> try connecting with the openxdata mobile client  to dowload forms
> >>>>>> using the urlhttp://localjost:8888/mpsubmitbutitrejects with an
Reply all
Reply to author
Forward
0 new messages