Hi, Erik, Instead of adding your <context> entries directly to "server.xml", I recommend adding tiny little "context.xml" file snippets under TOMCAT_HOME/conf/Catalina/localhost.
tomcat/conf |-- Catalina | `-- localhost | |-- ROOT.xml | |-- manager.xml | `-- julius-app.xml |-- catalina.policy |-- catalina.properties |-- jk2.properties |-- server-minimal.xml |-- server-original.xml |-- server.xml |-- tomcat-users.xml `-- web.xml In this case, notice "julius-app.xml". Here is its contents: ============================== <Context path="/julius" docBase="/home/julius/mywebapp"> ============================== Notice how this "julius-app.xml" is essentially just a symlink. yours, Julius Davies On Wed, 2005-05-01 at 10:12 -0800, Erik Weibust wrote: > I'm having a problem getting a webapp running in my instance of tomcat. > I have attached all the relevant info below. > > What I'm trying to do is use a sym link in a dir that points to a > "generic" version of my app. That way I can have numerous versions of > that app on my machine and instead of having to edit the server.xml > every time I want to switch from one version of the app to another I > can just change my sym link. When I do this I get a "Resources start > failed" error in my log files. > > Any ideas? Do I need to provide more info? Will Tomcat not allow a > sym link in the docBase of a Context element? > > Thanks... > Erik > > > from catalina.out > StandardContext[/mondev_ng]: Resources start failed: > java.lang.IllegalArgumentException: Document base > C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable > directory at > org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) > > from server.xml > <Context path="/mondev_ng" reloadable="true" > docBase="C:\cygwin\home\efw\cvs\MonDev_NG"> > <Logger className="org.apache.catalina.logger.SystemOutLogger"/> > </Context> > > [EMAIL PROTECTED] ~/cvs$ ls -l > total 1 > lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG -> > MonDev_NG_20050105/ > drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ > drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ > > ===== > Erik Weibust > http://erik.weibust.net > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
