Google Plugin for Eclipse 1.3 Preview is now available

39 views
Skip to first unread message

Keith Platfoot

unread,
Mar 3, 2010, 7:25:30 PM3/3/10
to google-we...@googlegroups.com

Hi everyone,

Last month, I announced some of the changes we had planned for the 1.3 version of the Google Plugin for Eclipse. To recap, this release is focused on making life easier for developers using GWT/App Engine alongside third-party tools, including Maven and Eclipse for Java EE. In my post, I promised we'd let you download a preview of 1.3 to get some hands-on testing of the new features and provide us with your feedback before the official release.

I'm happy to announce that the time has come. An early preview of 1.3 is now available for download at the following URLs:

http://dl.google.com/eclipse/plugin/3.5/zips/com.google.gdt.eclipse.suite.e35.feature_1.2.101.v201003031407.zip

http://dl.google.com/eclipse/plugin/3.4/zips/com.google.gdt.eclipse.suite.e34.feature_1.2.101.v201003031407.zip

http://dl.google.com/eclipse/plugin/3.3/zips/com.google.gdt.eclipse.suite.e33.feature_1.2.101.v201003031407.zip

Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools (WST) installed before installing the plugin. WST can be installed by navigating to the Software Installation section, and selecting the the appropriate WST feature from the update site for your version of Eclipse. The update sites and feature names are provided below:

  • 3.5 (Galileo): Galileo > Web, XML, and Java EE Development > Eclipse Web Developer Tools
  • 3.4 (Ganymede): Ganymede Update Site > Web and Java EE Development > Web Developer Tools
  • 3.3 (Europa): Europa Discovery Site > Web and JEE Development > Web Standard Tools Project

This is a preview build, so the usual caveats and warnings apply: it is not officially supported, and we recommend using a clean installation of Eclipse and a new workspace. Also, we're distributing this preview as a zip file so be sure to follow the instructions on our Installing the Google Plugin for Eclipse from zip files page (http://code.google.com/eclipse/docs/install-from-zip.html).

Known Issues

  • If you change launch configuration settings in the Server or GWT tab, you'll need to switch to the Arguments tab before clicking Apply or Run/Debug.  This will be fixed in the final release.

That being said, we are very interested in your experience with this new release, which we hope will allow the Google plugin to interoperate much better with alternative project structures and third-party tools. The tentative 1.3 release notes are as follows:

Enhancements

  • Configurable WAR directory to allow better integration with Eclipse for Java EE and projects built with Maven
  • Web Application launch configurations now display and allow editing of generated Program and VM arguments
  • Errors/Warnings preference page for customizing the severity of any generated problem marker
  • Projects can reference GWT/App Engine SDKs directly via JARs instead of through SDK library
  • GWT+App Engine projects automatically configured for optimal caching

Fixes

  • GWT Issue 3583: Google Eclipse Plugin configuration is too strict
  • GWT Issue 3592: Eclipse plugin to add 'cache forever' configuration for new 'GWT + App Engine' projects
  • GWT Issue 3902: Allow users to configure the severity of problems reported by the eclipse plugin
  • App Engine Issue 1515: Eclipse plugin requires fixed location for war directory
  • App Engine Issue 2115: Using the @PersistenceAware annotation puts the Eclipse Enhancer in an Infinite Loop
  • App Engine Issue 1941: Plugin fails to enhance dependent classes on source level changes

For a complete list of fixed issues, see the GWT issue tracker and App Engine issue tracker.

We encourage all interested developers to take the preview build for a spin, and let us know what you think. We'll do everything possible to incorporate your feedback before the final release, slated for later this month. Thanks!

Keith, on behalf of the Google Plugin for Eclipse team 

Keith Platfoot

unread,
Mar 4, 2010, 11:40:19 AM3/4/10
to google-we...@googlegroups.com
Hey again,

Just wanted to mention that to actually customize your project's WAR directory (enhancement bullet 1 in the announcement email), you'll need to navigate to Google > Web Application in your project properties dialog.  You can use any project-relative path as the WAR directory (e.g. src/main/webapp) and you can also use the checkbox below to toggle whether or not you want to launch and deploy from that directory, by default.  If you uncheck that option, Eclipse will prompt you for a location the first time you launch your project, and will not mess with the JARs in <WAR>/WEB-INF/lib or try to move your build output directory to <WAR>/WEB-INF/classes.  You can think of the checkbox as the Keep your hands off my runtime WAR directory! option. :-)

If anyone runs into issues or has questions about any of the new features, don't hesitate to ask.  Thanks!

Keith

Fabio Kaminski

unread,
Mar 4, 2010, 12:14:33 PM3/4/10
to google-we...@googlegroups.com
any workarounds for eclipse 64 bit on linux?

or there is some hack in eclipse to work smoothly with it..

im still doing things by hand..

Thanks

Fabio Kaminski

--
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.

Keith Platfoot

unread,
Mar 4, 2010, 1:49:30 PM3/4/10
to google-we...@googlegroups.com
Hi Fabio,

What's your specific issue with Eclipse on 64-bit Linux?  We've tested the 1.3 plugin on 64-bit versions of all 3 versions of Eclipse (3.3, 3.4, 3.5) and did not encounter any problems.

If you can provide a few details, we'll see if we can work out a resolution for you.

Keith

Fabio Kaminski

