geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-2964) Cannot specify the Tomcat work directory for a web application
Date Sat, 15 Sep 2007 15:02:32 GMT

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


Mime
View raw message