Hi folks and thanks in advance.
I know this has been asked before-- I've been searching and reading and
haven't found a solution somehow.
I have a JSP based site that I've been hosting on resin.
I want to port it to a new server running tomcat6.
I have a fresh install of tomcat6.
My goal is to leverage virtual hosting for a number of related
applications starting with this one:
My document root is /home/someplace/www.someplace.com
I get the following error:
java.lang.IllegalArgumentException: Document base
/home/someplace/www.someplace.com does not exist or is not a readable
directory
I have verified that the directory exists and is accessible (not a typo,
not a securities issue).
I have tried several variations of configuring the context for this
after reading (and re reading) old answers and the documentation at
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
For my latest try I added the following to server.xml inside the
Catalina Engine:
<Host name="someplace" appBase="/home/someplace/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context
Path=""
docBase="/home/someplace/www.someplace.com"
reloadable="true"/>
<Alias>www.someplace.com</Alias>
<Alias>someplace.com</Alias>
<Alias>www.someplace.net</Alias>
<Alias>someplace.net</Alias>
</Host>
Note that I took the extra step of creating a webapps directory inside
of /home/someplace so that it would be separate and so that I can use
that later for deploying WARs.
Can someone spot what I've done wrong and give me clear instructions on
how to make this work?
It shouldn't be this hard... I must be stumbling over something basic.
(What seems to have worked for others did not work for me when I tried
it (based on google searches of prior Q&A))
Thanks,
_M
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org