Trying to deploy a grails application in Ubuntu/Debian tomcat 5.5
Henning Sprang
henning.sprang at gmail.com
Wed Aug 20 17:38:00 BST 2008
Hi,
The motu team is named as the maintainer of the tomcat5.5 package, so
I hope I'm right here for this question(and I'm positing it here
first, before going to the Debian packager):
I'm trying to deploy a Grails application in the
tomcat5.5 server included in Ubuntu Linux 8.04.
If I got it right, web applications are to be deployed to
/var/lib/tomcat5.5/webapps.
When doing so, the application doesn't start, and the log puts the error
below.
It seems to be a problem of very restrictive security settings, while
reading afile that doesn't even exists in my application (and isn't
needed when I run it in a tomcat 6 binary fropm upstream) - so, what do
I need to do to get my webapp running in tomcat?
SEVERE: Error registering
Catalina:type=Valve,name=StandardContextValve,path=/TimeTracker-0.1,host=localhost
javax.management.MBeanException: Cannot instantiate ModelMBean of class
org.apache.commons.modeler.BaseModelMBean
at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)
at
org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:302)
at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission /var/lib/tomcat5.5/webapps/TimeTracker
-0.1/WEB-INF/classes/logging.properties read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.exists(File.java:731)
at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)
at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)
at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)
at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1924)
at
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:936)
at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:299)
at
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManager.java:270)
at
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:275)
at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:184)
at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)
at com.sun.jmx.trace.Trace.isSelected(Trace.java:84)
at
javax.management.modelmbean.ModelMBeanInfoSupport.tracing(ModelMBeanInfoSupport.java:1000)
at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:335)
at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:276)
at
org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328)
at
org.apache.commons.modeler.BaseModelMBean.<init>(BaseModelMBean.java:117)
at
sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378)
... 33 more
Aug 10, 2008 7:05:03 PM org.apache.catalina.core.StandardPipeline
registerValve
FCC: imap://henning%40sprang.de@wp126.webpack.hosteurope.de/Sent
X-Identity-Key: id9 Message-ID: <489F31D5.500 at sprang.de> Date: Sun, 10
Aug 2008 20:58:34 +0200 From: Henning Sprang X-Mozilla-Draft-Info:
internal/draft; vcard=0; receipt=0; uuencode=0 User-Agent: Thunderbird
2.0.0.16 (X11/20080707) MIME-Version: 1.0 Subject: Deploying Grails
applications in Ubuntu's tomcat55 X-Enigmail-Version: 0.95.6
Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding:
7bit Hi,
I'm trying to deploy a little Grails application I wrote in the
tomcat5.5 server included in Ubuntu Linux 8.04.
If I got it right, web applications are to be deployed to
/var/lib/tomcat5.5/webapps.
When doing so, the application doesn't start, and the log puts the error
below.
The strange thing: I don't know why this file is even searched for - it
is not contained in may application, and it runs well in a tomcat6 from
upstream binaries when I run it in /opt, only does refuse to start when
running on the tomcat5.5 package.
I tried to fiddle with many permission settings in
/etc/tomcat5.5/policy.d/ files,without having too much knowldge,
admittedly, but came to no result.
Any ideas what I need to do?
Thanks,
Henning
The tomcat start log:
SEVERE: Error registering
Catalina:type=Valve,name=StandardContextValve,path=/TimeTracker-0.1,host=localhost
javax.management.MBeanException: Cannot instantiate ModelMBean of class
org.apache.commons.modeler.BaseModelMBean
at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)
at
org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:302)
at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission /var/lib/tomcat5.5/webapps/TimeTracker
-0.1/WEB-INF/classes/logging.properties read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.exists(File.java:731)
at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)
at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)
at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)
at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1924)
at
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:936)
at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:299)
at
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManager.java:270)
at
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:275)
at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:184)
at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)
at com.sun.jmx.trace.Trace.isSelected(Trace.java:84)
at
javax.management.modelmbean.ModelMBeanInfoSupport.tracing(ModelMBeanInfoSupport.java:1000)
at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:335)
at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:276)
at
org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328)
at
org.apache.commons.modeler.BaseModelMBean.<init>(BaseModelMBean.java:117)
at
sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378)
... 33 more
Aug 10, 2008 7:05:03 PM org.apache.catalina.core.StandardPipeline
registerValve
More information about the Ubuntu-motu
mailing list