Dharam, I believe following will be helpful to you.
IMO with the existing implementation, "security.json" file has to be kept in a locator/server directory. In your case you need to be keep it in a locator director (l1) and should work. Hope this helps. Nilkanth Patel. On Tue, Jun 6, 2017 at 2:40 PM, Thacker, Dharam <[email protected] > wrote: > Hi Jinmei & Team, > > > > I was going through “New Security In Apache Geode” video. I also tried to > start locator with ExampleSecurityManager and ExamplePostProcessor as shown > below, > > > > *locator.proprties* > > > > mcast-port=0 > > security-manager=org.apache.geode.examples.security.ExampleSecurityManager > > security-post-processor=org.apache.geode.examples. > security.ExamplePostProcessor > > > > > dir > > locator.properties > > security.json > > security-config.jar > > > > My security-config.jar has following structure, > > --- resources -> security.json > > --- META-INF -> MANIFEST.MF > > > > Could you guide me with below error? > > > > gfsh>start locator --name=locator1 --properties-file=locator.properties > --classpath=C:\Users\GeodeWorkDir\security-config.jar > > Starting a Geode Locator in C:\Users\GeodeWorkDir\locator1... > > The Locator process terminated unexpectedly with exit status 1. Please > refer to the log file in C:\Users\GeodeWorkDir\locator1 for full details. > > > > Jun 06, 2017 2:19:50 PM org.apache.geode.distributed.LocatorLauncher > failOnStart > > INFO: locator is exiting due to an exception > > org.apache.geode.security.AuthenticationFailedException: > ExampleSecurityManager: unable to find json resource "security.json" as > specified by [security-json]. > > at org.apache.geode.examples.security.ExampleSecurityManager.init( > ExampleSecurityManager.java:132) > > at org.apache.geode.internal.security.IntegratedSecurityService. > initSecurity(IntegratedSecurityService.java:332) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > initialize(GemFireCacheImpl.java:1208) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > basicCreate(GemFireCacheImpl.java:798) > > at org.apache.geode.internal.cache.GemFireCacheImpl.create( > GemFireCacheImpl.java:783) > > at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:178) > > at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:218) > > at org.apache.geode.distributed.internal.InternalLocator. > startCache(InternalLocator.java:767) > > at org.apache.geode.distributed.internal.InternalLocator. > startDistributedSystem(InternalLocator.java:752) > > at org.apache.geode.distributed.internal.InternalLocator. > startLocator(InternalLocator.java:357) > > at org.apache.geode.distributed.internal.InternalLocator. > startLocator(InternalLocator.java:315) > > at org.apache.geode.distributed.LocatorLauncher.start( > LocatorLauncher.java:630) > > at org.apache.geode.distributed.LocatorLauncher.run( > LocatorLauncher.java:532) > > at org.apache.geode.distributed.LocatorLauncher.main( > LocatorLauncher.java:174) > > > > Exception in thread "main" > org.apache.geode.security.AuthenticationFailedException: > ExampleSecurityManager: unable to find json resource "security.json" as > specified by [security-json]. > > at org.apache.geode.examples.security.ExampleSecurityManager.init( > ExampleSecurityManager.java:132) > > at org.apache.geode.internal.security.IntegratedSecurityService. > initSecurity(IntegratedSecurityService.java:332) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > initialize(GemFireCacheImpl.java:1208) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > basicCreate(GemFireCacheImpl.java:798) > > at org.apache.geode.internal.cache.GemFireCacheImpl.create( > GemFireCacheImpl.java:783) > > at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:178) > > at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:218) > > at org.apache.geode.distributed.internal.InternalLocator. > startCache(InternalLocator.java:767) > > at org.apache.geode.distributed.internal.InternalLocator. > startDistributedSystem(InternalLocator.java:752) > > at org.apache.geode.distributed.internal.InternalLocator. > startLocator(InternalLocator.java:357) > > at org.apache.geode.distributed.internal.InternalLocator. > startLocator(InternalLocator.java:315) > > at org.apache.geode.distributed.LocatorLauncher.start( > LocatorLauncher.java:630) > > at org.apache.geode.distributed.LocatorLauncher.run( > LocatorLauncher.java:532) > > at org.apache.geode.distributed.LocatorLauncher.main( > LocatorLauncher.java:174) > > > > Thanks & Regards, > > Dharam > > This message is confidential and subject to terms at: http:// > www.jpmorgan.com/emaildisclaimer including on confidentiality, legal > privilege, viruses and monitoring of electronic messages. If you are not > the intended recipient, please delete this message and notify the sender > immediately. Any unauthorized use is strictly prohibited. >
