Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Changing docbase?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I installed Apache Tomcat 4.1.24, I downloaded this new conf/server.xml document that uncommented the line:
<Context path="" docBase="ROOT" debug="0" />
Now, I want to be able to serve files that are located on my C-drive without having to copy them into my webapps/root folder. If I change docBase, will I be able to do so? If so, what do I change it to?
Thanks in advance for any help or suggestions!
 
Sheriff
Posts: 67498
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rather than changing the default docbase, you create as many new contexts as you like. Here's a couple of examples from my own server.xml on a Windows box:

These are them available as
[code]
http://localhost:8080/garden/
and
http://localhost:8080/lawns/
[/code}
respectively.
hth,
bear
 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help! I added the following line by editing in word and then resaving as an .xml:

However, when I went to open the xml file up, I got an error saying invalid character found in text content.
Sorry, but I am new at this. Should I be editing the xml file some other way.
[ August 19, 2003: Message edited by: Julia Irving ]
 
Bear Bibeault
Sheriff
Posts: 67498
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutely! There's no telling what Word will do to a file. Most probably it's turing your quotes into so-called "smart quotes".
If you have nothing else to use, use Notepad or a similar text editor.
bear
 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It worked perfectly! Thanks a lot for all of your help!
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic