Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic