You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Paul McMahan (JIRA)" <ji...@apache.org> on 2007/03/14 17:19:09 UTC

[jira] Commented: (GERONIMO-2964) Cannot specify the Tomcat work directory for a web application

    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480820 ] 

Paul McMahan commented on GERONIMO-2964:
----------------------------------------

Are you interested in setting the workdir for JSPs or for the web application in general?  If for JSPs then you can specify the work dir for the JSP servlet by setting the following param in var/catalina/conf/web.xml

{{monospaced}}
  <!--   scratchdir          What scratch directory should we use when      -->
  <!--                       compiling JSP pages?  [default work directory  -->
  <!--                       for the current web application]               -->
  <!--                                                                      -->
[...]
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>scratchdir</param-name>
            <param-value>mypath</param-value>
        </init-param>
        [...]
    </servlet>
{{monospaced}}

This solution is of course not as generic as what your patch provides because it's only useful for JSPs.  I just wanted to point out that its already available in case that could help meet your specific requirements.

> Cannot specify the Tomcat work directory for a web application
> --------------------------------------------------------------
>
>                 Key: GERONIMO-2964
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2964
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 1.2
>            Reporter: Aman Nanner
>            Priority: Minor
>             Fix For: 1.2
>
>         Attachments: tomcat-workdir.patch
>
>
> In Tomcat, a work directory can be specified for a web application in a WEB-INF/context.xml file.  The GeronimoStandardContext does not permit the user to specify a work directory, and so the work directory defaults to var/catalina/work/<web-app>.
> I've submitted a patch file that modifies the geronimo-tomcat-1.2 schema to permit the user to optionally specify a work directory.  This work directory is then propagated into the TomcatContext.  I've tested this and it seems to work well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.