Forum Moderators: phranque

Message Too Old, No Replies

Changing Security Settings in Tomcat

         

venky_nk

1:10 pm on Aug 8, 2005 (gmt 0)

10+ Year Member



We have written a servlet filter which tries to read the context path of the current app. and return the same to another application.

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?