> From: Tomas Rodriguez [mailto:admhards...@yahoo.ca] > Subject: Re: mysql + tomcat work already but I need to > reconfigurate the tomcat for load the examples in other > location of the hard driver > > please tell me how can I create the server.xml and > build.xml
You're on your own for the build.xml; setting that up depends entirely on the organization of your source files. > I will need to create a file named > conf/Catalina/[host]/[appName].xml containing a > <Context> element with a docBase attribute whose > value is the absolute location of the webapp. Correct. Unless you are supporting multiple web sites, the existing <Host> will do; you don't have to create another one, so you shouldn't have to add anything to server.xml. You appear to have decided to place your own examples in the D:\examplestomcat directory, so that's what your docBase attribute will point to. The only missing piece of information is the URL name used to access your webapp; for brevity, we'll use the name tomas, but you're of course free to use anything you want. 1) no changes are needed to server.xml 2) create the file C:\tomcat6.0\conf\Catalina\localhost\tomas.xml 3) the contents of the above file are just: <Context docBase="D:/examplestomcat" /> 4) under D:\examplestomcat, you should have: WEB-INF\web.xml - contains your servlet mappings WEB-INF\lib - contains jar files (if any) for your webapp WEB-INF\classes - contains individual class files (if any) for your webapp index.html - the home page of your webapp. You would access the above via the URL http://127.0.0.1:8080/tomas, assuming your browser is on the same machine that Tomcat is running on and you're using the default server.xml. You can, of course, vary #4 considerably to meet your needs, as long as you stick with the structure required by the servlet spec. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org