Getting things to work with glassfish