Actually, this is not resolved. It now loads classes from the classes directory, but it does not load resources from there (this probably has something to do with the fact that when it loads classes, it does not actually load the classes directory onto the classpath). Therefore, I need a way to get properties files as resources from the classpath, without putting them in Jar files. Any ideas?
Thanks. On 8/30/05, Ben Lindahl <[EMAIL PROTECTED]> wrote: > > It looks as though it should be using SAR-INF/classes, so perhaps the > trouble I had was related to something else. It now does seem to be loading > the class out of SAR-INF/classes. > > Thanks. > > On 8/30/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > > > > Hi Ben, > > > > I've not encountered the problem, but I can give you an hint: you should > > look at org.apache.james.transport.Loader to see how James does handle > > the > > classloading for matcher/mailets. Maybe this helps. > > > > Stefano > > > > > Hey all, > > > > > > I'm trying to set up a classes directory within one of my SAR > > > projects. I realize that SAR-INF/classes doesn't work, but I > > > would like to have a classes directory to avoid having to > > > modify my application's configuration files in Jar files. The > > > only solution I have come up with is to dynamically load a > > > class directory at runtime through the UrlClassLoader, but > > > this doesn't seem like a clean solution. > > > > > > Has anyone else encountered a similar problem, and if so, how > > > did you address it? > > > > > > Thanks in advance! > > > > > > - Ben > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
