Re: Jar resource problem...
Aleksandar Vidakovic <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <1111528135.5049.4.camel@popper> |
Thanks Shash... one more reason to switch it to the newest keel ;-) Aleks On Tue, 2005-03-22 at 14:33 -0600, Sasvata (Shash) Chatterjee wrote: > Aleks, > > >Salut all, > > > >I'm having a problem loading a resource from a jar file in my keel-direct-server-struts application. Situation: I want to use the Jena (http://jena.sf.net) RDF framework in a keel model. The Jena framework needs to load a text file located in the jena.jar on startup. If I make a simple test with a class containing a "main" method under eclipse Jena has no problem to find the resource in the classpath. As soon as I deploy my keel app and test the code in a keel model I get errors (resource cannot be found). Is it possible that the keel classloader prevents Jena to find the resource? I already found a quick hack for jena, but this means I have to touch a source file which I don't want to. > > > >Is this a common problem of the keel classloader? Solutions? Note: I'm using a 2.x version of keel... > > > >Thanks, > > > > > 2.x uses KeelURLClassloader, which was put in there to explicitly > prevent looking up classes/resources from the Keel-server-side > classloader's parent classloaders. The only things visible to the > KeelURLClassloader are stuff in <keel-config-dir>/../lib/*.JAR. > > This all goes away in the latest codebase since we did away with the > hard-check at runtime, we let the dependency mechanism in Maven to do a > build-time check. > > HTH, > Shash > > http://keelframework.org/documentation.shtml > Keelgroup mailing list > [email protected] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > -- Aleksandar Vidakovic <[email protected]> http://keelframework.org/documentation.shtml Keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com