Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-23590

Unable to run source code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:
      OS:Windows 7
      maven:2.2.1
      tomcat 7.0.26
      java(jdk1.6.0_17)
      MySQL 5.5

      Description

      Hi ,
      We are trying to setup sakai on our local machine. using below guidelines.

      https://confluence.sakaiproject.org/pages/viewpage.action?pageId=82249543
      https://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough

      Steps we followed-

      Sakai source code:

      1. Downloaded sakai-src-2.9.1 and unzip it on D:\sakai\

      Tomcat 7.0.26:

      1. Downloaded apache-tomcat-7.0.26.tar and unzip it on D:\sakai\

      2. Created setenev.bat inside D:\Sakai\tomcat\bin and set JAVA_OPTS variable.

      3. Edit D:\Sakai\tomcat\conf\catalina.properties and added

      common.loader= ,${catalina.base}/common/classes/,${catalina.base}/common/lib/*.jar
      shared.loader= ${catalina.base}/shared/classes/,${catalina.base}/shared/lib/*.jar
      server.loader= ${catalina.base}/server/classes/,${catalina.base}/server/lib/*.jar
      and created these folders inside tomcat.

      4. create folder as named 'sakai' inside tomcat and created file name as sakai.properties
      (Copied from D:\Sakai\sakai-src\config\configuration\bundles\src\bundle\org\sakaiproject\config\bundle\default.sakai.properties)
      then comment #HSQLDB settings and uncomment the #MySQL settings and also set the below property

      username@javax.sql.BaseDataSource=sakai
      password@javax.sql.BaseDataSource=ironchef

      Maven:

      1.Downloaded apache-maven-2.2.1-bin and unzip it on C:drive
      2.Create an M2_HOME System Variable
      3.Add C:\dev\apache-maven-2.2.1\bin; to System Path
      4.To check maven is working we used commands mvn clean ,Our Maven is installed and working as it creates directory '.m2' inside C:\Users\miller\.m2 with some folders inside it.
      5.Created settings.xml inside .m2/ as shown below.

      <settings xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
      http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <profiles>
      <profile>
      <id>tomcat5x</id>
      <activation>
      <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
      <appserver.id>tomcat5x</appserver.id>
      <appserver.home>D:\Sakai\tomcat</appserver.home>
      <maven.tomcat.home>D:\Sakai\tomcat</maven.tomcat.home>
      <sakai.appserver.home>D:\Sakai\tomcat</sakai.appserver.home>
      <surefire.reportFormat>plain</surefire.reportFormat>
      <surefire.useFile>false</surefire.useFile>
      </properties>
      </profile>
      </profiles>
      </settings>

      MySQL 5.5:

      1.created database for sakai as shown below.

      create database sakai default character set utf8;
      grant all privileges on sakai.* to 'sakai'@'localhost' identified by 'ironchef';
      flush privileges;
      quit;

      After completeting all these settings done, we executed 'mvn clean install' command on D:\sakai\sakai-src
      getting error as shown in attached file.

      Please tell us how we can overcome from this issue. And if we are missing any steps let us know.

      Thanks in advance

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  miller007 David Miller (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day, 4 hours
                    1d 4h
                    Remaining:
                    Remaining Estimate - 1 day, 4 hours
                    1d 4h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified

                      Git Integration