No, there is definitely only one version in the classpath, and I'm not sure
how that would cause a ClassNotFoundException. This is the root exception:
Caused by: java.lang.ClassNotFoundException:
org.apache.xerces.parsers.SAXParser
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:1
21)
at
com.fja.pm.dataaccess.config.Configurator.<init>(Configurator.java:30)
... 44 more
But it only happens in Surefire, runs fine in Eclipse.
-----Original Message-----
From: Marcos Silva Pereira [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 4:44 PM
To: Maven Users List
Subject: Re: [M2] Classpath issue
There is some other version of xerces in your classpath?
Kind Regards,
On 2/23/07, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote:
>
> I am trying to convert a project from Maven1 to Maven2. Should be
> simple, but I am getting a ClassNotFoundException on the following
> line in my code when running JUnit tests through Maven:
>
> XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser"
> )
>
> This class is in xerces-2.4.0.jar, I have verified. This is listed as
> a dependency, and the -X option confirms it should be on the
> classpath. I built the eclipse files and ran the test, no problem - I
> had to remove some nested directories listed under resources, but this
> shouldn't have any effect on class loading.
>
> Any ideas what could be causing this problem? I don't even know how to
> debug this. :(
>
> --
> Daniel Siegmann
> FJA-US, Inc.
> 512 Seventh Ave., New York, NY 10018
> (212) 840-2618 ext. 139
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]