You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mohan T <Mo...@ramco.com> on 2019/06/26 03:59:07 UTC

Issue in configuring JAVA Security policy

Dear All,

We have the following environment set at our premises.

Apache tomcat server:apache-tomcat-8.5.35
Red Hat Enterprise Linux Server release 7.4
jdk1.8.0_162

When we enable JAVA security policy the components are getting deployed. It throws the following error.

Anyone has encountered this issue and if it can be overcome, kindly help me out.

java.security.policy: error adding Permission, javax.management.MBeanPermission:java.lang.IllegalArgumentException: MBeanPermission: actions can't be null
25-Jun-2019 21:36:16.314 SEVERE [main] org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot create resource instance
                at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:96)
                at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
                at org.apache.naming.NamingContext.lookup(NamingContext.java:839)
                at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
                at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)
                at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
                at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
                at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
                at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:110)
                at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:82)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:395)
                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:339)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:786)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:687)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)

25-Jun-2019 21:36:16.315 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
25-Jun-2019 21:36:16.315 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.35
25-Jun-2019 21:36:16.399 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/security.war

Thanks

Mohan






DISCLAIMER: This communication contains information which is confidential and the copyright of Ramco Systems Ltd, its subsidiaries or a third party ("Ramco"). This email may also contain legally privileged information. Confidentiality and legal privilege attached to this communication are not waived or lost by reason of mistaken delivery to you.This email is intended to be read or used by the addressee only. If you are not the intended recipient, any use, distribution, disclosure or copying of this email is strictly prohibited without the express written approval of Ramco. Please delete and destroy all copies and email Ramco at Legal@ramco.com immediately. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of Ramco. Except as required by law, Ramco does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference. If you do not wish to receive such communications, please forward this communication to marketing@ramco.com and express your wish not to receive such communications henceforth.

Re: Issue in configuring JAVA Security policy

Posted by Mark Thomas <ma...@apache.org>.
On 26/06/2019 04:59, Mohan T wrote:
> Dear All,
> 
> We have the following environment set at our premises.
> 
> Apache tomcat server:apache-tomcat-8.5.35
> Red Hat Enterprise Linux Server release 7.4
> jdk1.8.0_162
> 
> When we enable JAVA security policy the components are getting deployed. It throws the following error.
> 
> Anyone has encountered this issue and if it can be overcome, kindly help me out.
> 
> java.security.policy: error adding Permission, javax.management.MBeanPermission:java.lang.IllegalArgumentException: MBeanPermission: actions can't be null

The above error suggests to me that the security policy file is not
correctly formatted.

> 25-Jun-2019 21:36:16.314 SEVERE [main] org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans Exception processing Global JNDI Resources
> javax.naming.NamingException: Cannot create resource instance

This looks like the consequence of the previous error.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org