Wednesday, December 23, 2009

hbm2ddl and MySQL

Previously I had a post on using hbm2ddl with Maven and the hibernate3-maven-plugin for Maven. I recently needed to use this setup on MySQL so I have posted my persistence.xml below as a reference.


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">


org.hibernate.ejb.HibernatePersistence











Monday, December 14, 2009

Building gwt-presenter and gwt-dispatch on OS X Leopard

I had been having quite a bit of trouble building and running applications that use gwt-presenter, gwt-dispatch and Google GIN on Leopard 10.5.8 recently. The problem comes from the fact that there is no 32 bits JDK6 available. Upgrading to Snow Leopard would of course fix the issue but here are some steps I've taken to compile and run in GWT hosted mode successfully:

- download gwt-presenter and gwt-dispatch locally
- set the active JDK to JDK6 64 bit
- set the build targets in the PM to JDK 1.5
- build jars and install into the local Maven2 repository
- switch the active JDK to JDK5
- build host project
- should run successfully in GWT hosted browser

Wednesday, December 2, 2009

Running GWT 1.7.1 on Ubuntu 9.10 64 bit

I moved my GWT development environment over to Ubuntu 9.10 64 bit after encountering several problems on OS X. The first hurdle on Ubuntu was this one when running the hosted mode browser. The problem was with a missing .so. This posting helped me solve the issue:

http://hsmak.wordpress.com/2009/12/01/how-to-fix-libstdc5-dependency-problem-in-ubuntu-9-10/

Obtaining Spring 3 Artifacts with Maven

Obtaining Spring 3 Artifacts with Maven: "A recent commentor here ragged, "It's only half of the world that's using Maven", when pointing out it is not obvious how to obtain Spring 3 artifacts with Maven. In this entry, I'll show you how to do this and what the options are. This information will also be integrated into the reference [...]"

Hooray finally. I had so much trouble trying to locate RC2's repository during a recent build and had to give up.

Sunday, November 29, 2009

In the Binary Refinery | ChromeShell

In the Binary Refinery | ChromeShell

Very nice. Looks like a nice thing to install while waiting for ChromeOS.

Thursday, November 26, 2009

GWT 1.7.1 and Safari 4.0.4

Following the advice in http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22 I also installed the latest WebKit build. Since I normally compile and run with Maven from the command line I simply added the following to my .bash_login:


export DYLD_FRAMEWORK_PATH="/Applications/WebKit.app/Contents/Frameworks/10.5

Wednesday, November 25, 2009

GWT and Safari(WebKit) woes

Apparently a recent upgrade to Safari on OS X has broken hosted mode for me. All I can find so far is:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22

I spent quite a bit of time messing with Firefox since I had recently installed 3.6 beta but it seems this is not the issue. I hope to resolve soon.