Changed @Resource(name = jdbc/contractor) to @Resource(lookup = jdbc/contractor) to satisfy glassfish 4.0