« Return to Thread: Classpath Issues with Log4J?

Classpath Issues with Log4J?

by dchicks :: Rate this Message:

Reply to Author | View in Thread

Hi,

I'm trying to set up the Maven2 Cargo plugin, and I'm getting some
apparent classpath problems from Log4J.  I see that there was a sizable
discussion of a potential defect related to this issue back in August of
2008, but I could not find if there was any kind of resolution or
work-around.

Can someone please enlighten me?
Thanks,
David

PS - in case it helps, this is my current configuration and a snippet of
the exception that is thrown by the plugin:

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 39 more

            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <version>1.0-beta-2</version>
                <configuration>
                    <wait>false</wait>
                    <container>
                        <containerId>jetty6x</containerId>
                        <type>embedded</type>
                        <dependencies>
                            <dependency>
                                <groupId>mysql</groupId>
                               
<artifactId>mysql-connector-java</artifactId>
                            </dependency>
                        </dependencies>
                    </container>
                    <properties>
                        <cargo.datasource.datasource.mysql>
                           
cargo.datasource.driver=${harvey.database.driver}|
                            cargo.datasource.url=${harvey.database.url}|
                            cargo.datasource.jndi=jdbc/salientDataSource|
                           
cargo.datasource.username=${harvey.database.username}|
                           
cargo.datasource.password=${harvey.database.password}
                        </cargo.datasource.datasource.mysql>
                        <cargo.resource.resource.homeDirectory>
                            cargo.resource.name=salient/homeDirectory|
                            cargo.resource.type=java.lang.String|
                           
cargo.resource.parameters=${harvey.home.directory}
                        </cargo.resource.resource.homeDirectory>
                    </properties>
                </configuration>
            </plugin>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Classpath Issues with Log4J?