Add a virtual directory to increase in server.xml files
context> myWeb means its relative WebApps, is a physical existence directory; / OICQ means its relative Web URL Path, is a virtual path, such as http: // localhost / oicq
Configure the JSP and ServletJSP files directly under MyWeb; compiled JavaBean, servlet places the class content under Web-INF, and the path of the package is consistent with the directory path.
Configure the server's port on the 56th line of the server.xml file, modify port = "8080" for the port number you want to use, such as: 80
Web.xml file settings Default (welcome) file settings in h: /tomcat4/conf/web.xml, is the same as the default files in IIS. index.html welcome-file> index.htm welcome-file> index.jsp welcome-file> < / Welcome-file-list>
Infault file setting 404 ERROR-CODE> /notfilefound.jsp location> error-page> java. Lang.NullPointerException exception-type> /null.jsp location> error.jsp location> error-page> If a file resource is not found, the server wants to report 404 errors, and the H: / Tomcat / WebApps / root / notfilefilefound.jsp. If a JSP file executed is generated, h: /tomcat4/webapps/root/null.jsps/root/null.jsp