This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Im building a new web application, I will be using tomcat and MySQL.
I am using the same tomcat installation that I for another project, that was MS Access and Tomcat.
I am following Apache's intsructions on how configure the datasource, here.
I have got to section 2, so the MySQL is set up and working properly.
In section 2 it says add the code below to the server.xml between the </Context> tag of the examples context and the </Host>
In my server.xml I dont have </Context> or </Host> tag. So the question is what do I do??
Where can I get a new server.xml file from? I don't want to re install everything as I need the old project (MS Access and Tomcat) at the same time too. I hope my problem has made sense, if you want clarifications just let me know.
Please let us know which version of tomcat you are using. That may help.
For now it appears that there are clearly some problem with the server.xml file. There is clearly one start tag <Context> so there must be an end tag </Context>. Or at least the context tag should be in the form <Context />. But is is not a case. A <Context> tag is supposed to be inside a <Host> tag pair. At lease one host entry for the default host is supposed to be there. At the time of install only it remains present there. If possible and if the file is not too large then you can post it here. You can always get a fresh copy of the server.xml file at a fresh tomcat installation. As you don't want to loose the present configuration, you can install a fresh copy somewhere else and then merge the changes in the present installation.