[jacorb-bugs] [Bug 984] JacORB unusable with Java Webstart in Java 1.7.0u55

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Thu May 15 10:04:11 CEST 2014


http://www.jacorb.org/bugzilla/show_bug.cgi?id=984

--- Comment #3 from Christian Bindseil <christian.bindseil at capgemini.com> ---
I do not have a testcase out of the box. Our problem is similar to the one
discussed on the mailinglist. But we do not use servlets. Our problem occures
when using Java-Webstart. I can give you some more information:

This is the stacktrace we encounter:
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
org.jacorb.orb.ORBSingleton
    at org.omg.CORBA.ORB.create_impl_with_systemclassloader(Unknown Source)
~[?:1.7.0_55]
    at org.omg.CORBA.ORB.init(Unknown Source) ~[?:1.7.0_55]
    at org.jacorb.orb.ORBSingleton.configure(ORBSingleton.java:140)
~[jacorb.jar:3.1  (Build August 19 2012 14:54:20)]
    at org.jacorb.orb.ORB.configure(ORB.java:276) ~[jacorb.jar:3.1  (Build
August 19 2012 14:54:20)]
    at org.jacorb.orb.ORB.set_parameters(ORB.java:1589) ~[jacorb.jar:3.1 
(Build August 19 2012 14:54:20)]
    at org.omg.CORBA.ORB.init(Unknown Source) ~[?:1.7.0_55]
    at ... (our own classes follow here)

JacORB contains the class org.omg.CORBA.ORB with the same packagename as ORB
contained in the JRE, too. Therefore it depends on classpath-order which
implementation the system will use. JacORBs ORBSingleton calls
org.omg.CORBA.ORB.init() and gets the JRE-implementation of ORB, as you can see
in the third line of the stacktrace. 
The implementation of this method has been changed by Oracle in Java 7u55. A
comparision of the two versions (7u51 vs. 7u55) I will provide as screenshot.
As you can see there, the new method create_impl_with_systemclassloader(...) is
introduced and used. It takes the system-classloader instead of the
context-classloader of the current thread, which was taken by the old
implementation in create_impl(...) on 7u51. 
In a Webstart-environment only the JNLP-classloader knows the JARs downloaded
by Webstart, the system-classloader doesn't. That's the reason why the
ORBSingleton-class can't be found and the exception is thrown.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20140515/de8b7417/attachment.html>


More information about the jacorb-bugs mailing list