*
The moose likes Tomcat and the fly likes server.xml problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "server.xml problem" Watch "server.xml problem" New topic
Author

server.xml problem

Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

Zein,
I'm going to move this to our Tomcat forum where people will know more about the server.xml file.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server.xml problem