Hello:
I found when I use method toURI( ) of class File in ServletContextListener, it will
jump contextDestroyed( ) directly.
Did I misuse?
I use Tomcat 4.1.
Ex�G
public class Test implements ServletContextListener {
public Test( ) {
System.out.println("Constructor");
}
public void contextDestroyed(ServletContextEvent sce) {
System.out.println("Destroy");
}
public void contextInitialized(ServletContextEvent sce) {
System.out.println("Init");
new File("C:\\").toURI( );
System.out.println("Init finished");
}
}
When tomcat starts up, it will print out like �G
blah blah blah...................
Constructor
Init
Destroy
blah blah blah...................
Mark.