dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00434
Re: Trouble getting the dhis.war webapp to deploy
>From first glance, you may need to delegate authority. I seem to
remember having this issue on some version of Linux I was using where
by default, Tomcat was installed with a bit more security.
Try adding
grant codeBase "file:${catalina.home}/webapps/dhis/-" {
permission java.security.AllPermission;
};
to your catalina.policy file, restart Tomcat, and see if that works. I
am just guessing though, but it might be worth a try.
Regards,
JPP
On Tue, Mar 31, 2009 at 8:22 AM, andris <andris@xxxxxxxxxxx> wrote:
> Hello,
>
> I was following the install instructions at:
> http://208.76.222.114/confluence/display/DOC/Installing+DHIS+2 to get
> DHIS up and running for some testing, and I'm having some trouble
> starting dhis.war. Any assistance greatly appreciated!
>
> Apache2, Tomcat, postgresql are all installed and appear to be happy. I
> am able to successfully access the tomcat manager, and to deploy simple
> sample .war apps with no problems.
>
> However, when I try to deploy dhis.war, I get the following in
> /var/log/tomcat6/catalina.2009-03-30.log:
>
> Mar 30, 2009 5:21:52 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/var/lib/tomcat6/webapps/dhis/WEB-INF/lib/servlet-
> api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
> Offending class: javax/servlet/Servlet.class
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/dhis] startup failed due to previous errors
>
> ...and the following in /var/log/tomcat6/localhost.2009-03-30.log:
>
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.ApplicationContext log
> INFO: HTMLManager: start: Starting web application at '/dhis'
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Exception sending context initialized event to listener instance
> of class org.springframework.web.context.ContextLoaderListener
> java.lang.ExceptionInInitializerError
> at
> org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:146)
> at
> org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
> at
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
> at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:636)
> Caused by: java.security.AccessControlException: access denied
> (java.util.PropertyPermission
> org.apache.commons.logging.LogFactory.HashtableImpl read)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
> at
> java.security.AccessController.checkPermission(AccessController.java:553)
> at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> at
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
> at java.lang.System.getProperty(System.java:669)
> at
> org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320)
> at
> org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)
> ... 34 more
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Exception sending context initialized event to listener instance
> of class org.hisp.dhis.system.startup.StartupListener
> java.lang.NullPointerException
> at
> org.hisp.dhis.system.startup.StartupListener.contextInitialized(StartupListener.java:52)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
> at
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
> at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:636)
> Mar 30, 2009 5:21:52 PM org.apache.catalina.core.ApplicationContext log
>
> Thanks much,
>
> Andris
> --
> This message was sent from Launchpad by the user
> andris (https://launchpad.net/~andris-inveneo)
> using the "Contact this team" link on the DHIS 2 developers team page.
> For more information see
> https://help.launchpad.net/YourAccount/ContactingPeople
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
References