[Building Sakai] Cannot start up tomcat for Sakai 2.9.1

Jeremy O'Connor joconnor at uwc.ac.za
Wed Jun 11 02:35:46 PDT 2014


Thanks to those who responded. I managed to fix the problem by re-creating the sakai database. I had recently re-installed MySQL, and I think that the exporting and importing of the sakai database had resulted in one or more problems e.g. data corruption.

--
Jeremy

>>> On 10 June 2014 at 04:26 PM, Earle Nietzel <enietzel at anisakai.com> wrote:
> Hi Jeremy,
> 
> I would suggest deploying to a brand new tomcat as you are missing a lot of
> logging.
> 
> After you deploy sakai ensure that there is a lot of content in
> $CATALINA_HOME/
>        components/          69 items
>        shared/lib               172 items
>        webaps/                 92 items
> 
> I suspect your missing files you can look at the maven deploy output and
> see where the files are being deployed to.
> 
> Also check your ~/.m2/settings.xml file and make sure the following profile
> is in there:
> 
>     <profile>
> 
>       <id>tomcat</id>
> 
>       <activation>
> 
>         <activeByDefault>true</activeByDefault>
> 
>       </activation>
> 
>       <properties>
> 
>         <appserver.id>tomcat</appserver.id>
> 
>         <appserver.home>/Users/enietzel/local/tomcat</appserver.home>
> 
>         <maven.tomcat.home>/Users/enietzel/local/tomcat</maven.tomcat.home>
> 
>         <sakai.appserver.home>/Users/enietzel/local/tomcat</sakai.appserver.
> home>
> 
>       </properties>
> 
>     </profile>
> 
> You don't have to use this profile but I find it convenient. For me
> /Users/enietzel/local/tomcat is a symlink to the actual tomcat that I am
> using.
> 
> *tomcat* -> apache-tomcat-7.0.47-sakai-trunk
> Earle
> Asahi Net Int.
> 
> 
> On Tue, Jun 10, 2014 at 8:03 AM, Matthew Buckett <
> matthew.buckett at it.ox.ac.uk> wrote:
> 
>> It looks like some of the startup logging isn't in your log as I would
>> expect to see the component loader logging stuff before you get as far
>> as the stack trace. Do any of your logfiles contain mentions of
>> "org.sakaiproject.util.ComponentLoader"?
>>
>> The lines I see are similar to:
>>
>> 2014-06-10 13:00:21,092  INFO localhost-startStop-1
>> org.sakaiproject.util.ComponentsLoader - load: loading components
>> from: /Users/buckett/Documents/sakai/sakai-trunk/tomcat/components/
>>
>> Normally this is in catalina.out
>>
>> On 10 June 2014 07:54, Jeremy O'Connor <joconnor at uwc.ac.za> wrote:
>> > I cannot start up tomcat for Sakai 2.9.1.
>> > I deleted everything under .M2\repository, as well as everything under
>> tomcat\webapps, then rebuilt the master POM and rebuilt and deployed the
>> root POM. Still I get the following log entries when trying to start up
>> tomcat:
>> >
>> > Jun 10, 2014 1:47:03 PM org.apache.catalina.core.AprLifecycleListener
>> init
>> > INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production envi
>> > ronments was not found on the java.library.path: C:\Program
>> Files\Java\jdk1.7.0_45\bin;C:\Windows\Su
>> >
>> 
> n\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\W
> indows\System32\Wbem;C:
>> > \Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files
>> (x86)\Novell\GroupWise;C:\Program Files (
>> > x86)\Kofax\Capture\ImgCtls\bin;C:\Program Files
>> (x86)\Kofax\Capture\Bin;C:\Program Files (x86)\PuTTY
>> > ;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server
>> 5.5\bin;C:\Programs (x86)\MySQ
>> > L\MySQL Utilities\;C:\Program
>> Files\Java\jdk1.7.0_45\bin;C:\apache-maven-3.0.5\bin;C:\tomcat\bin;C:\
>> > PHP5;C:\Apache Software Foundation\Apache2.2\bin;C:\Program Files
>> (x86)\ActiveState Komodo Edit 8\;C
>> > :\Program Files\7-Zip;C:\Program Files (x86)\WinSCP\;C:\Program
>> Files\Microsoft Network Monitor 3\;C
>> > :\Sysinternals;C:\batch;C:\bin;C:\Programs\WGUICD;Z:.;.
>> > Jun 10, 2014 1:47:03 PM org.apache.coyote.AbstractProtocol init
>> > INFO: Initializing ProtocolHandler ["http-bio-8080"]
>> > Jun 10, 2014 1:47:03 PM org.apache.coyote.AbstractProtocol init
>> > INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
>> > Jun 10, 2014 1:47:03 PM org.apache.catalina.startup.Catalina load
>> > INFO: Initialization processed in 903 ms
>> > Jun 10, 2014 1:47:03 PM org.apache.catalina.core.StandardService
>> startInternal
>> > INFO: Starting service Catalina
>> > Jun 10, 2014 1:47:03 PM org.apache.catalina.core.StandardEngine
>> startInternal
>> > INFO: Starting Servlet Engine: Apache Tomcat/7.0.21
>> > Jun 10, 2014 1:47:03 PM org.apache.catalina.startup.HostConfig deployWAR
>> > INFO: Deploying web application archive access.war
>> > Could not resolve placeholder 'sakai.security' in
>> [file:${sakai.security}security.properties] as sys
>> > tem property: neither system property nor environment variable found
>> > EntityProviderManagerImpl init
>> > INFO Registered entity provider
>> (org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderMan
>> > agerImpl$1) prefix (describe) with 1 capabilities
>> > java.lang.Exception: traceback
>> >         at
>> 
> org.sakaiproject.util.NoisierDefaultListableBeanFactory.destroySingletons(Noi
> sierDefaultL
>> > istableBeanFactory.java:94)
>> >         at
>> 
> org.sakaiproject.util.NoisierDefaultListableBeanFactory.preInstantiateSinglet
> ons(NoisierD
>> > efaultListableBeanFactory.java:83)
>> >         at
>> 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFact
> oryInitializ
>> > ation(AbstractApplicationContext.java:728)
>> >         at
>> 
> org.springframework.context.support.AbstractApplicationContext.refresh(Abstra
> ctApplicatio
>> > nContext.java:380)
>> >         at
>> org.sakaiproject.component.impl.SpringCompMgr.init(SpringCompMgr.java:160)
>> >         at
>> 
> org.sakaiproject.component.cover.ComponentManager.getInstance(ComponentManage
> r.java:98)
>> >         at
>> 
> org.sakaiproject.component.cover.ComponentManager.get(ComponentManager.java:1
> 07)
>> >         at
>> 
> org.sakaiproject.component.cover.ServerConfigurationService.getInstance(Serve
> rConfigurati
>> > onService.java:52)
>> >         at
>> org.sakaiproject.util.RequestFilter.init(RequestFilter.java:811)
>> >         at
>> 
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilter
> Config.java:
>> > 273)
>> >         at
>> 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterC
> onfig.java:2
>> > 54)
>> >         at
>> 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilt
> erConfig.jav
>> > a:372)
>> >         at
>> 
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig
> .java:98)
>> >         at
>> 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:458
> 4)
>> >         at
>> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
>> >         at
>> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
>> >         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> >         at
>> 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:114
> 5)
>> >         at
>> 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:61
> 5)
>> >         at java.lang.Thread.run(Thread.java:744)
>> >
>> >
>> > Can someone help please?
>> >
>> > --
>> > Jeremy
>> >
>> > _______________________________________________
>> > 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"
>>
>>
>>
>> --
>>   Matthew Buckett, VLE Developer, IT Services, University of Oxford
>> _______________________________________________
>> 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"
>>




More information about the sakai-dev mailing list