Fixed JDNI for server and local deployment