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

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

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.


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

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
Donald,

Just wondering whether you installed the plugin using Plugins portlet or
using the command-line deployer.  Were you able to install the servlet
examples plugin prior to testing the patch provided by Aman?

Vamsi

On 9/16/07, Vamsavardhana Reddy (JIRA) <ji...@apache.org> wrote:
>
>
>     [
> https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527760]
>
> Vamsavardhana Reddy commented on GERONIMO-2964:
> -----------------------------------------------
>
> Got the same error at plugin startup "Unknown realm: geronimo-admin" on
> G2.0.1-Tomcat when trying to install servlet-examples-tomcat-2.0.1.car as
> a plugin.  Has anyone been able to install servlet and jsp samples plugin on
> G2.0.1?  If not, I wouldn't worry so much about backward compatibility as
> we will need to release new plugins for 2.0.2 anyway.  Comments?
>
> > 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: g2964.war, GERONIMO-2964-combined-new.patch,
> GERONIMO-2964-combined.patch, GERONIMO-2964.patch,
> 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.
>
>

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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964-2.0.patch

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526661 ] 

Donald Woods commented on GERONIMO-2964:
----------------------------------------

The way I verified that the original patch broke backwards compatibility with Geronimo 2.0.1, was I -
1) integrated the patch into a local 2.0.2-SNAPSHOT build
2) started the Tomcat JEE5 assembly and tried to install the existing geronimo-jsp-examples and geronimo-servlet-examples plugins from the 2.0.1 release.
When the plugin was being installed, it threw an exception due to the mismatch in the new and CAR expected TomcatWebAppContext constructor....


> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527744 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

The stacktrace I posted earlier was from the plugin installer window.  Here is the one from server window:

ERROR - Error while starting; GBean is now in the FAILED state: abstractName="or
g.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car?configurationName=or
g.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car"
org.apache.geronimo.kernel.config.InvalidConfigException: Unable to deserialize
GBeanState in classloader: [org.apache.geronimo.kernel.classloader.JarFileClassL
oader id=org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car]
        at org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(Ser
ializedGBeanState.java:124)
        at org.apache.geronimo.kernel.config.SerializedGBeanState.getGBeans(Seri
alizedGBeanState.java:65)
        at org.apache.geronimo.kernel.config.ConfigurationData.getGBeans(Configu
rationData.java:171)
        at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.
java:278)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
nstance.java:946)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
(GBeanInstanceState.java:268)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
nceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.j
ava:539)
        at org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.j
ava:361)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(Ker
nelConfigurationManager.java:160)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:310)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:278)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:253)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConf
iguration(KernelConfigurationManager.java:111)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager$$FastCla
ssByCGLIB$$b117102f.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
        at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.in
voke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid
ge.java:168)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp
l.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784
)
        at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
onImpl.java:1408)
        at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio
nImpl.java:81)
        at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
(RMIConnectionImpl.java:1245)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
MIConnectionImpl.java:1348)
        at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp
l.java:782)
        at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
66)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:707)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Unable to deserialize GBeanData org.apache.geron
imo.configs/servlet-examples-tomcat/2.0.1/car?J2EEApplication=null,j2eeType=WebM
odule,name=org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car
        at org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBe
anData.java:322)
        at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:247)
        at org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(Ser
ializedGBeanState.java:111)
        ... 51 more
Caused by: java.io.IOException: Unable to deserialize GBeanData org.apache.geron
imo.configs/servlet-examples-tomcat/2.0.1/car?J2EEApplication=null,j2eeType=WebM
odule,name=org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car, attrib
ute: holder
        at org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBe
anData.java:295)
        ... 53 more
Caused by: java.io.InvalidClassException: org.apache.geronimo.j2ee.annotation.Ho
lder; local class incompatible: stream classdesc serialVersionUID = 822160424416
6047988, local class serialVersionUID = 6192393604530969651
        at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:155
2)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
699)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBe
anData.java:291)
        ... 53 more

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964-combined-new.patch

GERONIMO-2964-combined-new.patch:

Now that plugin backward compatibility is not an issue, I guess this fix can go into 2.0.2 as well.  Here is a patch to allow a "work-dir" tag in web.xml.  For G/Jetty, the work-dir is created under var/jetty and for G/Tomcat, the work-dir is created under var/catalina with the specified name.  Once again, the patch does not address renaming the schema's to new versions which is to be addressed before committing the patch.  I have verified that the patch works on branches\2.0 without any test failures.  And the distributiions built address the issue at hand.

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527090 ] 

