OpenVPMS on Linux

I am attempting to install OpenVPMS on Linux. I have Tomcat installed, but when it looks at the war file, it has a dummy spit. I am running Ubuntu Hardy 8.04 64bit, and I do remember reading somewhere that the Ubuntu packaged version of Tomcat has an issue that doesn't agree with OpenVPMS.

I am a Linux guru, but I have never used Tomcat before, and I thought I should ask the question before going on my own little quest to find the issue.

aF _______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/mailman/listinfo/users

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

OpenVPMS on Linux

Hi Alex,

I suppose the first thing I would ask is what version of Tomcat, Java and Mysql have you installed.  Second if you could attach a Tomcat log file with the errors I can probably narrow down the cause..

It may be associated with versions as discussed in a previous post http://www.openvpms.org/first-time-setup

Cheers

Tony

Re: Re: OpenVPMS on Linux

Hi Tony,

Here are the versions of software that I am running

ii tomcat5.5 5.5.25-5ubuntu1 Servlet and JSP engine ii java-common 0.28ubuntu3 Base of all Java packages ii libbcel-java 5.2-3ubuntu1 Analyze, create, and manipulate (binary) Jav ii libcommons-beanutils-java 1.8.0~beta-1 utility for manipulating JavaBeans ii libcommons-collections-java 2.1.1-8 A set of abstract data type interfaces and i ii libcommons-collections3-java 3.1a-3.1 A set of abstract data type interfaces and i ii libcommons-daemon-java 1.0.2~svn20061127-6 library to launch Java applications as daemo ii libcommons-dbcp-java 1.2.2-1 Database Connection Pooling Services ii libcommons-digester-java 1.8-1 Rule based XML Java object mapping tool ii libcommons-el-java 1.0-4 Implementation of the JSP2.0 Expression Lang ii libcommons-launcher-java 1.1-3 cross platform java application launcher ii libcommons-logging-java 1.1-1ubuntu1 commmon wrapper interface for several loggin ii libcommons-modeler-java 2.0.1-4 convenience library to use Java Management E ii libcommons-pool-java 1.3-1 pooling implementation for Java objects ii libecj-java 3.3.0+0728-5 Eclipse Java compiler (library) ii libjaxp1.3-java 1.3.04-2 Java XML parser and transformer APIs (DOM, S ii liblog4j1.2-java 1.2.15-2 Logging library for java ii libmx4j-java 3.0.1-3 An open source implementation of the JMX(TM) ii libregexp-java 1.4-4 regular expression library for Java ii libservlet2.3-java 4.0-10 Servlet 2.3 and JSP 1.2 Java classes and doc ii libservlet2.4-java 5.0.30-6ubuntu1 Servlet 2.4 and JSP 2.0 Java library. ii libtomcat5.5-java 5.5.25-5ubuntu1 Java Servlet engine -- core libraries ii libxerces2-java 2.9.0-1 Validating XML parser for Java with DOM leve ii sun-java5-bin 1.5.0-15-0ubuntu1 Sun Java(TM) Runtime Environment (JRE) 5.0 ( ii sun-java5-demo 1.5.0-15-0ubuntu1 Sun Java(TM) Development Kit (JDK) 5.0 demos ii sun-java5-jdk 1.5.0-15-0ubuntu1 Sun Java(TM) Development Kit (JDK) 5.0 ii sun-java5-jre 1.5.0-15-0ubuntu1 Sun Java(TM) Runtime Environment (JRE) 5.0 ( ii libdbd-mysql-perl 4.005-1 A Perl5 database interface to the MySQL data ii libmysqlclient15off 5.0.51a-3ubuntu5.1 MySQL database client library ii mysql-client-5.0 5.0.51a-3ubuntu5.1 MySQL database client binaries ii mysql-common 5.0.51a-3ubuntu5.1 MySQL database common files ii mysql-server 5.0.51a-3ubuntu5.1 MySQL database server (meta package dependin ii mysql-server-5.0 5.0.51a-3ubuntu5.1 MySQL database server binaries ii php5-mysql 5.2.4-2ubuntu5.1 MySQL module for php5

Here is the log file,

10/07/2008 09:18:28 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8180 10/07/2008 09:18:29 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 10/07/2008 09:18:29 org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8180 10/07/2008 09:18:29 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime 10/07/2008 09:18:36 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 10/07/2008 09:18:36 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 10/07/2008 09:18:36 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 500 ms 10/07/2008 09:18:36 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 10/07/2008 09:18:36 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5 10/07/2008 09:18:36 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 10/07/2008 09:18:36 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive openvpms.war 10/07/2008 09:18:37 org.apache.commons.modeler.Registry registerComponent SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/openvpms,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:585) 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:585) 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/openvpms/WEB-INF/classes/logging.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:700) 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:255) 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:966) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:319) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:260) at org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328) at org.apache.commons.modeler.BaseModelMBean.(BaseModelMBean.java:117) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378) ... 33 more 10/07/2008 09:18:37 org.apache.catalina.core.StandardPipeline registerValve INFO: Can't register valve org.apache.catalina.core.StandardContextValve[/openvpms] 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:585) 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:585) 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/openvpms/WEB-INF/classes/logging.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:700) 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:255) 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:966) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:319) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:260) at org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328) at org.apache.commons.modeler.BaseModelMBean.(BaseModelMBean.java:117) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378) ... 33 more 10/07/2008 09:18:37 org.apache.catalina.startup.ContextConfig processDefaultWebConfig SEVERE: Parse error in default web.xml java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina.core) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1279) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:677) at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:614) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1043) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148) 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:585) 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:585) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) 10/07/2008 09:18:37 org.apache.catalina.startup.ContextConfig processDefaultWebConfig SEVERE: Occurred at line 87 column 14 10/07/2008 09:18:37 org.apache.catalina.startup.ContextConfig applicationWebConfig SEVERE: Parse error in application web.xml file at jndi:/localhost/openvpms/WEB-INF/web.xml java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/servlet-api-2.4.jar read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.util.zip.ZipFile.(ZipFile.java:198) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:70) at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:56) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:53) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:102) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124) at java.net.URL.openStream(URL.java:1007) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:352) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1044) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148) 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:585) 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:585) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) 10/07/2008 09:18:37 org.apache.catalina.startup.ContextConfig start SEVERE: Marking this application unavailable due to previous error(s) 10/07/2008 09:18:37 org.apache.commons.modeler.Registry registerComponent SEVERE: Error registering Catalina:type=Manager,path=/openvpms,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.session.ManagerBase.init(ManagerBase.java:719) at org.apache.catalina.session.StandardManager.start(StandardManager.java:619) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:432) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4160) 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:585) 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:585) 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/openvpms/WEB-INF/classes/logging.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:700) 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:255) 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:966) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:319) at javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoSupport.java:260) at org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328) at org.apache.commons.modeler.BaseModelMBean.(BaseModelMBean.java:117) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378) ... 34 more 10/07/2008 09:18:37 org.apache.catalina.core.StandardContext start SEVERE: Error getConfigured 10/07/2008 09:18:37 org.apache.catalina.core.StandardContext start SEVERE: Context [/openvpms] startup failed due to previous errors 10/07/2008 09:18:37 org.apache.commons.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/openvpms/WEB-INF/classes/logging.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:700) 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:255) at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:166) at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197) at com.sun.jmx.trace.Trace.isSelected(Trace.java:84) at com.sun.jmx.mbeanserver.RepositorySupport.isTraceOn(RepositorySupport.java:87) at com.sun.jmx.mbeanserver.RepositorySupport.contains(RepositorySupport.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:556) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619) at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:612) at org.apache.catalina.session.ManagerBase.destroy(ManagerBase.java:692) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:693) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4360) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246) 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:585) 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:585) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) 10/07/2008 09:18:37 org.apache.commons.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.security.AccessControlException: access denied (java.io.FilePermission /WEB-INF/classes/logging.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:700) 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:255) at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:166) at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197) at com.sun.jmx.trace.Trace.isSelected(Trace.java:84) at com.sun.jmx.mbeanserver.RepositorySupport.isTraceOn(RepositorySupport.java:87) at com.sun.jmx.mbeanserver.RepositorySupport.contains(RepositorySupport.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:556) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619) at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:612) at org.apache.catalina.core.StandardContext.resourcesStop(StandardContext.java:3907) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4386) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246) 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:585) 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:585) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) 10/07/2008 09:18:37 org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load logging.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 10/07/2008 09:18:37 org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load logging.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 10/07/2008 09:18:37 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8180 10/07/2008 09:18:37 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 10/07/2008 09:18:37 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/19 config=null 10/07/2008 09:18:38 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 10/07/2008 09:18:38 org.apache.catalina.startup.Catalina start INFO: Server startup in 1778 ms

