• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Problem while virtual hosting in Tomcat 5.0.28

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic