• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

server.xml problem

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

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.

Thanks in advance
Zein
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Zein,
I'm going to move this to our Tomcat forum where people will know more about the server.xml file.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic