The exception was either thrown from the constructor of javax.naming.InitialContext, or from invoking the lookup method with the value "java:comp/env". The program needs to create the InitialContext object and look up "java:comp/env" in order to access the J2EE environment settings.
Use the text of the exception and the documentation of your J2EE environment to correct the problem.