Update for glassfish4 and java