I am using Tomcat 5.0.28 and want to do Virtual Hosting on that.
I have written the code in server.xml
but when i try to run my server , its gives an error Error Listener Start.
Please tell me that where i am wrong
Kaustabh Singha Roy
Joined: Oct 04, 2005
I cant see any major error in those lines. I still like to suggest a couple of ideas. They may help.
1. Create a new directory inside the CATALINA_HOME and specify that as the appBase for your host. As the webapps folder is the appBase for the default host there remains scope for a mix up if the application base for a new host is inside the webapps directory.
2. Insted of specifying a . as the document base for the <Context> create a directory and place the path here. Your app directory can be enywhere in your file system. I am not sure that a . will not mean that the CATALINA_HOME itself is the document base.
Hope this produce some benefit for you.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Is that space really in your xml file? Also that trailing quote after myApplication looks like one of those nasty MS Word smart quotes, the parser may be choking on it.
On my system I have appBase set to an absolute file path.