[Building Sakai] Unable to run source code (after Tomcat 7 start not showing sakai homepage )
Pravin Gate
praving at leosys.in
Sun May 12 23:50:19 PDT 2013
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+Set
up+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 at javax.sql.BaseDataSource=sakai
password at 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 which is working file now we are trying to
start tomcat , it's unable to open http://localhost:8080/portal however
http://localhost:8080 is showing tomcat homepage.
We are getting this error , Can you help us now why we are not able to get
saki homepage ?
NFO: Deploying web application archive
F:\Backup\lms\edconnect\tomcat\webapps\dav.war
13 May, 2013 10:37:02 AM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.sakaiproject.dav.DavRealm
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:144)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab
stractSAXParser.java:501)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyEl
ement(AbstractXMLDocumentParser.java:179)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
tartElement(XMLDocumentFragmentScannerImpl
Please tell us how we can overcome from this issue.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130513/ec725fe1/attachment.html
More information about the sakai-dev
mailing list