Category Archives: Java & Co.

GWT 2.6.1 release coming soon!

The GWT team recently published it’s second release candidate for the 2.6.1 version. The gwt maven plugin project kept up and published RC releases as well.

The GWT RC2 can be downloaded directly from the following URL, and through the maven central repository.

http://storage.googleapis.com/gwt-releases/gwt-2.6.1-rc2.zip

Unfortunately, I could not find any release notes at the gwtproject.org site (as it did for past RC versions). That is why I am publishing the changes/ fixes since release 2.6.0 here:

  1. 39c29e0  Workaround for webapp classloader regression in DevMode by Thomas Broyer – 3 weeks ago
  2. b3ab3b7  No longer reference SVN in modules generated by WebAppCreator by Thomas Broyer – 7 days ago
  3. 6e233ec  Added suppress warnings for DOMImplStandard#dispatchEvent* by Goktug Gokdogan – 9 days ago
  4. b936d92  Fix non determinism in code generation. by Roberto Lublinerman – 3 months ago 2.6.1-rc1
  5. b106664  Restore support for derived DataResource in @url CSS extensions by Lukas Laag – 4 weeks ago
  6. 2ca906f  Deprecates HttpThrowableReporter in favor of JsonLogRecordClientUtil. by Goktug Gokdogan – 3 weeks ago
  7. 9c9acb6  Fix UnusedImportRemover to traverse package annotations by Thomas Broyer – 3 weeks ago
  8. 5ab60ad  Fixes RichTextArea.Formatter.insertHTML for IE permutation by Goktug Gokdogan – 5 weeks ago
  9. 2734df5  Don’t fail compilation if we can’t emit a private artifact by Thomas Broyer – 4 weeks ago
  10. eccdfb4  Update Guava to 16.0.1 for CDI compatibility by Thomas Broyer – 9 weeks ago
  11. dd26380  Fix inconsistency in MethodInliner. by Roberto Lublinerman – 4 weeks ago
  12. dbf6b1c  Default softPermutationId to 0. by Stephen Haberman – 3 months ago
  13. 7863f3e  Windows compatibility for SuperDevMode by Thomas Broyer – 8 weeks ago
  14. 4298446  NPE in UnusedImportsRemover when processing files without definitions. by Roberto Lublinerman – 3 months ago
  15. eaec824  Strengthen SuperDevMode test in selection script by Thomas Broyer – 9 weeks ago
  16. b5f0284  Fix erroneous boxing of primitive return values by $entry() by Thomas Broyer – 2 months ago
  17. b646c3a  Restores old interface for GWT Designer. by John Stalcup – 3 months ago
  18. 61ed5fd  Fixes regressions in @UiHandler. by Goktug Gokdogan – 3 months ago

GPE, eclipse and maven never ending story. Done.

I don’t know how many times I had to start over and over again, searching for the latest versions, searching for “how to make” the Google Eclipse Plugin, eclipse and maven work together.

The problem is: too many tools that don’t seem to like each other fighting over project layout and classpath. Java EE packaging specs and GWT specialities coming from DevMode don’t really make things easier. If you were not a pro in all of this, you ended up with a mess. I have seen it too often.

Since m2e integration things started getting better. And finally, using recent versions from the following official update sites, it started working flawlessly. Even the DevMode/ classpath issue that made us patch the Jetty launcher past year is solved!

I’ll try to keep this posting here up-to-date, so you won’t have to read through all the docs, tips, tricks comments from here and here again and again.

What you need:

  • m2e – maven integration for eclipse
    http://download.eclipse.org/technology/m2e/releases
  • m2e-wtp – maven Integration for WTP
    http://download.eclipse.org/m2e-wtp/releases/

I am using the latest stable releases from eclipse.org. Well, not always, I am going as stable as possible: the actual wtp integration is still in incubation… but works…

Talking numbers, this are the version numbers I used here:

  • m2e – Maven Integration for Eclipse 1.2.0.20120903-1050
  • m2e-wtp – Maven Integration for WTP (Incubation) 0.16.0.20120914-0945
  • m2e connector for mavenarchiver pom properties 0.15.0.201207090125-signed-201209140800

I have installed a few m2e connectors I required for other non GWT projects, I think they are not needed for a GWT project. Just for the curious:

M2E connectors are a bridge between Maven and Eclipse. When a maven plugin is bound to a lifecycle phase like generate-sources, or process-sources it becomes a part of Eclipse build. (source)

Don’t use the archetype. And if you do, remove the maven-war-plugin plugin. I am using the copyWebapp configuration option in the gwt-maven-plugin to copy the

stuff into the folder used by the DevMode and build system located at 

.

By the way, defaults work fine now, there is no need to setup/ fix the path configs for the plugin anymore. If you use M2E to update the project configuration things will work.

If you are sure your config is right, and you are absolutely sure you have at least the versions mentioned above, try killing your eclipse config with

This will leave you with a completely missconfigured project in eclipse. Let m2e update the project again. Sometimes I get the error that m2e did fail setting up the project description. Ignore it, do it again.

Java 5 – end of service

Schon gelesen?

End of Service Life für Java 5

Die 2004 mit großen Sprachänderungen eingeführte fünfte Java-Version hat letztes Wochenende das sogenannte “End of Service Life” (EOSL) erreicht. Sun empfiehlt, um auch zukünftig kritische Fehlerbehebungen zu erhalten, die Anwendungen entweder auf das neueste Update der Java Standard Edition (Java SE) zu migrieren oder den “Java SE Support for Business” in Anspruch zu nehmen, der bis zu 15 Jahre Gewährleistung für ältere Java-Versionen