I figured out the problem. Somehow (don't ask), servlet-api.jar ended up in
my Tomcat endorsed folder. Removing it fixed the problem. It still seems
that assuming protectionDomain.getCodeSource() will return a non-null value
is dangerous though.
On Thu, Sep 24, 2009 at 4:44 PM, Obinna wrote:
>
hum, that's pretty much the only way of getting the list of jars, that
I know of. We should probably add a "contant" where a list of jar
files can be set. Although code can be null, it has always had a value
for me, what's your environment, jdk, os, etc?
musachy
On Thu, Sep 24, 2009 at 6:44 AM, O
I'm getting a NPE in the embeddedJsp plugin.
It seems to originate from JSPLoader.getJarURL(clazz) at URL loc =
codeSource.getLocation() because codeSource is null.
(protectionDomain.getCodeSource() returns null).
Not sure why this is happening for me (it is occurring when clazz =
interface javax