Hi!
Have you tested -e option??
Could you send those fails, and if -e gives you stack, those too?
Artsi
On Tue, 2004-03-16 at 13:15, [EMAIL PROTECTED] wrote:
>
>
>
> Thanks Craig for your previous, helpful, response.
>
> I have got the resources (xml, etc.) sorted out now however my JUnit
> is still failing.
> I managed to narrow the problem down to being in commons-digester
> which I'm using as a project dependency. (commons-digester-1.5.jar)
>
> I run this test in my IDE (WSAD) and runs 100% successful.
> However on the server where I have setup Maven the test fails when
> attempting to create an instance of the
> org.apache.commons.digester.Digester class.
> I get no exception, but I run Maven in debug mode and run some
> logging code that indicates that failure occurs in the instantiation
> of Digester class.
>
> Here is the code snippet of method that gets invoked in the test and
> fails when creating new Digester():
>
> public static ResultMappings loadMappings(String location)
> throws org.xml.sax.SAXException, java.io.IOException {
>
> log.debug("create Digester()...");
> Digester digester = new Digester();
> log.debug("done creating Digester()...");
> ...
> }
>
> Could it be that Maven is loading a wrong version of digester jar
> classes?
> I have specified in project.xml file that my project depends on
> commons-digester-1.5. (it is located in my repository/
> commons-digester/jars/ dir.)
>
> Any ideas where (or how) I should be looking into to solve this
> problem?
> It's really driving me mad now...:-)
>
> Thanks
>
> --Alen
>
>
>
>
>
>
>
> [EMAIL PROTECTED]
>
>
>
> 03/15/2004 05:07 PM
> To
> [EMAIL PROTECTED]
>
>
> cc
> Please respond to
>
> [EMAIL PROTECTED]
> Subject
> g Re: / /OREF:CPT0DDDD Include resource
> required by test
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Mon, 2004-03-15 at 08:54, [EMAIL PROTECTED] wrote:
> > I have a Test class that requires to load a XML file.
> > I do it like this:
> > Thread.currentThread().getContextClassLoader
> > ().getResource(Constants.XML_CONFIG_FILENAME_DEFAULT)
> > Issue is that my Maven project does not include my xml/dtd files,
> so
> > the test fails to load the xml resource.
> >
> > My XML file is located in root source directory.
> > $project/src/my.xml
> > $project/src/com/.../.../.../
> >
> > I have played around with my project.xml <build/> stuff with no
> luck.
>
> <project>
> ...
> <build>
> ...
> <unitTest>
> ...
> <resources>
> <resource>
> <directory>${basedir}/src</directory>
> <includes>
> <include>*.xml</include>
> </includes>
> </resource>
> </resources>
> </unitTest>
> ...
> </build>
> ...
> </project>
>
> --
> Craig S. Cottingham
> [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]