You also need a local web server. I use Abyss (since Apache seemed like
overkill) and set it up so that the document root was pointing to the /war/
directory of my project and the port it was using was 1080, and it was also
set up to deal with PHP, of course.
As far as I can remember, that's all you have to do.
The advantage of setting a port number is that you can then set up *another*
project with another port number, and another instance of Abyss which is
pointed at the new project's /war/ directory and uses the new port number.
What is more, you can run both projects in hosted mode at the same time.
In GWT 2.0, you can do exactly the same thing, but if you want to run more
than one project in development mode at the same time, you will also need to
add
-portHosted 9998
(or some other unique hosted mode port number)
If that doesn't make sense, or doesn't work, or you need help setting up
Abyss (if you decide to use it), let me know.
> but however you run it, you need those arguments.
> You also need a local web server. I use Abyss (since Apache seemed like
> overkill) and set it up so that the document root was pointing to the /war/
> directory of my project and the port it was using was 1080, and it was also
> set up to deal with PHP, of course.
> As far as I can remember, that's all you have to do.
> The advantage of setting a port number is that you can then set up *another*
> project with another port number, and another instance of Abyss which is
> pointed at the new project's /war/ directory and uses the new port number.
> What is more, you can run both projects in hosted mode at the same time.
> In GWT 2.0, you can do exactly the same thing, but if you want to run more
> than one project in development mode at the same time, you will also need to
> add
> -portHosted 9998
> (or some other unique hosted mode port number)
> If that doesn't make sense, or doesn't work, or you need help setting up
> Abyss (if you decide to use it), let me know.
> > but however you run it, you need those arguments.
> > You also need a local web server. I use Abyss (since Apache seemed like
> > overkill) and set it up so that the document root was pointing to the /war/
> > directory of my project and the port it was using was 1080, and it was also
> > set up to deal with PHP, of course.
> > As far as I can remember, that's all you have to do.
> > The advantage of setting a port number is that you can then set up *another*
> > project with another port number, and another instance of Abyss which is
> > pointed at the new project's /war/ directory and uses the new port number.
> > What is more, you can run both projects in hosted mode at the same time.
> > In GWT 2.0, you can do exactly the same thing, but if you want to run more
> > than one project in development mode at the same time, you will also need to
> > add
> > -portHosted 9998
> > (or some other unique hosted mode port number)
> > If that doesn't make sense, or doesn't work, or you need help setting up
> > Abyss (if you decide to use it), let me know.
where do i enter the program arguments and the same orign policy apply
to ports also so how can it be possible to run 2 diffrent web servers
on 2 diffrent ports without getting the error
On Nov 4, 6:16 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> but however you run it, you need those arguments.
> You also need a local web server. I use Abyss (since Apache seemed like
> overkill) and set it up so that the document root was pointing to the /war/
> directory of my project and the port it was using was 1080, and it was also
> set up to deal with PHP, of course.
> As far as I can remember, that's all you have to do.
> The advantage of setting a port number is that you can then set up *another*
> project with another port number, and another instance of Abyss which is
> pointed at the new project's /war/ directory and uses the new port number.
> What is more, you can run both projects in hosted mode at the same time.
> In GWT 2.0, you can do exactly the same thing, but if you want to run more
> than one project in development mode at the same time, you will also need to
> add
> -portHosted 9998
> (or some other unique hosted mode port number)
> If that doesn't make sense, or doesn't work, or you need help setting up
> Abyss (if you decide to use it), let me know.
> but however you run it, you need those arguments.
> You also need a local web server. I use Abyss (since Apache seemed like
> overkill) and set it up so that the document root was pointing to the /war/
> directory of my project and the port it was using was 1080, and it was also
> set up to deal with PHP, of course.
> As far as I can remember, that's all you have to do.
> The advantage of setting a port number is that you can then set up *another*
> project with another port number, and another instance of Abyss which is
> pointed at the new project's /war/ directory and uses the new port number.
> What is more, you can run both projects in hosted mode at the same time.
> In GWT 2.0, you can do exactly the same thing, but if you want to run more
> than one project in development mode at the same time, you will also need to
> add
> -portHosted 9998
> (or some other unique hosted mode port number)
> If that doesn't make sense, or doesn't work, or you need help setting up
> Abyss (if you decide to use it), let me know.
pls help i cant use hosted mode even after installing apache setting
the directory to my war
if i use browser it works fine but not in hosted mode pls help me
On Nov 4, 6:16 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> but however you run it, you need those arguments.
> You also need a local web server. I use Abyss (since Apache seemed like
> overkill) and set it up so that the document root was pointing to the /war/
> directory of my project and the port it was using was 1080, and it was also
> set up to deal with PHP, of course.
> As far as I can remember, that's all you have to do.
> The advantage of setting a port number is that you can then set up *another*
> project with another port number, and another instance of Abyss which is
> pointed at the new project's /war/ directory and uses the new port number.
> What is more, you can run both projects in hosted mode at the same time.
> In GWT 2.0, you can do exactly the same thing, but if you want to run more
> than one project in development mode at the same time, you will also need to
> add
> -portHosted 9998
> (or some other unique hosted mode port number)
> If that doesn't make sense, or doesn't work, or you need help setting up
> Abyss (if you decide to use it), let me know.
> pls help i cant use hosted mode even after installing apache setting
> the directory to my war
> if i use browser it works fine but not in hosted mode pls help me
> On Nov 4, 6:16 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> > OK.
> > The way I do it is like this:
> > In the program arguments you need
> > -noserver -port 1080
> > if you don't put the port, it will default to 80
> > in my launch file for my 1.7 minimum app I have
> > but however you run it, you need those arguments.
> > You also need a local web server. I use Abyss (since Apache seemed like
> > overkill) and set it up so that the document root was pointing to the /war/
> > directory of my project and the port it was using was 1080, and it was also
> > set up to deal with PHP, of course.
> > As far as I can remember, that's all you have to do.
> > The advantage of setting a port number is that you can then set up *another*
> > project with another port number, and another instance of Abyss which is
> > pointed at the new project's /war/ directory and uses the new port number.
> > What is more, you can run both projects in hosted mode at the same time.
> > In GWT 2.0, you can do exactly the same thing, but if you want to run more
> > than one project in development mode at the same time, you will also need to
> > add
> > -portHosted 9998
> > (or some other unique hosted mode port number)
> > If that doesn't make sense, or doesn't work, or you need help setting up
> > Abyss (if you decide to use it), let me know.
> thank u very much i managed to use -noserver and it works great
> how the hell can gwt debug the js code running on another web
> server ?!??!?
> On Nov 8, 1:55 pm, ben fenster <fenster....@gmail.com> wrote:
> > pls help i cant use hosted mode even after installing apache setting
> > the directory to my war
> > if i use browser it works fine but not in hosted mode pls help me
> > On Nov 4, 6:16 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> > > OK.
> > > The way I do it is like this:
> > > In the program arguments you need
> > > -noserver -port 1080
> > > if you don't put the port, it will default to 80
> > > in my launch file for my 1.7 minimum app I have
> > > but however you run it, you need those arguments.
> > > You also need a local web server. I use Abyss (since Apache seemed like
> > > overkill) and set it up so that the document root was pointing to the
> /war/
> > > directory of my project and the port it was using was 1080, and it was
> also
> > > set up to deal with PHP, of course.
> > > As far as I can remember, that's all you have to do.
> > > The advantage of setting a port number is that you can then set up
> *another*
> > > project with another port number, and another instance of Abyss which
> is
> > > pointed at the new project's /war/ directory and uses the new port
> number.
> > > What is more, you can run both projects in hosted mode at the same
> time.
> > > In GWT 2.0, you can do exactly the same thing, but if you want to run
> more
> > > than one project in development mode at the same time, you will also
> need to
> > > add
> > > -portHosted 9998
> > > (or some other unique hosted mode port number)
> > > If that doesn't make sense, or doesn't work, or you need help setting
> up
> > > Abyss (if you decide to use it), let me know.
> > thank u very much i managed to use -noserver and it works great
> > how the hell can gwt debug the js code running on another web
> > server ?!??!?
> > On Nov 8, 1:55 pm, ben fenster <fenster....@gmail.com> wrote:
> > > pls help i cant use hosted mode even after installing apache setting
> > > the directory to my war
> > > if i use browser it works fine but not in hosted mode pls help me
> > > On Nov 4, 6:16 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> > > > OK.
> > > > The way I do it is like this:
> > > > In the program arguments you need
> > > > -noserver -port 1080
> > > > if you don't put the port, it will default to 80
> > > > in my launch file for my 1.7 minimum app I have
> > > > but however you run it, you need those arguments.
> > > > You also need a local web server. I use Abyss (since Apache seemed like
> > > > overkill) and set it up so that the document root was pointing to the
> > /war/
> > > > directory of my project and the port it was using was 1080, and it was
> > also
> > > > set up to deal with PHP, of course.
> > > > As far as I can remember, that's all you have to do.
> > > > The advantage of setting a port number is that you can then set up
> > *another*
> > > > project with another port number, and another instance of Abyss which
> > is
> > > > pointed at the new project's /war/ directory and uses the new port
> > number.
> > > > What is more, you can run both projects in hosted mode at the same
> > time.
> > > > In GWT 2.0, you can do exactly the same thing, but if you want to run
> > more
> > > > than one project in development mode at the same time, you will also
> > need to
> > > > add
> > > > -portHosted 9998
> > > > (or some other unique hosted mode port number)
> > > > If that doesn't make sense, or doesn't work, or you need help setting
> > up
> > > > Abyss (if you decide to use it), let me know.
On 10 nov, 14:22, ben fenster <fenster....@gmail.com> wrote:
> yes it works great thanks :)
> but i was wondering how the hell can gwt debug the js code running on
> another web
> server in my case apache ?!??!?
It doesn't debug the code that's on your server, but the one that's on
your PC (and the js code do not "run" on the server ;-) )
When the *.cache.js is loaded (from your Apache server), it detects
that it's running in the HostedMode browser and then uses some special
APIs to talk to the HostedMode and actually run your Java code on your
PC, which allows you to debug it.