Anita Kulshreshtha commented on GERONIMO-2964:
----------------------------------------------

We need to find what exactly is being deserailized. Is this the full trace?  There should be something like - 
Caused by: java.io.IOException: Unable to deserialize AbstractName for GBeanData of type org.apache.geronimo.jetty6.JettyFilterMapping 
or

Caused by: java.lang.ClassCastException: cannot assign instance of javax.management.ObjectName to field org.apache.geronimo.gbean.Ab
stractName.objectName of type javax.management.ObjectName in instance of org.apache.geronimo.gbean.AbstractName 

or

Caused by: java.io.InvalidClassException:
> org.apache.geronimo.gbean.GOperationInfo; local class incompatible:
> stream classdesc serialVersionUID = 5185515581104192976, local class
> serialVersionUID = -5593225815559931812
>        at java.io.ObjectStreamClass.initNonProxy
> (ObjectStreamClass.java:519) 

    In the past they have all lead to this error.

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
Ah! the long summer vacation.. Now we are at 2.0.1. Is all that stuff
already implemented?

Thanks
Anita

--- Paul McMahan <pa...@gmail.com> wrote:

> Anita, there was some discussion about supporting wildcards in the  
> Geronimo version numbers a while back you might be interested in
> seeing.
> http://www.nabble.com/1.1-Candidate-releases-available- 
> tf1746400s134.html#a4765468
> 
> Best wishes,
> Paul
> 
> On Sep 12, 2007, at 11:31 AM, Anita Kulshreshtha (JIRA) wrote:
> 
> >
> >     [ https://issues.apache.org/jira/browse/GERONIMO-2964? 
> > page=com.atlassian.jira.plugin.system.issuetabpanels:comment- 
> > tabpanel#action_12526820 ]
> >
> > Anita Kulshreshtha commented on GERONIMO-2964:
> > ----------------------------------------------
> >
> >   I wish we had a system where one could say version 2.* in  
> > geronimo-plugin.xml, and the plugin installer would download   
> > artifacts using the server version.
> > <geronimo-version> in g-plugin.xml could be easily filtered to  
> > generate a version corresponding to the server the plugin is being 
> 
> > downloaded to.
> >
> >> 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: g2964.war, GERONIMO-2964-combined.patch,  
> >> GERONIMO-2964.patch, 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.
> >
> 
> 



       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

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

Posted by Paul McMahan <pa...@gmail.com>.
Anita, there was some discussion about supporting wildcards in the  
Geronimo version numbers a while back you might be interested in seeing.
http://www.nabble.com/1.1-Candidate-releases-available- 
tf1746400s134.html#a4765468

Best wishes,
Paul

On Sep 12, 2007, at 11:31 AM, Anita Kulshreshtha (JIRA) wrote:

>
>     [ https://issues.apache.org/jira/browse/GERONIMO-2964? 
> page=com.atlassian.jira.plugin.system.issuetabpanels:comment- 
> tabpanel#action_12526820 ]
>
> Anita Kulshreshtha commented on GERONIMO-2964:
> ----------------------------------------------
>
>   I wish we had a system where one could say version 2.* in  
> geronimo-plugin.xml, and the plugin installer would download   
> artifacts using the server version.
> <geronimo-version> in g-plugin.xml could be easily filtered to  
> generate a version corresponding to the server the plugin is being  
> downloaded to.
>
>> 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: g2964.war, GERONIMO-2964-combined.patch,  
>> GERONIMO-2964.patch, 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.
>


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

Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526820 ] 

Anita Kulshreshtha commented on GERONIMO-2964:
----------------------------------------------

  I wish we had a system where one could say version 2.* in geronimo-plugin.xml, and the plugin installer would download  artifacts using the server version.
<geronimo-version> in g-plugin.xml could be easily filtered to generate a version corresponding to the server the plugin is being downloaded to. 

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529230 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Schemas renamed in rev 577890.

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526799 ] 

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

