geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (GERONIMO-2964) Cannot specify the Tomcat work directory for a web application
Date Fri, 24 Aug 2007 14:21:31 GMT

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

pmcmahan edited comment on GERONIMO-2964 at 8/24/07 7:20 AM:
-----------------------------------------------------------------

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

{{
  <!--   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>
}}

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.

      was (Author: pmcmahan):
    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, 2.0-M5
>            Reporter: Aman Nanner
>            Priority: Minor
>             Fix For: 1.2, 2.1
>
>         Attachments: tomcat-config-workdir.patch, 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.


Mime
View raw message