RC2 and Eclipse Plugin

3 views
Skip to first unread message

jd

unread,
Dec 3, 2009, 6:27:05 AM12/3/09
to Google Web Toolkit
Hi,

Can someone please post a definitive procedure to get RC2 working? I
have tried many different pieces of advice from many different threads
and none have worked for me on my mac with Eclipse.

1 - Is it possible to use the Google Plugin's Web Application launch?

2 - Is it really necessary to install both RC1 and RC2 plugins "Above"
each other?

Thanks,

John

jd

unread,
Dec 3, 2009, 6:28:55 AM12/3/09
to Google Web Toolkit
Also,

3 - If I must create a normal launch what parameters are required?

4 - What should my workspace be set to to run both GWT and App Engine?

Thomas Broyer

unread,
Dec 3, 2009, 6:38:54 AM12/3/09
to Google Web Toolkit

On Dec 3, 12:27 pm, jd <jdpatter...@gmail.com> wrote:
> Hi,
>
> Can someone please post a definitive procedure to get RC2 working?  I
> have tried many different pieces of advice from many different threads
> and none have worked for me on my mac with Eclipse.
>
> 1 - Is it possible to use the Google Plugin's Web Application launch?

Yes

> 2 - Is it really necessary to install both RC1 and RC2 plugins "Above"
> each other?

No (I thought it was, from reading others' experience, so did I; but
it didn't work for a coworker, so he installed only the RC2 plugin; he
had to start from a blank workspace though)

> 3 - If I must create a normal launch what parameters are required?

