grouper-users - Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error
Subject: Grouper Users - Open Discussion List
List archive
Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error
Chronological Thread
- From: David Smith <>
- To: Chris Hyzer <>
- Cc: "" <>
- Subject: Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error
- Date: Mon, 19 Apr 2010 15:05:53 -0700
Hi Chris,
I've never installed Grouper 1.4, but I have built the GridGrouper 1.3 Client API on the machine before in a separate directory. I couldn't find which version of Grouper that GridGrouper is built on top of, so it is possible that the Grouper 1.4 libraries are in that area on my machine if that is the version that runs with GridGrouper 1.3. However I didn't have anything hard-coded for the GROUPER_HOME in my environment while deploying the tomcat app and didn't link any of its files to the system library path - is it still possible that these libraries are being found by Grouper 1.5?
After setting GROUPER_HOME to the appropriate location, GSH can start grouper:
Using GROUPER_HOME: /usr/local/grouper/grouper.quickstart-1.5.2/grouper
Using GROUPER_CONF: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/conf
Using JAVA: /usr/java/default/bin/java
using MEMORY: 64m-512m
Grouper starting up: version: 1.5.2, build date: 2010/03/12 12:37:44, env: <no label configured>
grouper.properties read from: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/conf/grouper.properties
Grouper current directory is: /usr/local/grouper/grouper.quickstart-1.5.2
log4j.properties read from: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/conf/log4j.properties
Grouper is logging to file: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/logs/grouper_error.log, at min level WARN for package: edu.internet2.middleware.grouper, based on log4j.properties
grouper.hibernate.properties: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/conf/grouper.hibernate.properties
grouper.hibernate.properties:
sa@jdbc:hsqldb:hsql://localhost/grouper
sources.xml read from: /usr/local/grouper/grouper.quickstart-1.5.2/grouper/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml jdbc source id: example: GrouperJdbcConnectionProvider
Type help() for instructions
gsh 0%
All the steps I followed was for the clean install and not an upgrade. My tomcat instance is only used for grouper.
Thanks!
Chris Hyzer wrote:
This part:
Cant find version 22(V22) in objectName: Grouper,
edu.internet2.middleware.grouper.ddl.GrouperDdl
Makes me think there are Grouper 1.4 libraries somewhere. Have you ever
installed those? Can you start grouper with GSH? Can you paste the output
here? Is everything you did a clean install to 1.5.3 and not an upgrade? Is
the tomcat only used for grouper or for other things too?
Thanks,
Chris
-----Original Message-----
From: David Smith [mailto:] Sent: Monday, April 19, 2010 2:18 PM
To:
Subject: [grouper-users] Grouper Quick Start 1.5.2/1.5.3:
Hibernate/HSQL/Tomcat startup error
Environment:
RedHat Enterprise Linux 5 Desktop running on kernel 2.6.18-194.el5
Tomcat 5.5.23
JRE 1.6.0_19
I've followed the instructions in the Quick start documentation to deploy grouper to Tomcat 5. After deploying the webapp to Tomcat, starting HSQL through ant, and starting Tomcat, I see the following startup error occur in logsgrouper_ui.log:
2010-04-19 11:06:04,293 FATAL hib3.Hib3DAO: unable to initialize hibernate: Duplicate class/entity mapping ChangeLogEntryEntity
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping ChangeLogEntryEntity
at org.hibernate.cfg.Mappings.addClass(Mappings.java:118)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:145)
at org.hibernate.cfg.Configuration.add(Configuration.java:675)
at org.hibernate.cfg.Configuration.addXML(Configuration.java:446)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.addClass(Hib3DAO.java:218)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.initHibernateIfNotInitted(Hib3DAO.java:116)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO.session(Hib3DAO.java:260)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAOFactory.getSession(Hib3DAOFactory.java:159)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.<init>(HibernateSession.java:105)
at edu.internet2.middleware.grouper.hibernate.HibernateSession._internal_hibernateSession(HibernateSession.java:283)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:416)
at edu.internet2.middleware.grouper.hibernate.ByCriteriaStatic.list(ByCriteriaStatic.java:267)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.retrieveDdlsFromDb(GrouperDdlUtils.java:1615)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.retrieveDdlsFromCache(GrouperDdlUtils.java:1298)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.retrieveObjectNames(GrouperDdlUtils.java:1555)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.bootstrapHelper(GrouperDdlUtils.java:358)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.bootstrap(GrouperDdlUtils.java:261)
at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:83)
at edu.internet2.middleware.grouper.ui.CallerPageFilter.init(CallerPageFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardContext.filterStart(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployDirectory(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployDirectories(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so5bo62q.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
2010-04-19 11:06:04,305 ERROR ddl.GrouperDdlUtils: maybe the grouper_ddl table isnt there... if that is the reason its ok. info level logging will show underlying reason.unable to initialize hibernate: Duplicate class/entity mapping ChangeLogEntryEntity,
Problem in HibernateSession: null,
Exception in list: (class edu.internet2.middleware.grouper.app.loader.db.Hib3GrouperDdl), ByCriteriaStatic, persistentClass: 'class edu.internet2.middleware.grouper.app.loader.db.Hib3GrouperDdl', criterions: null', cacheable: null, cacheRegion: null, entityName: null, tx type: null
2010-04-19 11:06:04,419 ERROR misc.GrouperStartup: Couldnt startup grouper: Cant find version 22(V22) in objectName: Grouper, edu.internet2.middleware.grouper.ddl.GrouperDdl
java.lang.RuntimeException: Cant find version 22(V22) in objectName: Grouper, edu.internet2.middleware.grouper.ddl.GrouperDdl
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.retieveVersion(GrouperDdlUtils.java:1256)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.bootstrapHelper(GrouperDdlUtils.java:391)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.bootstrap(GrouperDdlUtils.java:261)
at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:83)
at edu.internet2.middleware.grouper.ui.CallerPageFilter.init(CallerPageFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardContext.filterStart(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployDirectory(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployDirectories(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so5bo62q.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so5bo62q.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Caused by: java.lang.IllegalArgumentException: V22
at java.lang.Enum.valueOf(libgcj.so.7rh)
at edu.internet2.middleware.grouper.ddl.GrouperDdlUtils.retieveVersion(GrouperDdlUtils.java:1254)
...28 more
I've verified through the db-ui that the grouper_dll table does exist and the tomcat log reports some of this same exception in its own log.
Is this an issue that can be resolved in one of Grouper's config files, or will a source code change be necessary to fix the bug? This issue appears in both versions 1.5.2 and 1.5.3 and causes the UI webapp to be inaccessible through the browser (reporting the error "_The requested resource () is not available.")_.
Thanks,
David
- Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, David Smith, 04/19/2010
- RE: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, Chris Hyzer, 04/19/2010
- Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, David Smith, 04/19/2010
- Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, David Smith, 04/19/2010
- Re: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, David Smith, 04/19/2010
- RE: [grouper-users] Grouper Quick Start 1.5.2/1.5.3: Hibernate/HSQL/Tomcat startup error, Chris Hyzer, 04/19/2010
Archive powered by MHonArc 2.6.16.