Vamsi,  I forget exactly how the version check works, but it may depend on whether you install the .car file from your local filesystem or let the plugin installer download it from the online repo.  In the latter case I think the plugin installer might use the geronimo version listed in the catalog.  In any case it should be possible to rebuild the plugin locally with the desired geronimo version(s) in the geronimo-plugin.xml.    Keeping the version numbers up to date will be greatly simplified using the recent improvements to the car-maven-plugin.

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-2964:
-----------------------------------

    Affects Version/s: 2.0-M5

> 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
>
>         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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526884 ] 

Donald Woods commented on GERONIMO-2964:
----------------------------------------

Yep, I was afraid of that....
Guess we really need to work on Plugin compatibility for the 2.1 release, given everything is becoming a plugin.... :-)

If it's true that none of the 2.0.1 geronimo-example plugins work on a 2.0.2-SNAPSHOT server, then I would be in favor of including this fix, as backwards compatibility would be broken without it anyway... :-(



> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528080 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Submitted the last comment accidentally and here is the continuation...

2. ... and the changing geronimo-tomcat-config-1.0.xsd is not necessary.

Note:  The patches do not address renaming the schemas which will be done at commit.

If someone is still concerned about backward compatibility of plugins, I will use (1)GERONIMO-2964-2.0.patch on branches\2.0 instead of (2).

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532728 ] 

Donald Woods commented on GERONIMO-2964:
----------------------------------------

Is all the required work for this in 2.0.2 complete?

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523007 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Paul, Donald,

I don't think it is necessary to change the constructor.  Since the only way the new workDir parameter it is used in the constructor is to initialize a member "this.workDir", we can do away by adding a setter method.  Let me see if I can come up with a new patch that does not change the constructor.  If not, we can forgo the fix for 2.0.2 and fix it in 2.1.  The only thing I was concerned is whether a schema change from 2.0.1 to 2.0.2 is acceptable.  May be it is if we don't break compatibility.  Will report back soon.

Aman,
Will it be possible for you to post a simple test war file to verify if my new patch (if any).  If not now, it will anyway be useful later when the issue is addressed.

Thanks

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: suid.patch

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527749 ] 

Anita Kulshreshtha commented on GERONIMO-2964:
----------------------------------------------

Vamsi thanks!  Could you please add SUID to Holder class in g-j2ee and retest?

Caused by: java.io.InvalidClassException:
 org.apache.geronimo.j2ee.annotation.Ho
lder; local class incompatible: stream classdesc serialVersionUID =
 822160424416
6047988, local class serialVersionUID = 6192393604530969651
        at............................

       We need to more careful about modifying serializable classes. 

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Jeff Genender (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480838 ] 

Jeff Genender commented on GERONIMO-2964:
-----------------------------------------

The config XSDs need updating as well.

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528088 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Please see the comments above.  If you have a concern with using GERONIMO-2964-2.0-w-cons-change.patch instead of GERONIMO-2964-2.0.patch on branches\2.0, please voice it now.

I will commit the patches at or after 20-Sep-07 20:30 IST  (GMT+5:30) .

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527805 ] 

Anita Kulshreshtha commented on GERONIMO-2964:
----------------------------------------------

     I did not expect SUID change to work.. The Holder class
http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java?sortdir=down&r1=566236&r2=568253
    changes a List to a Set, which is equivalent to deleting a field. This is not a compatible change as described here:
http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/version.html#6678
       This is likely to produce unexpected behavior irrespective of your patch. If we want to promise upward compatibility to our users, we need to fix this.

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526802 ] 

Donald Woods commented on GERONIMO-2964:
----------------------------------------

Yep, the XML needs to be updated to include 2.0.2-SNAPSHOT as a valid target.
You can either host your own copy of the 2.0.1 plugin (which I do for some testing) or apply your patch onto a copy of the Geronimo 2.0.1 source and rebuild it (which is actually how I originally tested the first patch that was submitted.)


> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523037 ] 

Aman Nanner commented on GERONIMO-2964:
---------------------------------------

I have verified that the GERONIMO-2964.patch does indeed fix our issue.

> 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: g2964.war, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964-combined.patch

GERONIMO-2964-combined.patch: This patch features a work-dir setting for both tomcat and jetty.  Once again the schema files need to be renamed (which is not done by this patch).

