Which.java is part of hk2 - svn checkout
https://hk2.dev.java.net/svn/hk2/trunk
ASEmbedded.java inherits eventually from ASMain.java, and when things are being initialized, Which class tries to instantiate a File object, expecting a file: URI. So there is sort of implicit dependence, which would make sense in the non-embedded case. But in the embedded case, with your particular environment where we need to work with an http: URI, things fail.
[Message sent by forum member 'sirajg' (Siraj.Ghaffar_at_Sun.Com)]
http://forums.java.net/jive/thread.jspa?messageID=385050