Make sure that the specific class(es) you get the exceptions for really
are in the jars that exist in your local repo (i.e. rule out the
possibility that you got a bad jar file, failed download, or the wrong
version, etc.).
Maven has some options to verify checksums (-C and -c), though I am not
certain if they will be verified for dependencies that were already
downloaded. This might ensure the integrity of the downloads. You could
also move/delete your ~/.m2/repository dir to see if re-downloading them
all fixes the issue. In maven1, I remember having some bad jars as a
result of hitting ctrl-C while maven was downloading a jar.
You can look inside the dependency jars in Eclipse to verify the
presence of the class(es) you got the exceptions for.
I also find JarsBrowser to be a convenient tool for this kind of thing.
You don't even need to install it, just run this command to "Java
WebStart" it:
javaws http://cmarton.free.fr/jarsbrowser/jarsbrowser.jnlp
...and then point it at ~/.m2/repository. Then start to type the class
file name (use slashes between the package names, as opposed to dots)
that you are looking for in the Search field: org/foo/bar/fubar
-Max
Jimisola Laursen wrote:
I have added a few libraries to our internal repository, e.g. mocquer.
All added libraries our found in my local repository as well as in our
internal one.
root POM:
<dependencyManagement>
[...]
<dependencies>
<dependency>
<artifactId>c3p0</artifactId>
<groupId>c3p0</groupId>
<version>0.9.0.4</version>
</dependency>
<dependency>
<artifactId>dom4j</artifactId>
<groupId>dom4j</groupId>
<version>1.6.1</version>
</dependency>
<dependency>
<artifactId>xmlrpc</artifactId>
<groupId>xmlrpc</groupId>
<version>2.0.1</version>
</dependency>
<dependency>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
<version>1.3</version>
</dependency>
<dependency>
<artifactId>commons-httpclient</artifactId>
<groupId>commons-httpclient</groupId>
<version>3.0.1</version>
</dependency>
<dependency>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>pg-jdbc</artifactId>
<version>74.215.jdbc3</version>
</dependency>
<dependency>
<artifactId>derby</artifactId>
<groupId>org.apache.derby</groupId>
<version>10.1.2.1</version>
</dependency>
<dependency>
<artifactId>derbytools</artifactId>
<groupId>org.apache.derby</groupId>
<version>10.1.2.1</version>
</dependency>
<dependency>
<artifactId>bcel</artifactId>
<groupId>bcel</groupId>
<version>5.1</version>
</dependency>
<dependency>
<artifactId>jaxen</artifactId>
<groupId>jaxen</groupId>
<version>1.1-beta-9</version>
</dependency>
<dependency>
<artifactId>jtds</artifactId>
<groupId>net.sourceforge.jtds</groupId>
<version>1.2</version>
</dependency>
<dependency>
<artifactId>xmlunit</artifactId>
<groupId>xmlunit</groupId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jingle.mocquer</groupId>
<artifactId>mocquer</artifactId>
<version>0.9.3</version>
<scope>test</scope>
</dependency>
<dependency>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
<version>1.2.13</version>
</dependency>
<dependency>
<artifactId>aspectjrt</artifactId>
<groupId>aspectj</groupId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.3.3_01</version>
</dependency>
<dependency>
<artifactId>xmlunit</artifactId>
<groupId>xmlunit</groupId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
server module pom:
<dependencies>
[...]
<dependency>
<groupId>xmlrpc</groupId>
<artifactId>xmlrpc</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbytools</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>pg-jdbc</artifactId>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>aspectj</groupId>
<artifactId>aspectjrt</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>dbunit</groupId>
<artifactId>dbunit</artifactId>
</dependency>
</dependencies>
agent module pom:
<dependencies>
[...]
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.jingle.mocquer</groupId>
<artifactId>mocquer</artifactId>
</dependency>
<dependency>
<artifactId>xmlrpc</artifactId>
<groupId>xmlrpc</groupId>
</dependency>
<dependency>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
</dependency>
<dependency>
<artifactId>commons-httpclient</artifactId>
<groupId>commons-httpclient</groupId>
</dependency>
<dependency>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</dependency>
<dependency>
<artifactId>dom4j</artifactId>
<groupId>dom4j</groupId>
</dependency>
<dependency>
<artifactId>jaxen</artifactId>
<groupId>jaxen</groupId>
</dependency>
<dependency>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</dependency>
</dependencies>
--
View this message in context:
http://www.nabble.com/NoClassDefFoundErrorfor-a-few-classes-that-seems-to-be-in-the-classpath-t1767398.html#a4811533
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]