I have an
ejb, and in the ejb-jar.xml I reference a utility jar file, which seems to work fine.
I have written a small utility to load a properties file, and added this utility and a new properties file to the utility jar.
The utility uses the getResourceAsStream method to access the properties file via the system classloader, which as I understand it looks down the classpath to find the resource.
Now, from my ejb, if I try and use my utility to load my props file, it just can't find it, but I can't figure out why. Strangely, if I output the classpath to std out from the ejb, the utility jar isn't there, though that may be because it's being dynamically changed by that manifest entry.
I'm using WebLogic 8, and when I add the utility jar to the server classpath it's fine.
Anyone have any ideas what I'm doing wrong?
TIA
Dave