Skip to content

Commit

Permalink
Merge pull request #676 from smillidge/PAYARA-642
Browse files Browse the repository at this point in the history
Fixes #673 PAYARA-642 do explicit check for OSGi classloader
  • Loading branch information
smillidge authored and Pandrex247 committed Feb 26, 2016
1 parent 799a873 commit e8e13c0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,10 @@ private void initORB(Properties props) {
orb = ORBFactory.create() ;
prevCL = Utility.getClassLoader();
try {
if (processType != processType.Other) {
if (processType != processType.Other && !prevCL.getClass().getName().contains("OSGi")) {
Utility.setContextClassLoader(prevCL.getParent());
}

ORBFactory.initialize( orb, args, orbInitProperties, useOSGI);
ORBFactory.initialize( orb, args, orbInitProperties, useOSGI);
} finally {
Utility.setContextClassLoader(prevCL);
}
Expand Down

0 comments on commit e8e13c0

Please # to comment.