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

Reply via email to