• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while virtual hosting in Tomcat 5.0.28

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

kaustabh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
appBase="webapps\ myApplication”


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.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic