<fileset dir="${basedir}/nuxeo-server/${nuxeo.release}/config"/>\r
<filterset>\r
<filter token="DB" value="${db}" />\r
- <filter token="DB_URL" value="jdbc:${db}://localhost:${db.port}/nuxeo"/>\r
+ <filter token="DB_URL" value="jdbc:${db}://${db.host}:${db.port}/nuxeo"/>\r
+ <filter token="DB_SERVER_HOSTNAME" value="${db.host}"/>\r
<filter token="XA_DATASOURCE" value="${db.xaDataSource}" />\r
<filter token="NUXEO_USER" value="${db.nuxeo.user}" />\r
<filter token="NUXEO_PW" value="${db.nuxeo.user.password}" />\r
<!-- The transactional datasource for Nuxeo -->
<xa-datasource>@XA_DATASOURCE@</xa-datasource>
<property name="URL">@DB_URL@</property>
+ <property name="ServerName">@DB_SERVER_HOSTNAME@</property>
<property name="DatabaseName">nuxeo</property>
<property name="User">@NUXEO_USER@</property>
<property name="Password">@NUXEO_PW@</property>
<class>org.collectionspace.services.authorization.Role</class>\r
<class>org.collectionspace.services.authorization.AccountRoleRel</class>\r
\r
- <!-- \r
- <properties>\r
- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>\r
- <property name="hibernate.max_fetch_depth" value="3"/>\r
- --> \r
- <!-- Until our JNDI issue with Nuxeo is resolved, we have to use these JDBC properties rather than a datasource -->\r
- <!-- \r
- <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>\r
- <property name="hibernate.connection.username" value="postgres"/>\r
- <property name="hibernate.connection.password" value="pgSEE^quell"/>\r
- <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/cspace"/>\r
- -->\r
- <!--property name="hibernate.hbm2ddl.auto" value="create-drop"/-->\r
- <!--\r
- </properties>\r
- -->\r
-\r
<properties>\r
<property name="hibernate.dialect" value="${db.dialect}"/>\r
<property name="hibernate.max_fetch_depth" value="3"/>\r
<property name="hibernate.connection.driver_class" value="${db.jdbc.driver.class}"/>\r
<property name="hibernate.connection.username" value="${db.user}"/>\r
<property name="hibernate.connection.password" value="${db.user.password}"/>\r
- <property name="hibernate.connection.url" value="jdbc:${db}://localhost:${db.port}/cspace"/>\r
+ <property name="hibernate.connection.url" value="jdbc:${db}://${db.host}:${db.port}/cspace"/>\r
<!--property name="hibernate.hbm2ddl.auto" value="create-drop"/-->\r
</properties>\r
\r
username="${db.user}"
password="${db.user.password}"
driverClassName="${db.jdbc.driver.class}"
- url="jdbc:${db}://localhost:${db.port}/cspace"
+ url="jdbc:${db}://${db.host}:${db.port}/cspace"
maxActive="8"
maxIdle="4"/>
username="${db.user}"
password="${db.user.password}"
driverClassName="${db.jdbc.driver.class}"
- url="jdbc:${db}://localhost:${db.port}/nuxeo"
+ url="jdbc:${db}://${db.host}:${db.port}/nuxeo"
maxActive="8"
maxIdle="4"/>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
log4j.logger.org.springframework=INFO\r
log4j.logger.ch.elca.el4j.services.xmlmerge=INFO\r
log4j.logger.com.sun.xml.bind.v2.runtime=DEBUG\r
+log4j.logger.javax.persistence.PersistenceException=TRACE\r
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>
</bean>
-->
- <!--
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
- <property name="driverClassName" value="org.postgresql.Driver"/>
- <property name="url" value="jdbc:postgresql://localhost:5432/cspace"/>
- <property name="username" value="postgres"/>
- <property name="password" value="pgSEE^quell"/>
- </bean>
- -->
-
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${db.jdbc.driver.class}"/>
- <property name="url" value="jdbc:${db}://localhost:${db.port}/cspace"/>
+ <property name="url" value="jdbc:${db}://${db.host}:${db.port}/cspace"/>
<property name="username" value="${db.user}"/>
<property name="password" value="${db.user.password}"/>
</bean>
if (result == null && !persistenceUnit.equalsIgnoreCase(CS_AUTHZ_PERSISTENCE_UNIT)) try {
result = Persistence.createEntityManagerFactory(CS_AUTHZ_PERSISTENCE_UNIT);
} catch (javax.persistence.PersistenceException e) {
- logger.warn("Could not find a persistence unit for: " + CS_AUTHZ_PERSISTENCE_UNIT);
+ logger.warn("Problem with the persistence unit for: " + CS_AUTHZ_PERSISTENCE_UNIT, e);
}
return result;
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.username" value="test"/>
<property name="hibernate.connection.password" value="test"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cspace"/-->
+ <property name="hibernate.connection.url" value="jdbc:mysql://${db.host}:3306/cspace"/-->
</properties>
</persistence-unit>
</persistence>