Sounds like you missed to apply property to the InitialContext
i.e. Context initCtx = new InitialContext(env);
or this is a slieght typing error here, double check if the factory
full descriptive name is mapped to the JNDI name URL in deplyment
desciptor.