0

I have followed sakai installation as per this link.

Everything went well. But while starting TomCat I am getting the following error.

Details

Sakai Version: 10.4

MySql Version: 5.6.16

Tomcat Version: 7.0.65

Maven Version: 3.3.9

Error:

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Could not create a validated object, cause: ValidateObject failed

context.xml

    <Resource name="jdbc/sakai" auth="Container" type="javax.sql.DataSource"
           maxActive="100"
           maxIdle="30"
           maxWait="10000"
           username="root"
           password=""
           driverClassName="com.mysql.jdbc.Driver"
           removeAbandoned="true"
           logAbandoned="true"
           url="jdbc:mysql://localhost:3306/sakai"/>

sakai.properties

     username@javax.sql.BaseDataSource=sakaiuser
     password@javax.sql.BaseDataSource=sakaipassword

 ## MySQL settings
     hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
     url@javax.sql.BaseDataSource=java:comp/env/jdbc/sakai
Sudeep nayak
  • 418
  • 1
  • 5
  • 12
  • I don't know if this is supposed to work. I haven't seen any ise of context.xml in the Sakai installation guide. Why don't you just specify the url directly in sakai.properties? – reinierpost Jan 25 '16 at 22:36
  • Thanks for the reply. I already did that and it worked fine. Now I'm stuck at outOfMemory exception. Can you tell me how to increase heap size to run sakai. java -Xms512m -Xmx1024m *.java works for individual java project. But how to run bunch of projects like sakai with increased heap size – Sudeep nayak Jan 27 '16 at 07:00
  • You can assign to environment variables such as JAVA_OPTS in `setenv.sh`. Put it in the same directory `startup.sh` and `shutdown.sh` are in. This will work if you're using `startup.sh` to start Tomcat. If you're using Tomcat as a system service, it may not work. For instance, we do that on Ubuntu, and we have to put the assignments into `/etc/default/tomcat7`. – reinierpost Jan 27 '16 at 11:23

0 Answers0