Hi all,
I'm trying to use jdbcdslog or log4jdbc with maven2. - I want to log all SQL that is executed by mvn-sql.
I installed slf4j-api (1.6.1), slf4j-log4j12 (1.6.1) and jdbcdslog (1.0.5) Jars to my local maven2-repo and configured in my pom.xml the following:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.3</version>
<dependencies>
<dependency>
<groupId>jdbcdslog</groupId>
<artifactId>jdbcdslog</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>9.0.2.0.0</version>
</dependency>
</dependencies>
<configuration>
<driver>org.jdbcdslog.DriverLoggingProxy</driver>
</configuration>
<executions>
<execution>
...
<configuration> <url>jdbc:jdbcdslog:oracle:thin:@myurl.com:1521:TEST;targetDriver=oracle.jdbc.driver.OracleDriver</url>
...
</configuration>
</execution>
</executions>
</plugin>
Executing this leads to:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.jdbcdslog.DriverLoggingProxy.(DriverLoggingProxy.java:16)
Same error occurs using log4jdbc. Has anyone a glimpse about that problem?
Thanks & kind regards, Hanno