Re: Jar resource problem...

"Sasvata (Shash) Chatterjee" <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.