unread,
Mar 4, 2010, 3:59:17 PM3/4/10
to google-we...@googlegroups.com
Hi Keith,

my version is Galileo 3.5.1 64 on fedora linux
with all WST plugins installed and recent updates..

the google plugin never worked for me on this platform (no Google menu on windows > preferences, no GWT project wizard and buttons available)

i even try your last patch .. unziping in the eclipse folder...
and after update google plugin using the "install new software"
everything went fine.. and eclipse detects plugin installed sucesfully..

i thought this was normal with this version.. so i give up of the plugins and do things manually(a lot of hacks :s)..

but i guess i can have some hope now :)

Thanks

bkbonner

unread,
Mar 4, 2010, 8:24:48 PM3/4/10
to Google Web Toolkit
I'm trying to get the old version uninstalled from the Spring Tool
Suite but it's not cooperating. I'll pull down a new eclipse ganymede
build and try it there.

Brian

On Mar 3, 7:25 pm, Keith Platfoot <kplatf...@google.com> wrote:
> Hi everyone,
>
> Last month, I announced some of the changes we had planned for the 1.3
> version of the Google Plugin for Eclipse. To recap, this release is focused
> on making life easier for developers using GWT/App Engine alongside
> third-party tools, including Maven and Eclipse for Java EE. In my post, I
> promised we'd let you download a preview of 1.3 to get some hands-on testing
> of the new features and provide us with your feedback before the official
> release.
>
> I'm happy to announce that the time has come. An early preview of 1.3 is now
> available for download at the following URLs:
>

> http://dl.google.com/eclipse/plugin/3.5/zips/com.google.gdt.eclipse.s...
>
> http://dl.google.com/eclipse/plugin/3.4/zips/com.google.gdt.eclipse.s...
>
> http://dl.google.com/eclipse/plugin/3.3/zips/com.google.gdt.eclipse.s...


>
> Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
> (WST) installed before installing the plugin. WST can be installed by
> navigating to the Software Installation section, and selecting the the
> appropriate WST feature from the update site for your version of Eclipse.
> The update sites and feature names are provided below:
>

>    - 3.5 (Galileo): Galileo > Web, XML, and Java EE Development > Eclipse
>    Web Developer Tools
>    - 3.4 (Ganymede): Ganymede Update Site > Web and Java EE Development >
>    Web Developer Tools
>    - 3.3 (Europa): Europa Discovery Site > Web and JEE Development > Web


