I had the same problem using jetty6, spring and log4j.  Solved it by setting
a system property specifying Log4J as the logger for commons logging.  Here
is my plugin configuration:

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty6-plugin</artifactId>
                <configuration>
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <contextPath>/</contextPath>
                    <systemProperties>
                       <systemProperty>
                         <name>org.apache.commons.logging.Log</name>
                        
<value>org.apache.commons.logging.impl.Log4JLogger</value>
                       </systemProperty>
                    </systemProperties>
                </configuration>
                <dependencies>
                   <dependency>
                     <groupId>commons-logging</groupId>
                     <artifactId>commons-logging</artifactId>
                     <version>1.0.4</version>
                   </dependency>
                   <dependency>
                     <groupId>log4j</groupId>
                     <artifactId>log4j</artifactId>
                     <version>1.2.13</version>
                   </dependency>
                 </dependencies>
            </plugin>

--
View this message in context: 
http://www.nabble.com/-m2-jetty6-plugin-log4j-t1142952.html#a3773827
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to