Trying 5.0.9, same trouble. I must correct my last message :
Whatever I use in the docBase and workDir properties of Context in Host within server.xml (absolute, relative to appBase or to $CATALINA_HOME, using / or \), I get the IOException. But; suppressing the Context tag in Host within server.xml, and using a context file (conf/Catalina/edevis/foo.xml) the docBase path cannot be absolute, it must be relative to the appBase property of Host within server.xml, and workDir cannot be absolute, it must be relative to $CATALINA_HOME ! Here is my foo.xml : <!-- Context configuration file for the edevis Web App --> <Context path="" docBase="." reloadable="true" debug="0" privileged="true" workDir="../edevis/work"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="edevis_default_log." suffix=".txt" timestamp="true"/> </Context> Dom ----- Original Message ----- From: "John Corrigan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2003 7:07 AM Subject: RE: Tomcat 5.0.7 Host default Context docBase > Looks like it is complaining about the path. Have you tried using C:\edevis > instead of C:/edevis for your appBase and docBase? > > -----Original Message----- > From: Dominique Batard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 8:45 AM > To: Tomcat Users List > Subject: Tomcat 5.0.7 Host default Context docBase > > > Hi > > Trying to run a Tomcat 4.1.24 web app using Tomcat 5.0.7. > > Host and context parameters : > > <Host name="edevis" debug="0" appBase="c:/edevis" unpackWARs="true" > autoDeploy="true" > > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="edevis_access_log." suffix=".txt" > pattern="common" resolveHosts="false"/> > <Logger className="org.apache.catalina.logger.FileLogger" > directory="logs" prefix="edevis_log." suffix=".txt" timestamp="true"/> > <Context path="" docBase="c:/edevis" reloadable="true" > workDir="c:/edevis/work/org/apache/jsp"/> > </Host> > > Whatever I put in this virtual host default context docBase (c:/edevis, or > .) , when I start tomcat, I get : > > 20 août 2003 17:28:30 org.apache.commons.digester.Digester startElement > GRAVE: Begin event threw exception > java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume > incorrecte > at java.io.WinNTFileSystem.canonicalize0(Native Method) > at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352) > at java.io.File.getCanonicalPath(File.java:513) > at java.io.File.getCanonicalFile(File.java:534) > at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137) > at org.apache.commons.digester.Rule.begin(Rule.java:200) > at org.apache.commons.digester.Digester.startElement(Digester.java:1273) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno > wn Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc > her.dispatch(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1548) > at org.apache.catalina.startup.Catalina.load(Catalina.java:512) > at org.apache.catalina.startup.Catalina.load(Catalina.java:550) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393) > > and tomcat doesn't want to start > > If i suppress <Context path="" docBase="c:/edevis" ..... , I don't have any > error, but the web app doesn't run. > > The jakarta docs don't show any difference about virtual hosts and default > contexts between 4.1.x and 5.0.x > > Dom > > > > > --------------------------------------------------------------------- > 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]