I have an old version of BC4J used by a legacy app that I'm currently am trying to port til a Virgo environment.
As the BC4J libraries are not OSGi ready, I have chosen to put them in the META-INF/lib folder of my application.
One of these libraries tries to load an XML file. I have tried to copy the file to just about every possible directory of my bundle - but still the BC4J library reports that it cannot find the XML file.
I had this working at some point but cannot quite pinpoint what I did in order to break it
I suppose that it is either a bug in the STS tooling???
I decompiled the bc4j class where the exception was thrown. The class used the servletcontext to locate the resource. But I initialized the BC4J stuff in the top context (outside the servletcontext). Thus, the context was null - and the XML file could not be located...