Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web.xml

Status
Not open for further replies.

skw8966

Programmer
Apr 12, 2001
59
US
I'm trying to set up a JDBC connection to a MySQL database in my tomcat server. I've referenced the JNDI Datasource How-To sheet and followed the instructions. I added a declaration to the server.xml file. How it tells me to create a Web-Inf/web.xml.

Where do I save this file once I create it? There is already a file by that name in the /usr/tomcat/conf directory. Do I overwrite it?

I'm very new at using Tomcat and Linux, so if you could explain in newbie terms, I'd appreciate it.

Thanks.
 
Try first adding your datasource contexts in %TOMCAT_HOME%/webapps/myproject/WEB-INF (or if you dont have your own context and am developing in ROOT, then TOMCAT_HOME%/webapps/ROOT/WEB-INF.

Dont overwrite the web.xml file in conf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top