I was chatting with David Jencks on IRC channel and he suggested that irrespective of not changing the constructors, we might be breaking compatibility as we have added new GBean attributes :o(

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy closed GERONIMO-2964.
-----------------------------------------

    Resolution: Fixed

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Fix Version/s: 2.1

Though there was a patch waiting on the JIRA, it fell off of 2.0 radar as the "Fix Version" did not have 2.0.  Can this the considered for 2.0.x?  Remember that it requires a schema change.

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528079 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

I have attached three patches this time:

1.  GERONIMO-2964-2.0.patch:  Solves the problem without any constructor or method changes that come in the way of backward compatibility of plugins and to be used on branches\2.0
2.  GERONIMO-2964-2.0-w-cons-change.patch:  Solves the problem without worrying about anything breaking backward compatibility of plugins as something else seem to break it anyways and also servlet-examples, jsp-examples plugins from 2.0.1 won't run because of the default-subject in the plan.  What other plugins do I need to worry about?
3.  GERONIMO-2964-trunk.patch:  It is essentially (2) above but I had to create a new one coz (2) won't apply neatly on trunk.

Here is what these patches solve.
They provide for a "work-dir" tag in web app plans.  If the tag is omitted, the behaviour is as it currently exists.  If the tag is specified (with value 'myworkdir' say), in G/Tomcat, var/catalina/myworkdir will be used as the work dir for the app and in G/Jetty var/jetty/myworkdir will be used.

What's new from the previous patches:
1.  David Jencks objected to using "jetty.home" system property.  So, it is no longer used.
2.  David Jencks suggested changing geronimo-web-2.0.xsd and     

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-2964:
-----------------------------------

    Fix Version/s:     (was: 2.0.x)

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522548 ] 

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

Too bad this fell off the radar for 2.0, it's a useful patch.  I would also like to see this in 2.0.x but don't know if a schema change is OK in that branch.  Could backwards compatibility be affected?

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527758 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Donald,

Incase of patch with constructor change I ran into the error "Could not find a valid constructor for GBean: TomcatWebApplicationContext".  I ran into another error once I got past this error by not changing the TomcatWebApplicationContext constructor (see my previous comment).  Will it be possible for you to verify if GERONIMO-2964.patch breaks compatibility the way you originally tested the patch posted by Aman?

Thank you,



> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527039 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Have you tried changing/fixing the SUID for SerializedGBeanState?  ==>  How do I do that?

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964-2.0-w-cons-change.patch

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480823 ] 

Aman Nanner commented on GERONIMO-2964:
---------------------------------------

Thanks for your comment.  I actually want to set the workdir for JSPs on a per-web-application basis, which is why I provided the solution above.

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964.patch

Aman, can you check if GERONIMO-2964.patch addresses this issue?  Patch to be used on branches\2.0 or tags\2.0.1.

> 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: GERONIMO-2964.patch, 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.


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

Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526964 ] 

Anita Kulshreshtha commented on GERONIMO-2964:
----------------------------------------------

Have you tried changing/fixing the SUID for SerializedGBeanState?

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523468 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Looks like we can not have this in 2.0.2 without breaking compatibility (unless someone comes up with a patch that does not change any GBeanInfo's).  Are there (m)any plugins that get affected?


> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522996 ] 

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

Donald, that is right, and when combined with the schema change this is IMO a good reason to only apply the change to the 2.1 branch.  Apologies to Aman for accidentally overlooking this patch for 2.0.1.  Vamsi, I'll follow up on this JIRA unless you were already planning to.

> 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.


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

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522817 ] 

Donald Woods commented on GERONIMO-2964:
----------------------------------------

Well, this patch changes the TomcatWebAppContext constructor, which will break compatibility with any plugins built for 2.0.1....


> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526710 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

I downloaded http://repo1.maven.org/maven2/org/apache/geronimo/configs/servlet-examples-tomcat/2.0.1/servlet-examples-tomcat-2.0.1.car  and tried to install it in 2.0.2-SNAPSHOT server using "deploy.bat install-plugin ...".  I got a message "Installation FAILED: Cannot install plugin org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car on Geronimo 2.0.2-SNAPSHOT".  I see that the geronimo-plugin.xml inside servlet-examples-tomcat-2.0.1.car  has "<geronimo-versions><version>2.0.1</version></geronimo-versions>".  Does it mean the plug-in will not install on G 2.0.2 whether or not there is API difference?  What am I missing?

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: GERONIMO-2964-trunk.patch

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aman Nanner updated GERONIMO-2964:
----------------------------------

    Attachment: tomcat-config-workdir.patch

