tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Englhart <tro...@gmx.at>
Subject Change JSP Environment.
Date Sat, 03 Jan 2009 23:47:13 GMT
Hello,

I want to change the default user file-dir.  for instance: /users/user1/

System: java 1.5.0_14, tomcat  6.0.18, os debian.
Configuration:
    system.xml:

           <Host name="test2.domain.at" debug="0" unpackWARs="true">
             <Logger className="org.apache.catalina.logger.FileLogger"
                  directory="logs"  prefix="virtual_log." suffix=".txt"
    timestamp="true"/>
             <Context path="" docBase="/users/user1/public_html"
    debug="0" reloadable="true"/>
             <Valve className="org.apache.catalina.valves.AccessLogValve"
                  directory="logs"  prefix="virtual_log." suffix=".txt"
                  pattern="common"/>
            </Host>




I've test it with a command (new File(".") ) in a JSP and the result of
the getCanonicalPath  is  the tomcat -home and not "/users/user1/".
I've tried without success the attributes appBase and |workDir|. 

Thanks.
Greedings Stefan
|*
*|*||***

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message