grouper-users - [grouper-users] Error "parent dir of log file doesn't exist" using Tomcat 8
Subject: Grouper Users - Open Discussion List
List archive
- From: Sonia Zorba <>
- To:
- Subject: [grouper-users] Error "parent dir of log file doesn't exist" using Tomcat 8
- Date: Fri, 26 Aug 2016 14:16:07 +0200 (CEST)
- Ironport-phdr: 9a23:OdRctRS0/8ZMk/Fj1JKW3QUj0tpsv+yvbD5Q0YIujvd0So/mwa67bBSN2/xhgRfzUJnB7Loc0qyN7PCmBDdLuMvJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3JHFEqfaGtRsaS0pz2hKiO/MjceQJVnDenJK5pIQ+thQTXqsQMh4Z+cOA8xgaajGFPfrFtwmVpLBqhmAz274/k7pl5+S14vPs97IhBV6z0OaUkG+8LRA86Onw4sZW4/SLIShGCsyZEXw==
Hi,
I've got a working Grouper UI + Web services (version 2.3.0) on Tomcat 6, but
now I would to upgrade to Tomcat 8.
I edited the Tomcat 8 server.xml adding:
<Context docBase="/opt/grouper/2.3.0/grouper.ui-2.3.0/dist/grouper"
path="/grouper" reloadable="false"/>
<Context
docBase="/opt/grouper/2.3.0/grouper.ws-2.3.0/grouper-ws/build/dist/grouper-ws"
path="/grouper-ws" reloadable="false"/>
and my <Realm... /> with commonRole="grouper_user"
and I copied the tomcat-users.xml
The UI app is working, but if I try to access the webservices I have the
following error:
java.lang.NoClassDefFoundError: Could not initialize class
edu.internet2.middleware.grouper.hooks.beans.HooksContext
edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:680)
Looking at catalina.out I see:
Grouper warning: parent dir of log file doesnt exist: /logs
Error trying to make parent dirs for logger or logging first statement, check
to make sure you have proper file permissions, and that your servlet
container is giving your app rights to access the log directory (e.g. for
tomcat set TOMCAT5_SECURITY=no), google it for more info
java.lang.RuntimeException: Could not create directory : /
at
edu.internet2.middleware.grouper.util.GrouperUtil.mkdirs(GrouperUtil.java:7855)
at
edu.internet2.middleware.grouper.util.GrouperUtil.logDirsCreateIfNotDone(GrouperUtil.java:744)
at
edu.internet2.middleware.grouper.util.GrouperUtil.getLog(GrouperUtil.java:699)
at
edu.internet2.middleware.grouper.util.GrouperUtil.<clinit>(GrouperUtil.java:6569)
at
edu.internet2.middleware.grouper.cache.EhcacheController.<clinit>(EhcacheController.java:210)
at
edu.internet2.middleware.grouper.cache.GrouperCache.<init>(GrouperCache.java:106)
at
edu.internet2.middleware.grouper.hooks.beans.HooksContext.<clinit>(HooksContext.java:148)
at
edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:659)
It seems that in log4j.properties it is used a wrong ${grouper.home} property.
What configuring step am I missing?
Thanks,
Sonia
- [grouper-users] Error "parent dir of log file doesn't exist" using Tomcat 8, Sonia Zorba, 08/26/2016
Archive powered by MHonArc 2.6.19.