Here's an additional patch for the config XSD.

> 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-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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526353 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

I think we should come up with a test case to see if this patch really comes in the way of compatibility with plugins built for G 2.0.1.

Donald, do you have a test scenario in mind?

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527841 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Forget about startup failures on G2.0.1-Jetty while installing servlet-examples and jsp-examples plugins, they won't even install because geronimo-plugin.xml uses a prerequisite "org.apache.geronimo.configs/jetty//car"!!.  See http://svn.apache.org/viewvc?rev=576065&view=rev

After fixing the prereq id, I hit the startup error "Unknown realm: geronimo-admin".

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527823 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

SUID change may or may not result in unexpected behavior in case of installing 2.0.1.car as plugin in 2.0.2-SNAPSHOT server.  Are you able to figure why it is not working with the 2.0.1 server which comes from the same codebase?

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526830 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Updating geronimo-plugin.xml in servlet-examples-tomcat-2.0.1.car file to include 2.0.2-SNAPSHOT as a valid version means we have a "new" plugin artifact.   I have done exactly that and tried to install the plugin on Geronimo Tomcat server built from branches\2.0 WITHOUT any patches for the current JIRA.  I ended up with an InvalidConfigurationException.  Looks like these plugin artifacts built for 2.0.1 won't install on 2.0.2 without having to rebuild those for 2.0.2.  I am wondering if compatibility is really a concern!!!

Output from command line deployer given below:

C:\geronimo-tomcat6-jee5-2.0.2-SNAPSHOT>bin\deploy.bat install-plugin c:\temp\se
rvlet-examples-tomcat-2.0.1-cooked.car
Using GERONIMO_BASE:   C:\geronimo-tomcat6-jee5-2.0.2-SNAPSHOT
Using GERONIMO_HOME:   C:\geronimo-tomcat6-jee5-2.0.2-SNAPSHOT
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        D:\T42\SUNJDK150\jre
Username: system
Password: *******
Checking for status every 1000ms:
Finished downloading org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/c
ar (192 kB) (100%)

    **** Installation Complete!
    Used existing: org.apache.geronimo.configs/jasper//car
    Used existing: org.apache.geronimo.configs/tomcat6//car

    Downloaded 192 kB in 1s (192 kB/s)
    Now starting
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car...
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronim
o.configs/servlet-examples-tomcat/2.0.1/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:325)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:278)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:253)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConf
iguration(KernelConfigurationManager.java:111)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager$$FastCla
ssByCGLIB$$b117102f.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
        at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.in
voke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid
ge.java:168)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp
l.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784
)
        at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
onImpl.java:1408)
        at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio
nImpl.java:81)
        at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
(RMIConnectionImpl.java:1245)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
MIConnectionImpl.java:1348)
        at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp
l.java:782)
        at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
66)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:707)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Error start
ing configuration gbean org.apache.geronimo.configs/servlet-examples-tomcat/2.0.
1/car
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(Ker
nelConfigurationManager.java:180)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:310)
        ... 37 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n gbean failed to start org.apache.geronimo.configs/servlet-examples-tomcat/2.0.
1/car
reason: Unable to deserialize GBeanState in classloader: [org.apache.geronimo.ke
rnel.classloader.JarFileClassLoader id=org.apache.geronimo.configs/servlet-examp
les-tomcat/2.0.1/car]
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(Ker
nelConfigurationManager.java:163)
        ... 38 more

    Error: Operation failed: load of
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car failed

        Error starting configuration gbean
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car

        Configuration gbean failed to start
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car

    reason: Unable to deserialize GBeanState in classloader:
    [org.apache.geronimo.kernel.classloader.JarFileClassLoader
    id=org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car]

> 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: g2964.war, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ 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

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


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Attachment: g2964.war

Verified that GERONIMO-2964.patch solves the problem.  Deploy g2964.war which uses a workDir "g2964" under var/catalina.  Access http://localhost:8080/g2964 once the app is deployed.

Caution: GERONIMO-2964.patch can not be committed as we will need to change the versions of the two schema files and this requires (a lot of) other changes.

> 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: g2964.war, GERONIMO-2964.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529134 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

No one has objected to using GERONIMO-2964-2.0-w-cons-change.patch instead of GERONIMO-2964-2.0.patch on branches\2.0.

