Peter Chen wrote:
Hi,

In a JSP file, there is a sentence like this:

ServletContext sc = this.getServletContext().getContext("/File");

if(sc == null){

  Logger.warn(msg,"Can't get the context of /File.");

  return;

}

What's the mean of this sentence?

Now, I run this application in Tomcat5.5, and find the log: Can't get
the context of /File.

How to solve this problem? Thanks.


Have a look here (obtained via Google) :
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html#getContext%28java.lang.String%29

In other words, it is trying to get the context of a webapp which should be located at webapps/File. If you do not have such a webapp, then that is the reason for the message above. Why it is doing that however, and whether it is a problem, is something you will need to ask from the author of the application.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to