_______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/mailman/listinfo/users

Re: Re: OpenVPMS on Linux

It seems to be security permission related.

I have added the following to /etc/tomcat5.5/policy.d/50user.policy, and alot of the errors have disappeared. I guess I should have read the logs and jumped straight in. There are still a few errors spitting out, but they seem to be permissions too.

aF

grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" { permission java.io.FilePermission "${catalina.base}/webapps/openvpms/WEB-INF/classes/logging.properties", "read"; }; _______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/mailman/listinfo/users

RE: Re: OpenVPMS on Linux

Hi Alex,

Yes, was just looking on net for related errors and it seem Tomcat 5.5.25 installs the security-manager as default and therefore adds some configuration complexity to deploying the web application.

>From my brief research you need to do following in /etc/tomcat5.5/policy.d/04webapps.policy

grant codeBase "file:/var/lib/tomcat5.5/webapps/openvpms/-" { permission java.security.AllPermission; };

Will continue to research though as only first solution I have found ...

Cheers Tony

Re: Re: OpenVPMS on Linux

Thanks Tony,

That definitely is what the problem is. Apparently, the packaged version under Debian and Ubuntu need the logging lines to be added as well.

grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" { permission java.io.FilePermission "${catalina.base}/webapps/openvpms/WEB-INF/classes/logging.properties", "read"; };

grant codeBase "file:${catalina.base}/webapps/openvpms/-" { permission java.security.AllPermission; };

Are there any implications to allowing all permissions for openvpms?

aF

Tony De Keizer wrote:

> Hi Alex, > > Yes, was just looking on net for related errors and it seem Tomcat 5.5.25 installs the security-manager as default and therefore adds some configuration complexity to deploying the web application. > > >From my brief research you need to do following in /etc/tomcat5.5/policy.d/04webapps.policy > > grant codeBase "file:/var/lib/tomcat5.5/webapps/openvpms/-" { > permission java.security.AllPermission; > }; > > Will continue to research though as only first solution I have found ... > > Cheers > Tony >

RE: Re: OpenVPMS on Linux

Hi Alex,

I am not sure at this stage but given it relates to be being able to write to the webapp files rather than say the database, and also most installations are somehow protected from public tampering, I would say not.

We may be able to find some in between security settings that would be more appropriate for say a site that is directly accessible from the outside world ..

Cheers Tony

Syndicate content