tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Batard" <dbat...@sf2r.fr>
Subject Re: Tomcat 5.0.7 Host default Context docBase
Date Fri, 22 Aug 2003 10:34:06 GMT
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" <john@johncorrigan.net>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:dbatard@sf2r.fr]
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



Mime
View raw message