Ported to netbeans, got running with glassfish
Still a bug in executing queries. ResultSet is null
it works