>    Standard Tools Project
>
> This is a preview build, so the usual caveats and warnings apply: it is not
> officially supported, and we recommend using a clean installation of Eclipse
> and a new workspace. Also, we're distributing this preview as a zip file so
> be sure to follow the instructions on our Installing the Google Plugin for
> Eclipse from zip files page (http://code.google.com/eclipse/docs/install-from-zip.html).
>

> *Known Issues*
>
>    - If you change launch configuration settings in the Server or GWT tab,


>    you'll need to switch to the Arguments tab before clicking Apply or
>    Run/Debug.  This will be fixed in the final release.
>
> That being said, we are very interested in your experience with this new
> release, which we hope will allow the Google plugin to interoperate much
> better with alternative project structures and third-party tools. The
> tentative 1.3 release notes are as follows:
>
> Enhancements
>

>    - Configurable WAR directory to allow better integration with Eclipse for
>    Java EE <http://www.eclipse.org/downloads/moreinfo/jee.php> and projects
>    built with Maven <http://maven.apache.org/>
>    - Web Application launch configurations now display and allow editing of


>    generated Program and VM arguments

>    - Errors/Warnings preference page for customizing the severity of any
>    generated problem marker
>    - Projects can reference GWT/App Engine SDKs directly via JARs instead of
>    through SDK library
>    - GWT+App Engine projects automatically configured for optimal caching
>
> Fixes
>
>    - GWT Issue 3583<http://code.google.com/p/google-web-toolkit/issues/detail?id=3583>:


>    Google Eclipse Plugin configuration is too strict

>    - GWT Issue 3592<http://code.google.com/p/google-web-toolkit/issues/detail?id=3592>:


>    Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
>    Engine' projects

>    - GWT Issue 3902<http://code.google.com/p/google-web-toolkit/issues/detail?id=3902>:


>    Allow users to configure the severity of problems reported by the eclipse
>    plugin

>    - App Engine Issue
> 1515<http://code.google.com/p/googleappengine/issues/detail?id=1515>:


>    Eclipse plugin requires fixed location for war directory

>    - App Engine Issue
> 2115<http://code.google.com/p/googleappengine/issues/detail?id=2115>:


>    Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
>    Infinite Loop

>    - App Engine Issue
> 1941<http://code.google.com/p/googleappengine/issues/detail?id=1941>:


>    Plugin fails to enhance dependent classes on source level changes
>
> For a complete list of fixed issues, see the GWT issue

> tracker<http://code.google.com/p/google-web-toolkit/issues/list?can=1&q=label...>
>  and App Engine issue
> tracker<http://code.google.com/p/googleappengine/issues/list?can=1&q=label:GP...>

olivier nouguier

unread,
Mar 5, 2010, 9:03:52 AM3/5/10
to google-we...@googlegroups.com
hi keith,

 And thx you all for the new upcoming release !
 No new issues with this release (eclipse 3.5.1 + maven + sts + aspectj + wtp).
 
* Same classloader (than GEP 1.2) issues with spring namespace handler in dev mode.

* I cannot figure out how to work with wtp (noserver mode). For the moment I have to manually modify the wtp manifest to publish the GWT resources (compiled js img).

* What is the state of support for the "input only" assumption for maven src/main/webapp  ?

Since the beginning (before the first GEP release) I working with the noserver mode without blocking issues with maven.

IMHO The only missing killing feature  would be a facet (wtp) to be able to detect and publish the GWT module to WTP deployement.

Thx again.




--
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.



--
A coward is incapable of exhibiting love; it is the prerogative of the brave.
--
Mohandas Gandhi

Keith Platfoot

unread,
Mar 8, 2010, 2:48:01 PM3/8/10
to google-we...@googlegroups.com
Hi Fabio,

I'm not sure you're following the instructions for installing the plugin from a zip file.  You should be extracting the contents of the zip into the <eclipse>/dropins folder (if it doesn't already exists, go ahead and create it).  Also, you should not need to use Eclipse "Install new software" dialog at all... plugins in /dropins are registered automatically, without any UI interaction on your part.

Try following these instructions for installing from zip files:


Hope this helps,

Keith

Keith Platfoot

unread,
Mar 8, 2010, 4:06:16 PM3/8/10
to google-we...@googlegroups.com
Hi Olivier,

Thanks for your feedback/questions.  My responses are inline.

Keith

On Fri, Mar 5, 2010 at 9:03 AM, olivier nouguier <olivier....@gmail.com> wrote:
hi keith,

 And thx you all for the new upcoming release !
 No new issues with this release (eclipse 3.5.1 + maven + sts + aspectj + wtp).
 
* Same classloader (than GEP 1.2) issues with spring namespace handler in dev mode.

I'm not familiar with this problem.  Is there a bug on the GWT issue tracker I can review to get more details?
 

* I cannot figure out how to work with wtp (noserver mode). For the moment I have to manually modify the wtp manifest to publish the GWT resources (compiled js img).

Could you elaborate a bit more on this?  I'm able to run Web Application launches with -noserver on Eclipse/J2EE (my project is being published to a Tomcat instance) without any issues.  You shouldn't need to worry about the GWT-compiled JavaScript if you're just running hosted/dev mode.

At deploy time, you can use the GWT Compile button on the toolbar and specify your project's WebContent directory, so that the compiled JavaScript is included in your WAR file.
 

* What is the state of support for the "input only" assumption for maven src/main/webapp  ?

It is now possible for src/main/webapp to be treated as input-only.  In project properties > Google > Web Application, you'll notice that below the "WAR directory" field, there is now a checkbox labeled "Launch and deploy from this directory."  If you uncheck that box, the plugin will treat the directory as input-only.  This means:
  • You'll have to tell us where to launch/deploy from since presumably you have a separate runtime WAR directory
  • We will not try to validate or manage the contents of /WEB-INF/lib or /WEB-INF/classes.  It will be up to you or your IDE/framework to ensure that your JARs and class files are located in your "real" WAR directory when you launch or deploy.
 

Since the beginning (before the first GEP release) I working with the noserver mode without blocking issues with maven.

IMHO The only missing killing feature  would be a facet (wtp) to be able to detect and publish the GWT module to WTP deployement.

Not quite sure what you mean by publishing GWT modules to WTP deployment.  Are you referring to the compiled JavaScript produced by the GWT compiler?
 

Thx again.


Thank you for the feedback!

olivier nouguier

unread,
Mar 9, 2010, 4:50:34 AM3/9/10
to google-we...@googlegroups.com
Hi Keith

On Mon, Mar 8, 2010 at 10:06 PM, Keith Platfoot <kpla...@google.com> wrote:
Hi Olivier,

 No new issues with this release (eclipse 3.5.1 + maven + sts + aspectj + wtp).
 
* Same classloader (than GEP 1.2) issues with spring namespace handler in dev mode.

I'm not familiar with this problem.  Is there a bug on the GWT issue tracker I can review to get more details?
 
 With a sample project.
Tell me if you cannot reproduce the issue.
HIH

Fabio Kaminski

unread,
Mar 9, 2010, 2:57:38 PM3/9/10
to google-we...@googlegroups.com
Ok Keith!

I did the installation extracting de zip contents in the dropins folder of eclipse...
in fact i install a newer version of eclipse 3.5 , the 20100218-1602 build for java EE

it includes WST plugins already... and after extract the file.. looking in the details..
in the installed plugins .. it lists the google plugin
...as its has been installed successfully..

but i cant see a thing,.. there'is is other plugins dependencies??

im working on an ubuntu linux 64.. (the last one was fedora :))

one more thing.. i have unistalled all google plugins that was installed before..
and just then, extract the contents of the plugin snapshot you pointed out..

im pretty fine creating projects and tunning things "at hand" ... but if it works.. it will be a welcome and handy feature..

thanks for your attention,

Fabio Kaminski

--

andreas

unread,
Mar 12, 2010, 8:19:54 AM3/12/10
to Google Web Toolkit
Hi Keith,

we are happy to test the preview version.

We are using Maven and the gwt-maven-project layout for our projects.
We loved the dependency management and also clear code structure
coming along with Maven but ran in the same problem mentioned a lot
before: we could not get Google Eclipse Plugin run with our projects.

The first workaround was to use the gwt:run goal, which actually works
fine and forget about GEP.

Now I still wanted to find out if we can use that nice web application
run configuration of GEP again with the preview release. So I
installed it and set the "war/" folder to "src/main/webapp" and tried
to run our project as a web application.

It did not work and we got the error "project may need to be
(re)compiled". I figured out that the launch configuration was missing
all the generated js-files. When they are located in "src/main/webapp"
it launches the web application, but apparently using the generated js-
files. No changes to the java code are reflected upon refresh.

Am I missing something in the setup process of the GEP preview
version?

On 4 Mrz., 01:25, Keith Platfoot <kplatf...@google.com> wrote:
> Hi everyone,
>
> Last month, I announced some of the changes we had planned for the 1.3
> version of the Google Plugin for Eclipse. To recap, this release is focused
> on making life easier for developers using GWT/App Engine alongside
> third-party tools, including Maven and Eclipse for Java EE. In my post, I
> promised we'd let you download a preview of 1.3 to get some hands-on testing
> of the new features and provide us with your feedback before the official
> release.
>
> I'm happy to announce that the time has come. An early preview of 1.3 is now
> available for download at the following URLs:
>

> Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
> (WST) installed before installing the plugin. WST can be installed by
> navigating to the Software Installation section, and selecting the the
> appropriate WST feature from the update site for your version of Eclipse.
> The update sites and feature names are provided below:
>

>    - 3.5 (Galileo): Galileo > Web, XML, and Java EE Development > Eclipse
>    Web Developer Tools
>    - 3.4 (Ganymede): Ganymede Update Site > Web and Java EE Development >
>    Web Developer Tools
>    - 3.3 (Europa): Europa Discovery Site > Web and JEE Development > Web


>    Standard Tools Project
>
> This is a preview build, so the usual caveats and warnings apply: it is not
> officially supported, and we recommend using a clean installation of Eclipse
> and a new workspace. Also, we're distributing this preview as a zip file so
> be sure to follow the instructions on our Installing the Google Plugin for
> Eclipse from zip files page (http://code.google.com/eclipse/docs/install-from-zip.html).
>

> *Known Issues*
>
>    - If you change launch configuration settings in the Server or GWT tab,


>    you'll need to switch to the Arguments tab before clicking Apply or
>    Run/Debug.  This will be fixed in the final release.
>
> That being said, we are very interested in your experience with this new
> release, which we hope will allow the Google plugin to interoperate much
> better with alternative project structures and third-party tools. The
> tentative 1.3 release notes are as follows:
>
> Enhancements
>

>    - Configurable WAR directory to allow better integration with Eclipse for
>    Java EE <http://www.eclipse.org/downloads/moreinfo/jee.php> and projects
>    built with Maven <http://maven.apache.org/>
>    - Web Application launch configurations now display and allow editing of


>    generated Program and VM arguments

>    - Errors/Warnings preference page for customizing the severity of any
>    generated problem marker
>    - Projects can reference GWT/App Engine SDKs directly via JARs instead of
>    through SDK library
>    - GWT+App Engine projects automatically configured for optimal caching
>
> Fixes
>

>    Google Eclipse Plugin configuration is too strict

>    Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
>    Engine' projects

>    Allow users to configure the severity of problems reported by the eclipse
>    plugin

>    Eclipse plugin requires fixed location for war directory

>    Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
>    Infinite Loop

>    Plugin fails to enhance dependent classes on source level changes
>
> For a complete list of fixed issues, see the GWT issue

Keith Platfoot

unread,
Mar 12, 2010, 12:15:46 PM3/12/10
to google-we...@googlegroups.com
Hi Andreas,

Hm, not sure why you're seeing that error.  Let me ask a few questions to see if we can get to the bottom of this.

1. You set the WAR directory to 'src/main/webapp' via the Google > Web Application project properties page, right?  Did you also uncheck the box below that says 'Launch and deploy from this directory'?  This is necessary because the 'src/main/webapp' directory is not a complete WAR directory (WEB-INF/lib and WEB-INF/classes are empty, etc.).

2. Are you launching the project using the regular Run/Debug As > Web Application shortcut?  Did you make sure to first delete any other Web Application launch configurations associated with the project?

3. When you launch, you should be prompted to select the runtime WAR directory.  Unless you're also using Eclipse for Java EE, you'll probably want to first do a 'mvn clean package' and then select the exploded WAR in '/target/<AppName>-<version>' as your runtime WAR.

4. When you launch, are you seeing the Development Mode view appear at the bottom of your workspace, with a URL to open in your browser?  Does the URL have a ?gwt.codesvr=x.x.x.x:9997 at the end?  Does your web browser have the GWT Development Mode plugin installed? (the browser should load a page to prompt you if it's not installed).

5. After you launch, what are the arguments in the generated launch configuration?  One of the features of 1.3 is the ability to inspect/tweak the arguments via the regular Arguments tab in the launch configuration dialog.  Let me know what your exact argument set is.

Also: to see code changes reflected when you hit refresh, you'll need to get the class files into your runtime WAR directory.  One simple way to do this is by changing your build output path (probably just for src/main/java and src/main/resources) to the WEB-INF/classes directory in your runtime WAR.  This works, but it is a bit hacky.

Alternatively, you can convert your project into a Dynamic Web Project in Eclipse for Java EE, which provides automatic refresh-on-change behavior out of the box.  It also creates a staging WAR directory by default so you don't have to use the exploded WAR under /target.  If you're interested in this approach, I can send you detailed instructions (which will also appear in our FAQs after 1.3 launch).

Keith

andreas

unread,
Mar 14, 2010, 2:03:07 PM3/14/10
to Google Web Toolkit
Hey Keith,

thanks for this detailed information. I just went through and followed
them step by step.

I started by creating a new maven project using gwt-maven archetype. I
changed its pom.xml to use current versions of GWT 2.0.3 and Java 6.
Then I enabled the GEP.

1. Set the war directoy as you said. When I first tried, I forgot to
uncheck the "launch" checkbox but did it this time.

2. Did not have to delete old launch configurations since this is a
new project. Created one by launching it via "Run As.." -> "Web
Application" from GEP

3. I use Eclipse EE. On that first launch, I pointed the runtime WAR
directory to the folder under "target" you mentioned. One thing I did
not clearly understand: you said "unless you're also using Eclipse
EE..."; well I do so where else should or could the runtime WAR
directory point to? I also did a 'mvn clean package'.

4. Yes, yes and yes. The web application is displayed in the browser
as expected.

5. Programm args:
-remoteUI ${gwt_remote_ui_server_port}:${unique_id} -startupUrl
index.html -logLevel INFO -port 8888 -war /home/ahorst/workspace/
GWTEntryApp/target/GWTEntryApp-0.0.1-SNAPSHOT
de.se.proced.GWTEntryApp.Application

VM args:
-Xmx512m

Working directory:
/GWTEntryApp/target/GWTEntryApp-0.0.1-SNAPSHOT

So far it all worked. Unfortunately the "refresh" code changes does
not work. I set output folders of src/main/java and src/main/resources
to the WEB-INF/classes inside the working directory. Did this through
the build path configuration.

Code changes are not reflected upon refresh; neither in the browser
(F5) or by restarting the server in the Development view.

Nevertheless when I launch the gwt:run goal, it works.

Could it be a gwt-maven property that stops "refresh" code changes?
Besides the GWT and Java version I did not change anything. I guess I
have to stick to the gwt-maven docs to find out if the exploded WAR is
not set properly.

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>

Keith Platfoot

unread,
Mar 15, 2010, 2:27:08 PM3/15/10
to google-we...@googlegroups.com
Hi Andreas,

It looks like you're following the correct procedure, and you indicated that you were able to load the application in devmode, but you're not seeing code changes reflected when you Refresh the browser.  It might help if I explain briefly how changes are supposed to be reflected, and suggest a few ideas for things to check if refresh is not working:

- Client-side code changes should always be reflected when you click Refresh in your browser during a devmode session, regardless of your source folders' build output paths.  This is because GWT devmode is actually using your .java source files, not the compiled .class files.  Double-check in your launch configuration's Classpath tab that your source folders appear at the top of the User Entries section.  If your gwt:run goal does correctly reflect code changes in devmode when you Refresh, it would be useful to compare the devmode process arguments in that case to the devmode process created by the Eclipse launch configuration (you can find the arguments in Eclipse by right-click > Properties the "java" process in the stacktrace view in the Debug perspective).  Let me know if there are differences between the two sets of arguments.

- Server-side code changes will only be reflected if the compiled .class files are propagated to your runtime WAR directory's WEB-INF/classes directory.  As you mentioned, one way to do this is to set your source folders' build output paths to your runtime WAR directory's WEB-INF/classes directory.  Of course, Eclipse must also be configured to build automatically (Project > Build Automatically).  If server-side code refresh is still not working, you might try making a change, and then manually verifying that the runtime WAR directory is getting the new .class file in WEB-INF/classes.

- Changes to your HTML/CSS/other static resources will need to be mirrored in your runtime WAR directory (similar to server-side code changes).  I'm not aware of any out-of-the-box solution for this if you're using a standard Eclipse distribution (Eclipse Classic or Eclipse for Java developers).  You'll need to stop devmode, do another 'mvn clean package', and then launch devmode again.  However, if you're using Eclipse for Java EE, there is a way to configure it to automatically push WAR resource changes while devmode is running (this should answer your question in your #3 step).

Basically, you start by converting your project into a Dynamic Web Project.  I don't know if you can automatically  migrate an existing project, but it should be possible to create a new Dynamic Web Project and then simply import your original project's source folders and build path entries.  Next, you'll need to configure the Eclipse project to use 'src/main/webapp' as your WAR directory instead of 'WebContent' (Eclipse default).  Close Eclipse and edit the file at: <project root>/.settings/org.eclipse.wst.common.component.  Find the <wb-resource> element with a 'source-path' attribute of '/WebContent'.  Change the attribute value to '/src/main/webapp', save the file, and re-open Eclipse.  Now, when you start the project's configured server (Tomcat, Jetty, etc... define a server in the Servers view), Eclipse will automatically propagate changes in your source code and static resource files to your runtime WAR directory.  However, in Eclipse for Java EE, this runtime WAR directory will not be 'target/<exploded WAR>'.  Eclipse will instead create a staging directory in a temporary location (by default, <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<project>) and this is the WAR directory you'll need to select when launching the Web Application launch configuration.  One more note: Eclipse for Java EE will also automatically push your updated .class files into <WAR>/WEB-INF/classes, so no need to manually change your source folders' build output paths.

Does that all make sense?  At launch, we'll be adding a couple new FAQ entries to our documentation to explain the process of using the Google plugin with Maven, with Eclipse for Java EE, and with both at once.  Hopefully my instructions here will suffice in the meanwhile.  Let me know if you need any further explanation or assistance.

Keith

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

Keith Platfoot

unread,
Mar 15, 2010, 4:05:44 PM3/15/10
to google-we...@googlegroups.com
@Andreas: Forgot to mention that if you're not using Eclipse for Java EE, when you make changes to server-side code, you will also need to restart GWT embedded Jetty instance.  For GWT 2.0+, click the Restart Server button in the Development Mode view, or for older versions of GWT, the Reload Server button on the Hosted Mode shell toolbar.

Keith

bkbonner

unread,
Mar 15, 2010, 4:40:59 PM3/15/10
to Google Web Toolkit
Hey, is anyone else using the GEP Preview seeing the same problem as
the one I logged in issue 4745?
http://code.google.com/p/google-web-toolkit/issues/detail?id=4745

I have a wtpTest project that can be pulled into Eclipse for Java EE.

Just download wtpTest.zip, import the existing project (and choose the
archive). Then run the server in tomcat and set the launch config to
NOT launch the local server. I keep getting Illegal Constant Pool
errors.

Brian

On Mar 15, 4:05 pm, Keith Platfoot <kplatf...@google.com> wrote:
> @Andreas: Forgot to mention that if you're *not* using Eclipse for Java


> EE, when you make changes to server-side code, you will also need to restart
> GWT embedded Jetty instance.  For GWT 2.0+, click the Restart Server button
> in the Development Mode view, or for older versions of GWT, the Reload
> Server button on the Hosted Mode shell toolbar.
>
> Keith
>

> On Mon, Mar 15, 2010 at 2:27 PM, Keith Platfoot <kplatf...@google.com>wrote:
>
> > Hi Andreas,
>
> > It looks like you're following the correct procedure, and you indicated
> > that you were able to load the application in devmode, but you're not seeing
> > code changes reflected when you Refresh the browser.  It might help if I

> > explain briefly how changes are *supposed* to be reflected, and suggest a


> > few ideas for things to check if refresh is not working:
>

> > - Client-side code changes should *always* be reflected when you click


> > Refresh in your browser during a devmode session, regardless of your source
> > folders' build output paths.  This is because GWT devmode is actually using
> > your .java source files, not the compiled .class files.  Double-check in
> > your launch configuration's Classpath tab that your source folders appear at

> > the top of the User Entries section.  If your gwt:run goal *does*correctly reflect code changes in devmode when you Refresh, it would be

> > *not* be 'target/<exploded WAR>'.  Eclipse will instead create a staging


> > directory in a temporary location (by default,
> > <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<project>)

> > and *this* is the WAR directory you'll need to select when launching the


> > Web Application launch configuration.  One more note: Eclipse for Java EE
> > will also automatically push your updated .class files into
> > <WAR>/WEB-INF/classes, so no need to manually change your source folders'
> > build output paths.
>
> > Does that all make sense?  At launch, we'll be adding a couple new FAQ
> > entries to our documentation to explain the process of using the Google
> > plugin with Maven, with Eclipse for Java EE, and with both at once.
> >  Hopefully my instructions here will suffice in the meanwhile.  Let me know
> > if you need any further explanation or assistance.
>
> > Keith
>

> ...
>
> read more »

andreas

unread,
Mar 16, 2010, 6:41:14 AM3/16/10
to Google Web Toolkit
Hey Keith,

thank you very much for all the details. For now we actually decided
to stick with the goals provided by gwt-maven, so I'm sorry I did not
check your points by now. I'll create a new project and check your
advices, especially the correct source folders in the GEP launch
config, which actually was the only thing I did not look after.

I'll drop in a message soon.

Andreas

On 15 Mrz., 21:05, Keith Platfoot <kplatf...@google.com> wrote:
> @Andreas: Forgot to mention that if you're *not* using Eclipse for Java


> EE, when you make changes to server-side code, you will also need to restart
> GWT embedded Jetty instance.  For GWT 2.0+, click the Restart Server button
> in the Development Mode view, or for older versions of GWT, the Reload
> Server button on the Hosted Mode shell toolbar.
>
> Keith
>

> On Mon, Mar 15, 2010 at 2:27 PM, Keith Platfoot <kplatf...@google.com>wrote:
>
> > Hi Andreas,
>
> > It looks like you're following the correct procedure, and you indicated
> > that you were able to load the application in devmode, but you're not seeing
> > code changes reflected when you Refresh the browser.  It might help if I

> > explain briefly how changes are *supposed* to be reflected, and suggest a


> > few ideas for things to check if refresh is not working:
>

> > - Client-side code changes should *always* be reflected when you click


> > Refresh in your browser during a devmode session, regardless of your source
> > folders' build output paths.  This is because GWT devmode is actually using
> > your .java source files, not the compiled .class files.  Double-check in
> > your launch configuration's Classpath tab that your source folders appear at

> > the top of the User Entries section.  If your gwt:run goal *does*correctly reflect code changes in devmode when you Refresh, it would be

> > *not* be 'target/<exploded WAR>'.  Eclipse will instead create a staging


> > directory in a temporary location (by default,
> > <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<project>)

> > and *this* is the WAR directory you'll need to select when launching the


> > Web Application launch configuration.  One more note: Eclipse for Java EE
> > will also automatically push your updated .class files into
> > <WAR>/WEB-INF/classes, so no need to manually change your source folders'
> > build output paths.
>
> > Does that all make sense?  At launch, we'll be adding a couple new FAQ
> > entries to our documentation to explain the process of using the Google
> > plugin with Maven, with Eclipse for Java EE, and with both at once.
> >  Hopefully my instructions here will suffice in the meanwhile.  Let me know
> > if you need any further explanation or assistance.
>
> > Keith
>

> ...
>
> Erfahren Sie mehr »

Simon

unread,
Mar 15, 2010, 12:04:45 PM3/15/10
to Google Web Toolkit
Hi Keith,

Thanks for the improvements !! I've got a clean Maven Web project like
I used to work with before trying GWT ! :)

However, Eclipse seems to keep the folder /war and /war/WEB-INF in my
project. Even if I delete it, it keeps appearing. Any clue on this
behaviour ?

Cheers,

Simon

On 4 mar, 01:25, Keith Platfoot <kplatf...@google.com> wrote:
> Hi everyone,
>
> Last month, I announced some of the changes we had planned for the 1.3
> version of the Google Plugin for Eclipse. To recap, this release is focused
> on making life easier for developers using GWT/App Engine alongside
> third-party tools, including Maven and Eclipse for Java EE. In my post, I
> promised we'd let you download a preview of 1.3 to get some hands-on testing
> of the new features and provide us with your feedback before the official
> release.
>
> I'm happy to announce that the time has come. An early preview of 1.3 is now
> available for download at the following URLs:
>

> Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
> (WST) installed before installing the plugin. WST can be installed by
> navigating to the Software Installation section, and selecting the the
> appropriate WST feature from the update site for your version of Eclipse.
> The update sites and feature names are provided below:
>

>    - 3.5 (Galileo): Galileo > Web, XML, and Java EE Development > Eclipse
>    Web Developer Tools
>    - 3.4 (Ganymede): Ganymede Update Site > Web and Java EE Development >
>    Web Developer Tools
>    - 3.3 (Europa): Europa Discovery Site > Web and JEE Development > Web


>    Standard Tools Project
>
> This is a preview build, so the usual caveats and warnings apply: it is not
> officially supported, and we recommend using a clean installation of Eclipse
> and a new workspace. Also, we're distributing this preview as a zip file so
> be sure to follow the instructions on our Installing the Google Plugin for
> Eclipse from zip files page (http://code.google.com/eclipse/docs/install-from-zip.html).
>

> *Known Issues*
>
>    - If you change launch configuration settings in the Server or GWT tab,


>    you'll need to switch to the Arguments tab before clicking Apply or
>    Run/Debug.  This will be fixed in the final release.
>
> That being said, we are very interested in your experience with this new
> release, which we hope will allow the Google plugin to interoperate much
> better with alternative project structures and third-party tools. The
> tentative 1.3 release notes are as follows:
>
> Enhancements
>

>    - Configurable WAR directory to allow better integration with Eclipse for
>    Java EE <http://www.eclipse.org/downloads/moreinfo/jee.php> and projects
>    built with Maven <http://maven.apache.org/>
>    - Web Application launch configurations now display and allow editing of


>    generated Program and VM arguments

>    - Errors/Warnings preference page for customizing the severity of any
>    generated problem marker
>    - Projects can reference GWT/App Engine SDKs directly via JARs instead of
>    through SDK library
>    - GWT+App Engine projects automatically configured for optimal caching
>
> Fixes
>

>    Google Eclipse Plugin configuration is too strict

>    Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
>    Engine' projects

>    Allow users to configure the severity of problems reported by the eclipse
>    plugin

>    Eclipse plugin requires fixed location for war directory

>    Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
>    Infinite Loop

>    Plugin fails to enhance dependent classes on source level changes
>
> For a complete list of fixed issues, see the GWT issue

Simon

unread,
Mar 16, 2010, 10:30:58 AM3/16/10
to Google Web Toolkit
Resolved !

The problem was that the project "Default output folder" was still
pointing to the "/war/WEB-INF/classes" directory instead of "/target/
classes"...

Thanks for the great job anyway ! :)

bkbonner

unread,
Mar 16, 2010, 1:11:57 PM3/16/10
to Google Web Toolkit
I resolved this issue. It turns out that WTP included Tomcat 5.5 as a
runtime dependency (default in the project). When I removed this
dependency, everything started working (i.e. UIBinder stuff).

Woot!

On Mar 15, 4:40 pm, bkbonner <brian.bon...@paraware.com> wrote:
> Hey, is anyone else using the GEP Preview seeing the same problem as

> the one I logged in issue 4745?http://code.google.com/p/google-web-toolkit/issues/detail?id=4745

> ...
>
> read more »

andreas

unread,
Mar 17, 2010, 6:22:04 AM3/17/10
to Google Web Toolkit
Hi Keith,

I'm looking for the classpath settings now. Here's what "mvn gwt:run"
uses:

/bin/sh -c /usr/lib/jvm/java-6-sun-1.6.0.15/jre/bin/java -Xmx512m -
classpath "/home/ahorst/workspace/App/src/main/java":"/home/ahorst/
workspace/App/src/main/resources":"/home/ahorst/workspace/App/war/WEB-
INF/classes":"/home/ahorst/.m2/repository/com/google/gwt/gwt-servlet/
2.0.3/gwt-servlet-2.0.3.jar":"/home/ahorst/.m2/repository/com/google/
gwt/gwt-user/2.0.3/gwt-user-2.0.3.jar":"/home/ahorst/.m2/repository/
com/google/gwt/gwt-dev/2.0.3/gwt-dev-2.0.3.jar"
com.google.gwt.dev.DevMode -war "/home/ahorst/workspace/App/war" -gen
"/home/ahorst/workspace/App/target/.generated" -logLevel INFO -port
8888 -startupUrl "com.my.example.App.Application/Application.html"
com.my.example.App.Application

While the run configuration of GEP lists the following entries:

- Bootstrap Entries
- JRE System Library [JavaSE-1.6]
- User Entries
- java - /App/src/main/
- resources - /App/src/main/
- java - /App/src/test/
- App (default classpath)
- App
- Maven Dependencies
- GWT SDK [GWT - 2.0.3]

The java source folder is the first entry, but no code changes
reflected on refresh with the GEP run configuration. "mvn gwt:run"
though does it. Are the Bootstrap Entries conflicting here?

On 15 Mrz., 21:05, Keith Platfoot <kplatf...@google.com> wrote:

> @Andreas: Forgot to mention that if you're *not* using Eclipse for Java


> EE, when you make changes to server-side code, you will also need to restart
> GWT embedded Jetty instance.  For GWT 2.0+, click the Restart Server button
> in the Development Mode view, or for older versions of GWT, the Reload
> Server button on the Hosted Mode shell toolbar.
>
> Keith
>

> On Mon, Mar 15, 2010 at 2:27 PM, Keith Platfoot <kplatf...@google.com>wrote:
>
> > Hi Andreas,
>
> > It looks like you're following the correct procedure, and you indicated
> > that you were able to load the application in devmode, but you're not seeing
> > code changes reflected when you Refresh the browser.  It might help if I

> > explain briefly how changes are *supposed* to be reflected, and suggest a


> > few ideas for things to check if refresh is not working:
>

> > - Client-side code changes should *always* be reflected when you click


> > Refresh in your browser during a devmode session, regardless of your source
> > folders' build output paths.  This is because GWT devmode is actually using
> > your .java source files, not the compiled .class files.  Double-check in
> > your launch configuration's Classpath tab that your source folders appear at

> > the top of the User Entries section.  If your gwt:run goal *does*correctly reflect code changes in devmode when you Refresh, it would be

> > *not* be 'target/<exploded WAR>'.  Eclipse will instead create a staging


> > directory in a temporary location (by default,
> > <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<project>)

> > and *this* is the WAR directory you'll need to select when launching the


> > Web Application launch configuration.  One more note: Eclipse for Java EE
> > will also automatically push your updated .class files into
> > <WAR>/WEB-INF/classes, so no need to manually change your source folders'
> > build output paths.
>
> > Does that all make sense?  At launch, we'll be adding a couple new FAQ
> > entries to our documentation to explain the process of using the Google
> > plugin with Maven, with Eclipse for Java EE, and with both at once.
> >  Hopefully my instructions here will suffice in the meanwhile.  Let me know
> > if you need any further explanation or assistance.
>
> > Keith
>

> ...
>
> Erfahren Sie mehr »

Keith Platfoot

unread,
Mar 18, 2010, 11:44:58 AM3/18/10
to google-we...@googlegroups.com
Hi Andreas,

It looks like your GEP classpath is ok based on the contents of the Classpath tab, but it would actually be more useful to look at the exact launch arguments, to see if there are differences between that and "mvn gwt:run".  When you launch using GEP, switch to the Debug perspective and right-click the appropriate java process in the Debug view (it's the one where stack traces show up while at a breakpoint).  Select Properties from the context menu, and you should see the full argument list in the dialog that appears.  Compare that to the command used by "mvn gwt:run".

Also, just to verify, when you are make code changes, are you changing the source code for client-side code only (code accessible from a GWT module entrypoint)?  Note that if you change any server-side code or static resources, you'll have to perform additional configuration unless you're using a Dynamic Web project in Eclipse for Java EE.

You may want to check out the new FAQ on GEP + Maven (+ Eclipse for Java EE, optionally):


It contains better instructions for enabling refresh for client-side code/server-side code/static resources than my previous message.

Keith


--

SimonM

unread,
Mar 17, 2010, 1:45:17 PM3/17/10
to Google Web Toolkit
I got it working (Eclipse 3.5, WTP 3.1, GPE 1.3) and it's working fine
except two things.

- I deploy onTomcat, and the devmode tells me to use a bad url :
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997, while it
should be http://127.0.0.1:8080/test/index.html?gwt.codesvr=127.0.0.1:9997

- when I load the webpage or refresh it, I got a ton of error messages
like this one :
18:46:54.380 [ERROR] [openpronos] Errors in 'file:/C:/OP/workspace/
test-core/src/main/java/org/zanton/test/business/
ClassementService.java'
18:46:54.450 [ERROR] [openpronos] Line 12: No source code is
available for type org.zanton.test.exception.EmptyPronosticException;
did you forget to inherit a required module?

It doesn't prevent the page from correctly loading but it's strange. I
looked at the launch configuration, and the sources are in the
Classpath and Source tabs.


Thanks for helping.

On 17 mar, 11:22, andreas <horst.andrea...@googlemail.com> wrote:
> Hi Keith,
>

> ...
>
> plus de détails »

Reply all
Reply to author
Forward
0 new messages