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