Install and deploy sakai and tomcat

604 views
Skip to first unread message

fredy hernan sanchez montaña

unread,
Apr 8, 2016, 12:41:22 PM4/8/16
to Sakai Development
Hi!

I just clone the sakai 11 repository, then I did:
  1. mvn install
  2. mvn clean install sakai:deploy -Dmaven.tomcat.home=/path/to/your/tomcat
  3. start tomcat
When I go to the browser 'localhost:8080/portal' get a 404 error, I open the catalina.out file and it says a lot of errors like this:

2016-04-08 11:25:23,940  WARN localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Could not load properties from URL [file:/opt/apache-tomcat-8.0.33/sakai/placeholder.properties]: /opt/apache-tomcat-8.0.33/sakai/placeholder.properties (No existe el fichero o el directorio)
2016-04-08 11:25:23,940  WARN localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Could not load properties from URL [file:/opt/apache-tomcat-8.0.33/sakai/sakai.properties]: /opt/apache-tomcat-8.0.33/sakai/sakai.properties (No existe el fichero o el directorio)
2016-04-08 11:25:23,941  WARN localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Could not load properties from URL [file:/opt/apache-tomcat-8.0.33/sakai/local.properties]: /opt/apache-tomcat-8.0.33/sakai/local.properties (No existe el fichero o el directorio)
2016-04-08 11:25:23,941  WARN localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Could not load properties from URL [file:${sakai.security}security.properties]: ${sakai.security}security.properties (No existe el fichero o el directorio)
2016-04-08 11:25:23,941  WARN localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Could not load properties from URL [file:${sakai.test}test.properties]: ${sakai.test}test.properties (No existe el fichero o el directorio)
2016-04-08 11:25:23,941  INFO localhost-startStop-1 org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean - Loaded a total of 107 properties
2016-04-08 11:25:24,526  WARN localhost-startStop-1 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Could not load properties from URL [file:/opt/apache-tomcat-8.0.33/sakai//sakai.properties]: /opt/apache-tomcat-8.0.33/sakai/sakai.properties (No existe el fichero o el directorio)
2016-04-08 11:25:24,527  WARN localhost-startStop-1 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Could not load properties from URL [file:/opt/apache-tomcat-8.0.33/sakai//local.properties]: /opt/apache-tomcat-8.0.33/sakai/local.properties (No existe el fichero o el directorio)

Hope you can help me, thanks!

 

Leonardo Canessa

unread,
Apr 8, 2016, 1:22:48 PM4/8/16
to fredy hernan sanchez montaña, Sakai Development
Please include the complete catalina.out file. The warnings you are receiving tell us that the configuration files (located in $TOMCAT_HOME/sakai/) are not present.

This documentation> https://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough < is a touch out of date, but is a great starting point for getting an environment set up.

Leonardo Canessa
Web Developer - E-Learning

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

fredy hernan sanchez montaña

unread,
Apr 8, 2016, 3:57:26 PM4/8/16
to Sakai Development, fredyhe...@gmail.com
Thanks for your reply, this is catalina.out
catalina.out

Leonardo Canessa

unread,
Apr 8, 2016, 4:04:59 PM4/8/16
to fredy hernan sanchez montaña, Sakai Development
This section:
2016-04-08 11:25:24,859  WARN localhost-startStop-1 org.sakaiproject.util.SakaiApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.log.api.LogConfigurationManager' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/util-components.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.component.api.ServerConfigurationService' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/component-components.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.config.impl.StoredConfigService' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/configstore-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.config.api.HibernateConfigItemDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.config.api.HibernateConfigItemDao' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/configstore-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'javax.sql.LazyDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'javax.sql.LazyDataSource' defined in file [/opt/apache-tomcat-8.0.33/components/sakai-kernel-component/WEB-INF/db-components.xml]: Invocation of init method failed; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: org.hsqldb.jdbc.jdbcConnection.isValid(I)Z
java.lang.Exception: traceback
at org.sakaiproject.util.NoisierDefaultListableBeanFactory.destroySingletons(NoisierDefaultListableBeanFactory.java:94)

tells me that the Sakai is not able to connect to HSQLDB. As far as I know, the HSQLDB is borked. To resolve this you need to setup a database (Oracle, MySQL / variants) for Sakai to connect to. There are instructions for in the link I provided earlier to setup MySQL.


Leonardo Canessa
Web Developer - E-Learning

fredy hernan sanchez montaña

unread,
Apr 8, 2016, 4:59:45 PM4/8/16
to Sakai Development, fredyhe...@gmail.com
I'm going to try it.

fredy hernan sanchez montaña

unread,
Apr 11, 2016, 7:18:43 PM4/11/16
to Sakai Development, fredyhe...@gmail.com
Hi!
I copied the sakai.properties file in saka folder under tomcat and worked! It would be nice that at github repository be this information.

El viernes, 8 de abril de 2016, 15:04:59 (UTC-5), lcanessa1 escribió:
Reply all
Reply to author
Forward
0 new messages