[SCO-85] sakai-scorm fails to build due to 'testSimple' test failure Created: 02-Aug2012 Updated: 13-Aug-2012 Resolved: 12-Aug-2012 Status: Project: Component/s: Affects Version/s: Fix Version/s: Resolved Contrib: SCORM Player None 3.0.2 Type: Reporter: Resolution: Labels: Bug Cynthia Gast Fixed None Attachments: 3.0.3 Priority: Assignee: Votes: sakai-scorm-testFails-depTree.txt Major Roland Groen 0 sakai-scorm-testFails.txt Description The University of Virginia is interested in adding the contrib project "Sakai SCORM Player" to our 2.8.1 Sakai i https://confluence.sakaiproject.org/display/SCORMPLAYER/Sakai+SCORM+player+installation+guide), the b Excerpt from output in tomcat log: [...] [INFO] Surefire report directory: /usr/local/sakai/sakai_2-8-x_dev/tools/sakai-scorm/scorm-impl/model/target/su ------------------------------------------------------TESTS ------------------------------------------------------Running org.sakaiproject.scorm.dao.hibernate.DataManagerDaoImplTest [...] Aug 1, 2012 10:42:48 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: disabled Aug 1, 2012 10:42:48 AM org.hibernate.cfg.SettingsFactory createCacheProvider INFO: Cache provider: org.hibernate.cache.EhCacheProvider Aug 1, 2012 10:42:48 AM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySin INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2e530 [testPropertiesConfigurer,javax.sql.DataSource,org.sakaiproject.springframework.orm.hibernate.GlobalSessionF tentPackageDaoTarget,scorm.ContentPackageManifestDaoTarget,scorm.DataManagerDaoTarget,org.sakaiproje scorm.dao.api.DataManagerDao,org.sakaiproject.scorm.dao.LearnerDao]; root of factory hierarchy Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.467 sec <<< FAILURE! testSimple(org.sakaiproject.scorm.dao.hibernate.DataManagerDaoImplTest) Time elapsed: 2.237 sec <<< ERRO org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.spr net/sf/ehcache/CacheException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAu [...] Here is what I did to reach this point: I exported the source for both "contrib/edia/sakai-wicket-for-scorm/" (creating sakai-wicket project) and "contrib versions (which appear to be the latest code from trunk). sakai-wicket: 3.0.0 tag sakai-scorm: 3.0.2 tag Changed version number information to match ours. Built sakai-wicket first (mvn clean install), then sakai-scorm Note: It is possible to successfully build 'sakai-scorm' if I by-pass running tests (using -Dmaven.test.skip=true); howev Comments Comment by Cynthia Gast [ 03-Aug-2012 ] * UVa Environment: ** Sakai 2.8.1 ** MySQL 5.1.58 ** Tomcat 5.5.35 Comment by Roland Groen [ 05-Aug-2012 ] Probably a dependency issue, I'll fixate the EH cache by adding it to the pom.xml file. Comment by Roland Groen [ 05-Aug-2012 ] Issue could not be reproduced: not with 2.8.0 and 2.8.1. Nevertheless, I added the dep to the pom.xml file with test scope. If this issue still appears: please reopen this issue and attach the result of the following command: mvn dependency:tree Comment by Cynthia Gast [ 08-Aug-2012 ] I continue to receive a build failure on the test previously indicated, after updating our source to include the Aug. 5, 2012 trunk updates. Reopening this issue, as requested. Comment by Cynthia Gast [ 08-Aug-2012 ] Attaching 2 files for consideration: 1 - the build log 2 - the requested dependency tree log Comment by Roland Groen [ 12-Aug-2012 ] The attached file contains the following hibernate dependencies: [INFO] +- org.hibernate:hibernate:jar:3.2.7.ga:provided [INFO] | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | +- commons-logging:commons-logging:jar:1.1.1:provided (version managed from 1.0.4) [INFO] | +- asm:asm-attrs:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- antlr:antlr:jar:2.7.6:provided [INFO] | +- cglib:cglib:jar:2.1_3:provided [INFO] | +- asm:asm:jar:1.5.3:provided [INFO] | \- commons-collections:commons-collections:jar:3.2.1:provided (version managed from 2.1.1) Mine contains these: [INFO] +- org.hibernate:hibernate:jar:3.2.7.ga:provided [INFO] | +- net.sf.ehcache:ehcache:jar:1.6.1:provided (version managed from 1.2.3) [INFO] | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | +- asm:asm-attrs:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- cglib:cglib:jar:2.1_3:provided [INFO] | \- asm:asm:jar:1.5.3:provided Comment by Roland Groen [ 12-Aug-2012 ] The pom file from hibernate itself is quite conclusive on the dependency: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.7.ga/hibernate-3.2.7.ga.pom <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>1.2.3</version> </dependency> Comment by Roland Groen [ 12-Aug-2012 ] Added the dep to tools too. Comment by Cynthia Gast [ 13-Aug-2012 ] Thank-you! This fix works for us, allowing all tests to run without build failure. Generated at Sun Mar 06 22:48:00 CST 2016 using JIRA 6.4.11#64026sha1:78f6ec473a3f058bd5d6c30e9319c7ab376bdb9c.