netbeans -noserver option

64 views
Skip to first unread message

mibtar

unread,
Feb 27, 2010, 6:25:01 AM2/27/10
to Google Web Toolkit
hi, i wanted to use php with gwt. it works if i compile, but it really
takes long.
i want to be able to open the scripts in dev mode and i've read that
you have to set
the -noserver argument. the one i've read is from the 1.5 version of
gwt. and it seems the file structure is different in netbeans than in
ecplipse.

can anyone point me to the right direction? sorry, really new to this.
thanks.

tim.le...@googlemail.com

unread,
Feb 27, 2010, 7:30:50 AM2/27/10
to Google Web Toolkit
hello,

have you tried the "debug/dev mode" action (https://
gwt4nb.dev.java.net/)?

--Tim

mibtar

unread,
Feb 27, 2010, 7:45:53 AM2/27/10
to Google Web Toolkit
hi, i was looking at the build-gwt.xml and it turns out that "GWT Dev
Mode (Hosted Mode)" menu item is actually the one without the -
noserver option. because it actually starts jetty. and it's target is
"debug-connect-gwt-shell-hosted-20" in the build-gwt.xml.

while the "Debug main project" button is actually the one with the -
noserver option. it's target is "debug-connect-gwt-shell-20" in the
build-gwt.xml. (sorry for the redundancy).

i guess my problem is that if i use the -noserver option it doesn't
start jetty in dev mode (that's good) but it starts tomcat. so i still
can't use port 80.

i'm really at a loss here. or probably i just don't really understand
how it works.

tim.le...@googlemail.com

unread,
Feb 28, 2010, 7:12:49 AM2/28/10
to Google Web Toolkit
try to follow this screencast:
http://www.youtube.com/watch?v=10fMJvbU40Q

tim.le...@googlemail.com

unread,
Feb 27, 2010, 8:42:08 AM2/27/10
to Google Web Toolkit
first of all, the -noserver option is not important.

try to do the following (I assume you use gwt 2.0):
- start you php application (let's assume it is running on
http://localhost:80/somePageContainingGWT.html)
- start you gwt dev mode using "debug/dev mode". don't worry about
jetty. it uses the port 8888 by default. jetty will be just not used.
- navigate to http://localhost:80/somePageContainingGWT.html?gwt.codesvr=127.0.0.1:9997
in firefox (gwt 2.0 plugin should be installed in firefox). you can
get the "?gwt.codesvr=..." part of the url by pressing the button
"copy to clipboard" in the gwt shell

On 27 Feb., 13:45, mibtar <bim.pangili...@gmail.com> wrote:

tim.le...@googlemail.com

unread,
Feb 27, 2010, 1:28:59 PM2/27/10
to Google Web Toolkit
hello,

somehow my last answer disappeared...

you don't have to worry about -noserver. Jetty will be started on 8888
and just not used.

- copy the JavaScript created by GWT to you PHP app and start it
- start the GWT project by doing "Debug/GWT Dev Mode"
- navigate in FireFox to http://localhost/PhpProject1/welcomeGWT.html?gwt.codesvr=localhost:9997

you will even be able to debug your GWT code


On 27 Feb., 13:45, mibtar <bim.pangili...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages