[Building Sakai] Site Stats Install

Steve Swinsburg steve.swinsburg at gmail.com
Thu Oct 29 16:08:18 PDT 2009


Hi Paul,

You don't need any repo listed in your ~/.m2/settings.xml, they are pulled
in from the master poms. Listing the maven repo sounds like a relic from
using Maven1.

Check out section 3.3 here to clean up your ~/.m2/settings.xml:
http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Source+Install+(2.5)


cheers,
Steve




On Fri, Oct 30, 2009 at 7:16 AM, Paul Dagnall <dagnalpb at notes.udayton.edu>wrote:

> Hi Nuno
> I do not have the *commons-beanutils-core* directory at all in my
> repository. It also is not referenced when I issue "mvn dependency:tree". I
> do have the commons-betwixt stuff though.
>
> I have http://source.sakaiproject.org/maven listed as a repository in
> settings.xml.
>
> Again, thank you for your help!
>
> Paul
>
> On Thu, Oct 29, 2009 at 5:12 AM, Nuno Fernandes <nuno at ufp.edu.pt> wrote:
>
>> I have removed all commons-* jars from my local maven repository and still
>> be able to compile and deploy properly!
>>
>> Are you running maven in offline mode? This is activated by either:
>>
>>    - specifying -o or --offline as command line argument
>>    - restricting list of repositories in ~/-m2/settings.xml to only local
>>    maven repository
>>
>> If yes, do not run it in offline mode as it may be the cause of the
>> problem.
>>
>> If you issue "mvn dependency:tree" you will get all dependencies needed.
>> You'll note that for "Sakai SiteStats Implementation",
>> commons-beanutils-core is a transitive dependency:
>> [INFO] +- commons-betwixt:commons-betwixt:jar:0.8:compile
>> [INFO] |  \- commons-beanutils:commons-beanutils-core:jar:1.7.0:compile
>>
>> Can you check that:
>>
>>    - both of these are in your maven local repository?
>>       - *ls
>>       ~/.m2/repository/commons-betwixt/commons-betwixt/0.8/commons-betwixt-0.8.jar
>>       *
>>       - *ls
>>       ~/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar
>>       *
>>    - mvn put commons-beanutils in the target folder after compilation
>>    (and before deploying to tomcat)?
>>       -
>>       - *ls
>>       sitestats-pack/target/sakai-sitestats-components-2.0.4/WEB-INF/lib/commons-beanutils*
>>       *
>>
>>
>> Nuno
>>
>>
>> On Thu, Oct 29, 2009 at 8:42 AM, Nuno Fernandes <nuno at ufp.edu.pt> wrote:
>>
>>> Hi Paul,
>>>
>>> The only difference in my setup is that my maven2 is older (2.0.9).
>>>
>>> I have tested now with Maven 2.0.9 and it builds fine so it's not related
>>> with maven version...
>>>
>>>
>>>
>>>> Another thing is that the related unit tests fail though everything
>>>> builds fine if tests are off. Here's the output...
>>>>
>>> Hum... again, maven not finding commons beanutils!
>>>
>>> Let me investigate this on my maven config and I will get back to you!
>>>
>>> Thanks,
>>> Nuno
>>>
>>>
>>>
>>>
>>>>
>>>> -------------------------------------------------------
>>>>  T E S T S
>>>> -------------------------------------------------------
>>>> Running org.sakaiproject.sitestats.test.StatsManagerTest
>>>> Tests run: 10, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 5.184
>>>> sec <<< FAILURE!
>>>> testEnableVisibleSiteVisits(org.sakaiproject.sitestats.test.StatsManagerTest)
>>>> Time elapsed: 3.844 sec
>>>> testOtherConfig(org.sakaiproject.sitestats.test.StatsManagerTest)  Time
>>>> elapsed: 0.005 sec
>>>> testPreferences(org.sakaiproject.sitestats.test.StatsManagerTest)  Time
>>>> elapsed: 0.055 sec  <<< ERROR!
>>>>
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/commons/beanutils/DynaProperty
>>>>     at
>>>> org.apache.commons.digester.Digester.addBeanPropertySetter(Digester.java:1731)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.configurePrefsDigester(DigesterUtil.java:51)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.StatsManagerImpl.parseSitePrefs(StatsManagerImpl.java:344)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.StatsManagerImpl.getPreferences(StatsManagerImpl.java:386)
>>>>     at
>>>> org.sakaiproject.sitestats.test.StatsManagerTest.testPreferences(StatsManagerTest.java:337)
>>>>
>>>> testSiteUsers(org.sakaiproject.sitestats.test.StatsManagerTest)  Time
>>>> elapsed: 0.006 sec
>>>> testUsersWithVisits(org.sakaiproject.sitestats.test.StatsManagerTest)
>>>> Time elapsed: 0.146 sec
>>>> testResourceInfo(org.sakaiproject.sitestats.test.StatsManagerTest)  Time
>>>> elapsed: 0.092 sec
>>>> testSummaryMethods(org.sakaiproject.sitestats.test.StatsManagerTest)
>>>> Time elapsed: 0.1 sec  <<< ERROR!
>>>>
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/commons/beanutils/DynaProperty
>>>>     at
>>>> org.apache.commons.digester.Digester.addBeanPropertySetter(Digester.java:1731)
>>>>      at
>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.configurePrefsDigester(DigesterUtil.java:51)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.StatsManagerImpl.parseSitePrefs(StatsManagerImpl.java:344)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.StatsManagerImpl.getPreferences(StatsManagerImpl.java:386)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.StatsManagerImpl.getSummaryActivityTotals(StatsManagerImpl.java:860)
>>>>     at
>>>> org.sakaiproject.sitestats.test.StatsManagerTest.testSummaryMethods(StatsManagerTest.java:601)
>>>>
>>>> testEventStats(org.sakaiproject.sitestats.test.StatsManagerTest)  Time
>>>> elapsed: 0.331 sec
>>>> testResourceStats(org.sakaiproject.sitestats.test.StatsManagerTest)
>>>> Time elapsed: 0.374 sec
>>>> testLargeMembershipSite(org.sakaiproject.sitestats.test.StatsManagerTest)
>>>> Time elapsed: 0.015 sec
>>>> Running org.sakaiproject.sitestats.test.ReportManagerTest
>>>> Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.536
>>>> sec <<< FAILURE!
>>>> testGetReport(org.sakaiproject.sitestats.test.ReportManagerTest)  Time
>>>> elapsed: 0.215 sec
>>>> testGetMoreReports(org.sakaiproject.sitestats.test.ReportManagerTest)
>>>> Time elapsed: 0.086 sec
>>>> testReportsFromOverviewPage(org.sakaiproject.sitestats.test.ReportManagerTest)
>>>> Time elapsed: 0.177 sec
>>>> testLoadSaveReports(org.sakaiproject.sitestats.test.ReportManagerTest)
>>>> Time elapsed: 0.041 sec  <<< ERROR!
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/commons/beanutils/ConversionException
>>>>     at
>>>> org.apache.commons.betwixt.BindingConfiguration.<init>(BindingConfiguration.java:60)
>>>>     at
>>>> org.apache.commons.betwixt.io.AbstractBeanWriter.<init>(AbstractBeanWriter.java:95)
>>>>     at
>>>> org.apache.commons.betwixt.io.BeanWriter.<init>(BeanWriter.java:165)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.getBeanWriter(DigesterUtil.java:143)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.convertReportParamsToXml(DigesterUtil.java:101)
>>>>     at
>>>> org.sakaiproject.sitestats.impl.report.ReportManagerImpl.saveReportDefinition(ReportManagerImpl.java:532)
>>>>     at
>>>> org.sakaiproject.sitestats.test.ReportManagerTest.testLoadSaveReports(ReportManagerTest.java:679)
>>>>
>>>>
>>>> On Wed, Oct 28, 2009 at 11:36 AM, Nuno Fernandes <nuno at ufp.edu.pt>wrote:
>>>>
>>>>> Hi Paul,
>>>>>
>>>>> So in shared/lib I have:
>>>>>> /usr/local/tomcat/shared/lib/sakai-sitestats-api-2.0.4.jar
>>>>>> /usr/local/tomcat/shared/lib/sakai-sitestats-help-2.0.4.jar
>>>>>> /usr/local/tomcat/shared/lib/sakai-sitestats-impl-hib-2.0.4.jar
>>>>>>
>>>>> All good!
>>>>>
>>>>>
>>>>> The other may be my problem then. I don't appear to have
>>>>>> commons-beanutils at all. Do I need to manually add it from somewhere? I'm
>>>>>> using maven2.
>>>>>>
>>>>> Humm.... you don't need to manually add it, that's maven2 job!!
>>>>>
>>>>> I have tested it locally and it is correctly deploying
>>>>> commons-beanutils in my Tomcat installation! Here's my mvn version and
>>>>> build/deploy command:
>>>>>
>>>>> $ mvn --version
>>>>> Apache Maven 2.1.0 (r755702; 2009-03-18 19:10:27+0000)
>>>>> Java version: 1.5.0_11
>>>>> Java home: /usr/java/jdk1.5.0_11/jre
>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>> OS name: "linux" version: "2.4.21-58.elsmp" arch: "i386" Family: "unix"
>>>>>
>>>>> $ mvn -Dmaven.tomcat.home=/servicos/sakai-tomcat/cafe/ clean install
>>>>> sakai:deploy
>>>>>
>>>>> Are you using a different setup/mvn command?
>>>>>
>>>>> Thanks,
>>>>> Nuno
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> If I run:
>>>>>> ls -l
>>>>>> /usr/local/tomcat/components/sakai-sitestats-components/WEB-INF/lib/sakai-sitestats*
>>>>>>
>>>>>>
>>>>>> /usr/local/tomcat/components/sakai-sitestats-components/WEB-INF/lib/sakai-sitestats-bundle-2.0.4.jar
>>>>>>
>>>>>> /usr/local/tomcat/components/sakai-sitestats-components/WEB-INF/lib/sakai-sitestats-impl-2.0.4.jar
>>>>>>
>>>>>> I have not added the site-stats entries to sakai.properties yet;
>>>>>> wanted to just stick to the defaults at first.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Oct 28, 2009 at 11:02 AM, Nuno Fernandes <nuno at ufp.edu.pt>wrote:
>>>>>>
>>>>>>> Hi Paul,
>>>>>>>
>>>>>>> The error indicates that Apache common beanutils
>>>>>>>
>>>>>>>  Can you please:
>>>>>>>
>>>>>>>    - make sure there are no multiple versions of SiteStats in Tomcat
>>>>>>>    shared lib?
>>>>>>>       - check with: *ls -l [tomcat]/shared/lib/sakai-sitestats-**
>>>>>>>    - make sure there is one and only one commons-beanutils in Tomcat
>>>>>>>    SiteStats component?
>>>>>>>       - check with: *ls -l
>>>>>>>       /servicos/tomcat-a/components/sakai-sitestats-components/WEB-INF/lib/commons-beanutils*
>>>>>>>       *
>>>>>>>    - send me the SiteStats relevant part (if any) of your
>>>>>>>    sakai.properties?
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Nuno
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Oct 28, 2009 at 2:48 PM, Paul Dagnall <
>>>>>>> dagnalpb at notes.udayton.edu> wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>> I am trying to install the latest 2.x Site Stats tool in 2.6.x by
>>>>>>>> following the Installation Guide on Confluence. I received the following
>>>>>>>> error when starting Tomcat for the first time. Any ideas on what I've done
>>>>>>>> wrong or things I should check?
>>>>>>>>
>>>>>>>> 2009-10-28 08:31:26,435 ERROR main
>>>>>>>> org.sakaiproject.sitestats.impl.event.FileEventRegistry - init(): - trouble
>>>>>>>> loading default event registry from :
>>>>>>>> org/sakaiproject/sitestats/config/toolEventsDef.xml
>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>> org/apache/commons/beanutils/DynaProperty
>>>>>>>>     at
>>>>>>>> org.apache.commons.digester.Digester.addBeanPropertySetter(Digester.java:1731)
>>>>>>>>     at
>>>>>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.configureToolEventsDefDigester(DigesterUtil.java:31)
>>>>>>>>     at
>>>>>>>> org.sakaiproject.sitestats.impl.parser.DigesterUtil.parseToolEventsDefinition(DigesterUtil.java:69)
>>>>>>>>     at
>>>>>>>> org.sakaiproject.sitestats.impl.event.FileEventRegistry.loadEventRegistryFile(FileEventRegistry.java:122)
>>>>>>>>
>>>>>>>> Thank you for your time.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Paul Dagnall
>>>>>>>> Web Developer
>>>>>>>> University of Dayton
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> sakai-dev mailing list
>>>>>>>> sakai-dev at collab.sakaiproject.org
>>>>>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>>>>>
>>>>>>>> TO UNSUBSCRIBE: send email to
>>>>>>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>>>>>>>> "unsubscribe"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Nuno Fernandes
>>>>>>>
>>>>>>> Profile    | http://facebook.com/nfgrilo |
>>>>>>> http://linkedin.com/in/nfgrilo
>>>>>>> Web      | http://codingwithcoffee.com | http://twitter.com/nfgrilo
>>>>>>> Work     | Analyst/Programmer @ UFP-UV [http://elearning.ufp.pt]
>>>>>>>              | Analyst/Programmer @ Sakai Foundation [
>>>>>>> http://sakaiproject.org]
>>>>>>>              | Sakai Fellow 2008 @ Sakai Foundation [
>>>>>>> http://confluence.sakaiproject.org//x/6oCTAQ]
>>>>>>> Address | Universidade Fernando Pessoa  [http://www.ufp.pt]
>>>>>>>              | Praça 9 de Abril, 349    | 4249-004 Porto
>>>>>>>              | tel: + 351 22 507 13 00 | fax: + 351 22 550 82 69
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Paul Dagnall
>>>>>> Web Developer
>>>>>> University of Dayton
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Nuno Fernandes
>>>>>
>>>>> Profile    | http://facebook.com/nfgrilo |
>>>>> http://linkedin.com/in/nfgrilo
>>>>> Web      | http://codingwithcoffee.com | http://twitter.com/nfgrilo
>>>>> Work     | Analyst/Programmer @ UFP-UV [http://elearning.ufp.pt]
>>>>>              | Analyst/Programmer @ Sakai Foundation [
>>>>> http://sakaiproject.org]
>>>>>              | Sakai Fellow 2008 @ Sakai Foundation [
>>>>> http://confluence.sakaiproject.org//x/6oCTAQ]
>>>>> Address | Universidade Fernando Pessoa  [http://www.ufp.pt]
>>>>>              | Praça 9 de Abril, 349    | 4249-004 Porto
>>>>>              | tel: + 351 22 507 13 00 | fax: + 351 22 550 82 69
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Paul Dagnall
>>>> Web Developer
>>>> University of Dayton
>>>>
>>>
>>>
>>>
>>> --
>>> Nuno Fernandes
>>>
>>> Profile    | http://facebook.com/nfgrilo |
>>> http://linkedin.com/in/nfgrilo
>>> Web      | http://codingwithcoffee.com | http://twitter.com/nfgrilo
>>> Work     | Analyst/Programmer @ UFP-UV [http://elearning.ufp.pt]
>>>              | Analyst/Programmer @ Sakai Foundation [
>>> http://sakaiproject.org]
>>>              | Sakai Fellow 2008 @ Sakai Foundation [
>>> http://confluence.sakaiproject.org//x/6oCTAQ]
>>> Address | Universidade Fernando Pessoa  [http://www.ufp.pt]
>>>              | Praça 9 de Abril, 349    | 4249-004 Porto
>>>              | tel: + 351 22 507 13 00 | fax: + 351 22 550 82 69
>>>
>>
>>
>>
>> --
>> Nuno Fernandes
>>
>> Profile    | http://facebook.com/nfgrilo | http://linkedin.com/in/nfgrilo
>> Web      | http://codingwithcoffee.com | http://twitter.com/nfgrilo
>> Work     | Analyst/Programmer @ UFP-UV [http://elearning.ufp.pt]
>>              | Analyst/Programmer @ Sakai Foundation [
>> http://sakaiproject.org]
>>              | Sakai Fellow 2008 @ Sakai Foundation [
>> http://confluence.sakaiproject.org//x/6oCTAQ]
>> Address | Universidade Fernando Pessoa  [http://www.ufp.pt]
>>              | Praça 9 de Abril, 349    | 4249-004 Porto
>>              | tel: + 351 22 507 13 00 | fax: + 351 22 550 82 69
>>
>
>
>
> --
> Paul Dagnall
> Web Developer
> University of Dayton
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091030/66453e03/attachment.html 


More information about the sakai-dev mailing list