I am not loading the resources directly, that happens as a
side effect of GenDDL using a class from one of these other jars.

The full details are like this. Lets say GenDDL.class is in
GenDDL.jar, and GenDDL.class calls a class Context.class which is
in Context.jar, and that same jar contains a text file
Context.xml. Now Contex.class is a sublcass of
org.springframework.context.support.ClassPathXmlApplicationContext
which is in spring.jar. The failure occurs when
ClassPathXmlApplicationContext tries to find Context.xml. I get a
FileNotFoundException.

Thanks for taking a look at this.

Gunnar

On Thu, 29 Dec 2005, Stefan Bodewig wrote:

> On Wed, 28 Dec 2005, Gunnar Sigurdsson <[EMAIL PROTECTED]> wrote:
> 
> > The GenDDL class depends on other jar files that are in the same 
> > "lib" directory. When the "ddl" target is executed, ant finds the 
> > GenDDL class and executes it, but it does not find resources in the 
> > other jar files. 
> 
> How are you trying to load the resources?  Are you explicitly using
> the classloader that has loaded your task?
> 
> Stefan
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to