Hi,
1. log4j class loader, no enhancer log output with maven 2:
https://issues.apache.org/jira/browse/JDO-706
Michael suggests a new copyjdorijars with a plugin "copyfiles" that
would copy jars from the dependencies location to the jdori/lib
directory. The project would be an independent project that would be
downloaded independent of the tck project and exectck project. AI
Michael provide a patch.
attached you find a patch creating a new module copyjdorijars and adds
this to the list of mdules in the root pom. Please have a look.
Regards Michael
--
*Michael Bouschen*
*Prokurist*
akquinet tech@spree GmbH
Bülowstr. 66, D-10783 Berlin
Fon: +49 30 235 520-33
Fax: +49 30 217 520-12
Email: [email protected]
Web: www.akquinet.de <http://www.akquinet.de>
akquinet tech@spree GmbH, Berlin
Geschäftsführung: Martin Weber, Dr. Torsten Fink
Amtsgericht Berlin-Charlottenburg HRB 86780 B
USt.-Id. Nr.: DE 225 964 680
Index: copyjdorijars/src/main/resources/log4j.properties
===================================================================
--- copyjdorijars/src/main/resources/log4j.properties (revision 0)
+++ copyjdorijars/src/main/resources/log4j.properties (revision 0)
@@ -0,0 +1,93 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#############################
+# TCK loggers and appenders
+#############################
+
+# Root logger
+log4j.rootLogger = ERROR, TCK
+
+# TCK logger
+log4j.logger.org.apache.jdo.tck = INFO, TCK
+log4j.additivity.org.apache.jdo.tck = false
+
+# SpringFramework loggers
+log4j.logger.org.springframework = ERROR, TCK
+log4j.additivity.org.springframework = false
+log4j.logger.org.apache.jdo.tck.pc.company.CompanyModelReader = ERROR, TCK
+log4j.logger.org.apache.jdo.tck.pc.mylib.MylibReader = ERROR, TCK
+
+# TCK appenders
+log4j.appender.TCK = org.apache.jdo.tck.util.TCKFileAppender
+log4j.appender.TCK.File = tck.txt
+log4j.appender.TCK.layout = org.apache.log4j.PatternLayout
+log4j.appender.TCK.layout.ConversionPattern = %d{HH:mm:ss,SSS} (%t) %-5p [%c]
- %m%n
+
+############################################
+# JDO vendor specific loggers and appenders
+############################################
+
+#log4j.logger.<vendor> = INFO
+#log4j.additivity.<vendor> = false
+
+#log4j.appender.<VENDOR> = org.apache.jdo.tck.util.TCKFileAppender
+#log4j.appender.<VENDOR>.File = <vendor>.txt
+#log4j.appender.<VENDOR>.layout = org.apache.log4j.PatternLayout
+#log4j.appender.<VENDOR>.layout.ConversionPattern = %d{HH:mm:ss,SSS} (%t) %-5p
[%c] - %m%n
+
+###################################
+# DataNucleus loggers and appenders
+###################################
+
+# DataNucleus loggers
+# For more details on DataNucleus logging see
+# http://www.datanucleus.org/products/accessplatform/logging.html
+log4j.logger.DataNucleus = INFO, DataNucleus
+log4j.logger.DataNucleus.Enhancer = INFO, DataNucleus
+log4j.additivity.DataNucleus = false
+#log4j.logger.DataNucleus.JDO = INFO, DataNucleus
+#log4j.logger.DataNucleus.Persistence = INFO, DataNucleus
+#log4j.logger.DataNucleus.Query = INFO, DataNucleus
+#log4j.logger.DataNucleus.Lifecycle = INFO, DataNucleus
+#log4j.logger.DataNucleus.Reachability = INFO, DataNucleus
+#log4j.logger.DataNucleus.Cache = INFO, DataNucleus
+#log4j.logger.DataNucleus.ClassLoading = INFO, DataNucleus
+#log4j.logger.DataNucleus.MetaData = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.Management = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.General = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.Connection = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.JCA = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.Transaction = INFO, DataNucleus
+#log4j.logger.DataNucleus.Plugin = INFO, DataNucleus
+#log4j.logger.DataNucleus.Store.Poid = INFO, DataNucleus
+#log4j.logger.DataNucleus.Datastore = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.Datastore.Schema = INFO, DataNucleus
+#log4j.logger.DataNucleus.Datastore.Persist = INFO, DataNucleus
+#log4j.logger.DataNucleus.Datastore.Retrieve = DEBUG, DataNucleus
+#log4j.logger.DataNucleus.SchemaTool = INFO, DataNucleus
+
+# C3P0 loggers
+log4j.logger.com.mchange.v2 = INFO, DataNucleus
+log4j.additivity.com.mchange.v2 = false
+
+# DataNucleus appenders
+log4j.appender.DataNucleus = org.apache.jdo.tck.util.TCKFileAppender
+#log4j.appender.DataNucleus = org.apache.log4j.FileAppender
+log4j.appender.DataNucleus.Enhancer.File = datanucleus.txt
+log4j.appender.DataNucleus.File = datanucleus.txt
+log4j.appender.DataNucleus.layout = org.apache.log4j.PatternLayout
+log4j.appender.DataNucleus.layout.ConversionPattern = %d{HH:mm:ss,SSS} (%t)
%-5p [%c] - %m%n
Index: copyjdorijars/pom.xml
===================================================================
--- copyjdorijars/pom.xml (revision 0)
+++ copyjdorijars/pom.xml (revision 0)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <parent>
+ <groupId>javax.jdo</groupId>
+ <artifactId>root</artifactId>
+ <version>3.1-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>javax.jdo</groupId>
+ <artifactId>copy-jdori-jars</artifactId>
+ <name>Copy JDORI Jars</name>
+ <version>3.1-SNAPSHOT</version>
+ <description>The Java Data Objects (JDO) API is a standard interface-based
Java model abstraction of persistence, developed as Java Specification Request
243 under the auspices of the Java Community Process.</description>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/resources</directory>
+ <targetPath>${basedir}/../lib/jdori</targetPath>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/../lib/jdori</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-core</artifactId>
+ <version>3.0.9</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-rdbms</artifactId>
+ <version>3.0.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-enhancer</artifactId>
+ <version>3.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-api-jdo</artifactId>
+ <version>3.0.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-api-jpa</artifactId>
+ <version>3.0.8</version>
+ </dependency>
+ <dependency>
+ <groupId>asm</groupId>
+ <artifactId>asm</artifactId>
+ <version>3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ <version>0.9.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
+ </dependencies>
+
+</project>
Index: pom.xml
===================================================================
--- pom.xml (revision 1343371)
+++ pom.xml (working copy)
@@ -28,6 +28,7 @@
<modules>
<module>api</module>
<module>exectck</module>
+ <module>copyjdorijars</module>
<module>tck</module>
</modules>