[ 
https://issues.apache.org/jira/browse/RAVE-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106857#comment-13106857
 ] 

Xuan Wu commented on RAVE-259:
------------------------------

In order to make h2 use local file, I changed in 
rave-portal/src/main/webapp/WEB-INF/dataContext.xml:

        <property name="url" value="jdbc:h2:file:/home/somefile" />

After the first time populating by initial.sql, I removed the populating part 
in entityManagerFactory, as the exceptions seem to occur because of inserting 
duplicate records:

       <property name="populator" ref="dataSourcePopulator" />

This works fine afterwards. 

However I've not succeeded with changing portal.properties.

> Document how to use a different database setup 
> -----------------------------------------------
>
>                 Key: RAVE-259
>                 URL: https://issues.apache.org/jira/browse/RAVE-259
>             Project: Rave
>          Issue Type: Sub-task
>            Reporter: Jasha Joachimsthal
>            Assignee: Jasha Joachimsthal
>             Fix For: 0.4-INCUBATING
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to