Commit 303adbe 1 parent 6b7fa6e commit 303adbe Copy full SHA for 303adbe
File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ private byte[] getMD5(InputStream is) throws IOException {
75
75
}
76
76
77
77
private Boot () throws IOException {
78
+
79
+ super (Thread .currentThread ().getContextClassLoader ());
78
80
final String ownJar = getClass ().getProtectionDomain ().getCodeSource ().getLocation ().getPath ();
79
81
Log .POST (2000 , "ownJar is " + ownJar );
80
82
ZipFile jar = null ;
@@ -372,7 +374,10 @@ private void extractInternalFiles() throws IOException {
372
374
373
375
public InputStream getResource2 (String uri ) {
374
376
if ( fromJar () ) {
375
- return _systemLoader .getResourceAsStream ("resources" +uri );
377
+ InputStream is = _systemLoader .getResourceAsStream ("resources" +uri );
378
+ if (is ==null ) is = this .getClass ().getClassLoader ().getResourceAsStream ("resources" +uri );
379
+ if (is ==null ) is = Thread .currentThread ().getContextClassLoader ().getResourceAsStream ("resources" +uri );
380
+ return is ;
376
381
} else {
377
382
try {
378
383
File resources = new File ("lib/resources" );
You can’t perform that action at this time.
0 commit comments