Forum Moderators: phranque
We have written the following code to get the servlet context.
portalServletContext = config.getServletContext().getContext(portalContextPath);
But it is throwing a null pointer exception, and the sun's java doc says, "In a security conscious environment, the servlet container may return null for a given URL.".(http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getContext(java.lang.String)). We are running the app on Tomcat, windows XP. any idea what is this security conscious means, and is there a way that we change this in Tomcat?