grouper-users - RE: [grouper-users] Can't get new ehcache hierarchical files to work
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: Peter DiCamillo <>, "" <>
- Subject: RE: [grouper-users] Can't get new ehcache hierarchical files to work
- Date: Mon, 5 Dec 2016 22:52:45 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:W+81nRIEPWdZ9XvBp9mcpTZWNBhigK39O0sv0rFitYgXKv3yrarrMEGX3/hxlliBBdydsKMfzbaH+Pi5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6zbL9oIxi7qQrdutULjYB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVQTlgzkbOTEn7G7Xi9RwjKNFrxKnuxx/2JPfbIWMOPZjYq/RYdYWSGxcVchTSiNBGJuxYYsRAeQcIeZWoYrzp1UMohu/GQajC/jixSVUinPqx6A2z/gtHAPA0Qc9H9wOqnPUrNDtOascU+60zKjJwivZb/9OxDzw9ojIcgogofGXU757bM3cyUwzGAPFjlSRqJLqPymO2+QMqGiU8/BsVf+3i2E5rQFxpCKjydkxhYnUn48YzE3P+yt+wIYwP9K4SUh7bMagEJtXuCGaOJV5Qtk4T252pSk617sLsoO4cigS0Jkr2QTQZ+Caf4WN/x7vSfudLDJ2hH9qZL6zmxO//Eq+xeDzSMW51VNHojRZntXQrnwByhLe5tSdRvZ540utwyiD2x3X5+1ePEw5l6vWJpg8ybAqjJUTq17MHirulUX2kqCWckIk9/Cw5en7ZbvquoKQO5Zphw78LKgig8u/Dv8mPQQUWGib5Pi826bk/U3kRrVFk+c6krHDsJDdOcQUuLK2AxNU0oYk7RazFTCm0MkEnXkDK1JFfxGHg5L1NFHJJfD0Ffa/g1Kynzd33/3KIKfuDonQInXGjbvtYKtx5ktSyAc80dxT+5dZB7MfL//8REP8sdnVAgElPwCo2+rnDc9y1oIaWWKBGK+ZN6bSvEeN5u0zI+mNZI4UtyjnK/U+5v7ulmM2lUUAfamxw5QXbna4Eu54LEqEfHrgms0BHnsSvgoiUOzqj0WPUTFJZ3a1QqI8/i80CJi/AYfeXYCinqaB3DygE51SZ2BGEUyMEWz2e4meWvcMbj6SLdF7kjwCS7ehV5Et2QuwuwDn1ro0ZtbTrxUVqZ/5nPR0zOTWlBU28nQgF8mB3nu6Q2B/l2YJQzsx9KplplN7jFqPzP48y7ZXD9tO//5TFxohOITH5+18F93oXA/dJJGEREvsCoGpGzYsVt8rhsIVblxmM9Skkh3Z2Se2WfkYm6HdV7Iu9aeJlVjgNctnjz7t1LMglBNuFs5ENXy0i7RX9hPYQZPRnkOf0aumaPJPj2b26G6fwD/W7wljWwlqXPCABChHaw==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Hmmm, you shouldn’t have to delete ehcache.xml if you successfully installed the patch unless you didn’t have an up to date installer... I think it is working for me… Are you sure the patch installed correctly? (and you installed it in all envs) [appadmin@i2midev1 patchesAutoWs]$
java -jar grouperInstaller.jar Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]:
patch Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/opt/grouper/2.3/patchesAutoWs/tarballs]:
What do you want to patch? api, ui, ws, pspng, or psp? [api]:
ws Where is the grouper WS installed? /opt/tomcats/tomcat_g/webapps/grouper-ws_v2_3 What do you want to do with patches (install, revert, status, fixIndexFile)? [install]:
status Do you want to fix the patch index file (download all patches and see if they are installed?) (not recommended) (t|f)? [f]: ################ Checking patch grouper_v2_3_0_api_patch_35 Patch: grouper_v2_3_0_api_patch_35: was applied on: 2016/12/05 19:28:06 [appadmin@i2midev1 patchesAutoWs]$ grep grouper_v2_3_0_api_patch_35.state /opt/tomcats/tomcat_g/webapps/grouper-ws_v2_3/WEB-INF/grouperPatchStatus.properties
grouper_v2_3_0_api_patch_35.state = applied [appadmin@i2midev1 patchesAutoWs]$ If that didn’t help, try putting this in the log4j.properties and stop grouper, delete logs, start grouper, and send me what it says. log4j.logger.edu.internet2.middleware.grouper.cache.EhcacheController = DEBUG Thanks Chris -----Original Message----- I've been trying to get the hierarchical ehcache configuration to work,
which is from GRP-1417 and in API patch 35. I'm doing this with Grouper
2.3, and I didn't have to convert ehcache.xml because we've never
changed it. I used grouper.cache.base.properties and group.cache.properties from the patch and deleted ehcache.xml. When I
run the Grouper Shell it seems to start up ok, but in the log file I get: [main] WARN ConfigurationFactory.parseConfiguration(134) - - No
configuration found. Configuring ehcache from ehcache-failsafe.xml found
in the classpath: jar:file:/opt/local/mace/grouper/GROUPER_2_3_BRANCH/grouper/lib/grouper/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml and after that around 150 messages like this for different caches: [main] WARN AbstractEhcacheRegionFactory.getCache(161) - - HHH020003:
Could not find a specific ehcache configuration for cache named
[org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults. At that point, if I put back ehcache.xml then the startup is normal. If
I then keep ehcache.xml but remove grouper.cache.base.properties and
group.cache.properties, then the Grouper Shell fails to start and I get
this exception: Exception in thread "main" java.lang.ExceptionInInitializerError at edu.internet2.middleware.grouper.subj.SubjectResolverFactory.getInstance(SubjectResolverFactory.java:60) at edu.internet2.middleware.grouper.SubjectFinder.getResolver(SubjectFinder.java:878) at edu.internet2.middleware.grouper.SubjectFinder.internal_getGSA(SubjectFinder.java:920) at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:225) at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:151) at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31) Caused by: java.lang.RuntimeException: Cant find the hierarchy config
key: grouper.cache.config.hierarchy in config files: grouper.cache.properties or grouper.cache.base.properties at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFiles(ConfigPropertiesCascadeBase.java:799) at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFileOrCache(ConfigPropertiesCascadeBase.java:905) at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveConfig(ConfigPropertiesCascadeBase.java:89) at edu.internet2.middleware.grouper.cfg.GrouperCacheConfig.retrieveConfig(GrouperCacheConfig.java:49) at edu.internet2.middleware.grouper.cache.EhcacheController.initialize(EhcacheController.java:285) at edu.internet2.middleware.grouper.cache.EhcacheController.getCache(EhcacheController.java:194) at edu.internet2.middleware.grouper.cache.GrouperCache.<init>(GrouperCache.java:106) at edu.internet2.middleware.grouper.subj.CachingResolver.<clinit>(CachingResolver.java:72) ... 6 more So after applying the patch, I only get a normal startup if I have both
ehcache.xml and the properties files. While we have no local mods to the Grouper API, we do have UI mods, so I
build Grouper from the source rather than using patching. But I was very
careful to examine the patch and update the sources files, and I really
don't think that's the problem. Let me know if you'd like additional
information. I have no problem using ehcache.xml, but I thought it would
be a good idea to include the hierarchical files in our next Grouper
upgrade. Peter |
- [grouper-users] Can't get new ehcache hierarchical files to work, Peter DiCamillo, 12/03/2016
- RE: [grouper-users] Can't get new ehcache hierarchical files to work, Hyzer, Chris, 12/05/2016
Archive powered by MHonArc 2.6.19.