GERONIMO-2964-trunk.patch committed in rev 577801.
GERONIMO-2964-2.0-w-cons-change.patch committed in rev 577803.

Schema name change is pending.


> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aman Nanner updated GERONIMO-2964:
----------------------------------

    Attachment: tomcat-workdir.patch

Here is the patch that addresses this improvement.  If there's still time left, it would be cool if this made it into Geronimo 1.2.  I understand if it does not though, since it involves a schema modification.

> 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528065 ] 

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

Vamsi,  that error messages looks related to http://svn.apache.org/viewvc?view=rev&revision=568260

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-2.0-w-cons-change.patch, GERONIMO-2964-2.0.patch, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964-trunk.patch, GERONIMO-2964.patch, suid.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated GERONIMO-2964:
------------------------------------------

    Fix Version/s:     (was: 1.2)
                   2.0.x
                   2.0.2
         Assignee: Vamsavardhana Reddy

> 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
>            Assignee: Vamsavardhana Reddy
>            Priority: Minor
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527760 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Got the same error at plugin startup "Unknown realm: geronimo-admin" on G2.0.1-Tomcat when trying to install servlet-examples-tomcat-2.0.1.car as a plugin.  Has anyone been able to install servlet and jsp samples plugin on G2.0.1?  If not, I wouldn't worry so much about backward compatibility as we will need to release new plugins for 2.0.2 anyway.  Comments?

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480830 ] 

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

OK I understand that for your requirements that the current functionality does not suffice.  A visual inspection of the patch looks good.  The 1.2 release is in the final stretch of testing and preparation right now, so I think we should wait until a maintenance branch is created where we can add this enhancement.  It could go into the 2.0 release at that time as well.

> 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.


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

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527757 ] 

Vamsavardhana Reddy commented on GERONIMO-2964:
-----------------------------------------------

Anitha,

I have proposed two patches.  One with TomcatWebAppContext constructor change and one without the constructor change.  With the SUID changed, I got past the deserialization problem, but hit the following error with clean 2.0.2-SNAPSHOT as well (2.0.2-SNAPSHOT+"Patch without the constructor change").

I changed the SUID and ran into another error.  Stack trace given below:

org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geroni
mo.configs/servlet-examples-tomcat/2.0.1/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:547)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:511)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
ssByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
        at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.in
voke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:865)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid
ge.java:168)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp
l.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784
)
        at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
onImpl.java:1408)
        at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio
nImpl.java:81)
        at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
(RMIConnectionImpl.java:1245)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
MIConnectionImpl.java:1348)
        at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp
l.java:782)
        at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
66)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:707)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown sta
rt exception
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:514)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
rnelConfigurationManager.java:187)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:530)
        ... 35 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car failed to start
due to the following reasons:
  The service J2EEApplication=null,WebModule=org.apache.geronimo.configs/servlet
-examples-tomcat/2.0.1/car,j2eeType=JACCManager,name=JACCManager did not start b
ecause Unknown realm: geronimo-admin
  The service J2EEApplication=null,j2eeType=WebModule,name=org.apache.geronimo.c
onfigs/servlet-examples-tomcat/2.0.1/car did not start because org.apache.geroni
mo.configs/servlet-examples-tomcat/2.0.1/car?J2EEApplication=null,WebModule=org.
apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car,j2eeType=JACCManager,n
ame=JACCManager did not start.

        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:477)
        ... 37 more

    Error: Operation failed: start of
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car failed

        Unknown start exception

        Configuration
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car failed
    to start due to the following reasons:

      The service
    J2EEApplication=null,WebModule=org.apache.geronimo.configs/servlet-examples-
tomcat/2.0.1/car,j2eeType=JACCManager,name=JACCManager
    did not start because Unknown realm: geronimo-admin

      The service
    J2EEApplication=null,j2eeType=WebModule,name=org.apache.geronimo.configs/ser
vlet-examples-tomcat/2.0.1/car
    did not start because
    org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car?J2EEApplicatio
n=null,WebModule=org.apache.geronimo.configs/servlet-examples-tomcat/2.0.1/car,j
2eeType=JACCManager,name=JACCManager

> 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: g2964.war, GERONIMO-2964-combined-new.patch, GERONIMO-2964-combined.patch, GERONIMO-2964.patch, 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.