From fe62901347f2f45a8ce9e13bc899276485d351ad Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Tue, 22 Nov 2011 00:19:35 +0000 Subject: [PATCH] CSPACE-4526: With Richard, parameterized additional data source configuration files via POM replacement. Some of these changes will be moot once integrated with forthcoming Nuxeo fix for JNDI corruption issue. --- .../5.4.2-HF05/config/datasources-config.xml | 2 +- .../5.4.2-HF05/config/default-repo-config.xml | 3 +- .../config/datasources-config.xml | 2 +- services/JaxRsServiceProvider/pom.xml | 57 +++++++++++-------- .../src/main/resources/log4j.properties | 2 +- .../src/main/webapp/META-INF/context.xml | 22 +++++++ 6 files changed, 61 insertions(+), 27 deletions(-) diff --git a/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/datasources-config.xml b/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/datasources-config.xml index e301d84c3..767fc5dd8 100644 --- a/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/datasources-config.xml +++ b/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/datasources-config.xml @@ -4,7 +4,7 @@ - nuxeo nuxeo diff --git a/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/default-repo-config.xml b/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/default-repo-config.xml index 24aee0f58..bc049997a 100644 --- a/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/default-repo-config.xml +++ b/3rdparty/nuxeo/nuxeo-server/5.4.2-HF05/config/default-repo-config.xml @@ -9,8 +9,9 @@ com.mysql.jdbc.jdbc2.optional.MysqlXADataSource jdbc:mysql://localhost:3306/nuxeo?relaxAutoCommit=true --> - org.postgres.jdbc.jdbc2.optional.PostgreSQLXADataSource + org.postgresql.xa.PGXADataSource jdbc:postgresql://localhost:5432/nuxeo + nuxeo nuxeo nuxpw diff --git a/3rdparty/nuxeo/nuxeo-server/5.5-I20111104_1115/config/datasources-config.xml b/3rdparty/nuxeo/nuxeo-server/5.5-I20111104_1115/config/datasources-config.xml index a9d7b870e..a54ddc87a 100644 --- a/3rdparty/nuxeo/nuxeo-server/5.5-I20111104_1115/config/datasources-config.xml +++ b/3rdparty/nuxeo/nuxeo-server/5.5-I20111104_1115/config/datasources-config.xml @@ -1,7 +1,7 @@ - nuxeo nuxeo diff --git a/services/JaxRsServiceProvider/pom.xml b/services/JaxRsServiceProvider/pom.xml index 1fd370d02..a80329628 100644 --- a/services/JaxRsServiceProvider/pom.xml +++ b/services/JaxRsServiceProvider/pom.xml @@ -595,15 +595,19 @@ cspace-services package - - ../../build.properties - - - - src/main/resources - true - - + + ../../build.properties + + + + src/main/resources + true + + + src/main/webapp/META-INF + true + + org.codehaus.mojo @@ -623,20 +627,20 @@ - - org.apache.maven.plugins - maven-resources-plugin - 2.5 - - - process-resources - - resources - - - - - + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + process-resources + + resources + + + + + org.codehaus.cargo cargo-maven2-plugin 0.3 @@ -672,7 +676,14 @@ org.apache.maven.plugins maven-war-plugin + 2.1.1 + + + src/main/webapp + true + + ${pom.groupid} diff --git a/services/JaxRsServiceProvider/src/main/resources/log4j.properties b/services/JaxRsServiceProvider/src/main/resources/log4j.properties index 7a8f7289d..2be5675d6 100644 --- a/services/JaxRsServiceProvider/src/main/resources/log4j.properties +++ b/services/JaxRsServiceProvider/src/main/resources/log4j.properties @@ -23,7 +23,7 @@ log4j.appender.R.layout.ConversionPattern=%d %-5p [%t] [%c:%L] %m%n # # CollectionSpace log levels # -log4j.logger.org.collectionspace=ERROR +log4j.logger.org.collectionspace=DEBUG log4j.logger.perf.collectionspace=ERROR log4j.logger.org.nuxeo=ERROR diff --git a/services/JaxRsServiceProvider/src/main/webapp/META-INF/context.xml b/services/JaxRsServiceProvider/src/main/webapp/META-INF/context.xml index 323264340..b327a7aa4 100644 --- a/services/JaxRsServiceProvider/src/main/webapp/META-INF/context.xml +++ b/services/JaxRsServiceProvider/src/main/webapp/META-INF/context.xml @@ -92,6 +92,7 @@ mail.smtp.user="anonymous" password="password" mail.from="noreply@nuxeo.com" mail.debug="false" /> + + + + + -- 2.47.3