N/A
(if you want to do it though, try passing nothing and it'll tell you
what's missing ;-) )

> 4 - What should my workspace be set to to run both GWT and App Engine?

I don't use App Engine, so I can't answer that one.

John Patterson

unread,
Dec 3, 2009, 7:04:25 AM12/3/09
to google-we...@googlegroups.com
Thanks for the confirmation. I now have it working - _possibly_ my
problem was due to not having a fresh workspace.

Just for others reference this is what I did:

Installed fresh Eclipse 3.5 and chosen a new workspace

I have installed WST and then only Google Plugin RC2. I configured
the Google preferences with both GWT 1.2RC2 and GAE1.6 and then
imported my single existing project.

I have created a Google Web Application launch and it kicks off
Jetty. The Development Mode window inside Eclipse shows no URL's to
launch but I use http://localhost:8888/?gwt.codesvr=localhost:9997

And it works!!

Thanks again

John

Jeff Chimene

unread,
Dec 3, 2009, 10:41:53 AM12/3/09
to google-we...@googlegroups.com

Eh?

The Dev. Mode window should have a url that's the same as the one you posted. Right-click, copy  and paste into your browser. AFAIK, Dev. Mode is now identical on all supported platforms.  Do you see a Dev. Mode View after launching development mode?

mariyan nenchev

unread,
Dec 3, 2009, 10:53:48 AM12/3/09
to google-we...@googlegroups.com
Hi, this GEP, is very easy to setup, but the hard part is to keep it working after integrating with maven. I just setup my project with maven. And now the cycle "edit/save/refresh" is not working :(. I have to recompile the project in order to see the changes, no exceptions nothing and i can't understand why is this happening....
Unfortunately google frameworks are painful to integrate with other frameworks (servers, tools) at least for me.

John Patterson

unread,
Dec 3, 2009, 10:58:22 AM12/3/09
to google-we...@googlegroups.com

On 3 Dec 2009, at 22:41, Jeff Chimene wrote:

Eh?

The Dev. Mode window should have a url that's the same as the one you posted. Right-click, copy  and paste into your browser. AFAIK, Dev. Mode is now identical on all supported platforms.  Do you see a Dev. Mode View after launching development mode?

Eh?

Yes I see the dev mode view but there is no link.  ie it says "For you convenience...." and there is an empty list.

Jeff Chimene

unread,
Dec 3, 2009, 11:13:54 AM12/3/09
to google-we...@googlegroups.com

That's not good. You might try searching the buglist for similar issues. There should be a URL in the lower panel.

Miguel Méndez

unread,
Dec 3, 2009, 11:23:08 AM12/3/09
to google-we...@googlegroups.com
Do you have a war folder as part of your project?

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Miguel

John Patterson

unread,
Dec 3, 2009, 12:13:22 PM12/3/09
to google-we...@googlegroups.com

On 3 Dec 2009, at 23:23, Miguel Méndez wrote:

Yes I see the dev mode view but there is no link.  ie it says "For you convenience...." and there is an empty list.

 
Do you have a war folder as part of your project?


Yes I do.  Although its not a problem... the url just works.  But, I have not defined a startUrl anywhere.  Previously I put one in the launch dialogue but that is not there anymore

John Patterson

unread,
Dec 4, 2009, 5:06:31 AM12/4/09
to google-we...@googlegroups.com
Actually, where do you define the start url in your configuration?  I assume this must come from somewhere but I see no option.

On 3 Dec 2009, at 23:23, Miguel Méndez wrote:

Chris Ramsdale

unread,
Dec 4, 2009, 5:25:11 PM12/4/09
to google-we...@googlegroups.com
Startup URLs can be specified in the Arguments tab within your Web Application launch config. For example "-startupUrl http://localhost:8080/test/go" (minus the quotes. 

David Fuelling

unread,
Dec 14, 2009, 10:08:29 AM12/14/09
to Google Web Toolkit
I had this problem too (though in my case it was because I took a 1.x
GWT project and opened it in GWT 2.0). In my case, I had the wrong
working directory during debug. To fix it, I had to go into the debug
configuration for my GWT app, and set my "Working Directory" to be my
WAR directory (it was previously just my project root).

So, select "Debug Configurations" --> "Your WebApp" --> Click
"Arguments" tab --> Select "other" for Working Directory --> Click the
"Workspace" button --> Select your WAR file --> Apply.

After I did that, the URL for my Hosted-mode app started showing up in
the "Development Mode" convenience tab during debugging.

Rajeev Dayal

unread,
Dec 14, 2009, 11:25:51 AM12/14/09
to google-we...@googlegroups.com
Hi David,

You should not have had to tweak the working directory. When GEP launches a GWT app, the -war option is specified, an an absolute path to the war folder is given as an argument. The startup URLs are actually derived from the war folder.

Can you verify that if you change the working directory of your launch configuration that the URLs no longer show up?


Thanks,
Rajeev



julian

unread,
Dec 15, 2009, 5:44:12 AM12/15/09
to Google Web Toolkit
I also have no urls in the developer mode view.
Running Eclipse 3.5, OS X Snow Leopard, gwt 2.0 using gwt-maven-plugin
1.2-SNAPSHOT
But I can access the developer server by entering the url in the
browser manually: http://localhost:8888/my.web.App/index.html?gwt.codesvr=localhost:9997
Interesting that I get a dialog saying that my module "may need to
recompiled" when I use the url: http://localhost:8888/my.web.App/index.html
Changing the working directory to point to the war folder didn't help.

Also.. when using developer mode it runs extremely slowly in both
safari and firefox. cpu at about 70% and network over local loop at
2.3MB / sec

Rajeev Dayal

unread,
Dec 15, 2009, 1:26:14 PM12/15/09
to google-we...@googlegroups.com
You will only get a list of startup URL suggestions if you have HTML/JSP files directly underneath your "war" folder.

You can always add the "-startupUrl <html page>" argument to your launch configuration's program arguments, and that URL will show in the developer mode view.

David Fuelling

unread,
Dec 15, 2009, 1:36:05 PM12/15/09
to Google Web Toolkit
Hi Rajeev,

In response to your previous question, I added the startupURL
parameter at the same time I switched my working directory to be the
"war" directory, so given your comments below, this is likely what got
my URL to start showing up.

To verify this, I switched my debug "working directory" back to be the
application root (in the debug window) and the URL still showed up in
the development mode tab, so this tweak was not what got my URL to
start showing up (I'm guessing it was the addition of the
"startupURL", as you indicate below).

Thanks!

david
Reply all
Reply to author
Forward
0 new messages