Changed from JDK1.1.6 to JDK1.2 and get SecurityException running existing code

Rainer Podlas (Rainer.Podlas@sea.ericsson.se)
Wed, 16 Dec 1998 15:17:08 +0100

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01BE2907.25B680E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I urgently need your help, please. We are developing a product, 90% =
written in java. CORBA (visibroker) is as well a technologie we are =
using.
Up to a few days ago, we developed using JDK1.1.6, and then we updated =
to JDK1.2.
When I now run our program (using an ORB) I get a java =
SecurityException, as follows:
***********************************************
java.lang.SecurityException: ORBSingleton: access denied
at =
com.sun.CORBA.idl.ORBSingleton.string_to_object(ORBSingleton.java:229
)
at smtool.SMT.init(SMT.java:185)
at sun.servlet.ServletLoader.loadServlet(ServletLoader.java:102)
at sun.servlet.http.HttpServer.getServlet(HttpServer.java:330)
at =
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.jav
a:152)
at sun.servlet.http.HttpServerHandler.handleConnection(Compiled =
Code)
at sun.servlet.http.HttpServerHandler.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
**************************************************

I noticed that JDK1.2 does some settings in registry (WinNT), and =
neither path nor a classpath setting is required. I fully installed it =
(126 MB) and do not want to remove it (I want to experience the new =
features), but I need to run the older JDK to get it working. Is there a =
way to modify the registry entry(ies) to not have the JDK1.2 being used =
automatically? I could manually run the java-interpreter of the JDK116 =
for one part of our product. But the second part (a serlvet...JDSK) is =
tested using the "servletrunner",which I cannot force the JDK to be =
used.
Help is highly appreciated. I could also guess, that this problem has to =
do with the new Security-Policy in JDK1.2...
I would really like to know, how I could get the ORB running using =
JDK1.2.
Thank you very much in advance !
Best regards,
Rainer

------=_NextPart_000_0005_01BE2907.25B680E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

Hi,
I urgently need your help, = please. We are=20 developing a product, 90% written in java. CORBA (visibroker) is as well = a=20 technologie we are using.
Up to a few days ago, we developed using = JDK1.1.6,=20 and then we updated to JDK1.2.
When I now run our program (using an = ORB) I=20 get a java SecurityException, as=20 follows:
***********************************************
java.lang.= SecurityException:=20 ORBSingleton: access = denied
        at=20 com.sun.CORBA.idl.ORBSingleton.string_to_object(ORBSingleton.java:229
= )
       =20 at = smtool.SMT.init(SMT.java:185)
      &nbs= p;=20 at=20 sun.servlet.ServletLoader.loadServlet(ServletLoader.java:102)
 &n= bsp;     =20 at=20 sun.servlet.http.HttpServer.getServlet(HttpServer.java:330)
 &nbs= p;     =20 at=20 sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.jav
= a:152)
       =20 at sun.servlet.http.HttpServerHandler.handleConnection(Compiled=20 Code)
        at=20 sun.servlet.http.HttpServerHandler.run(Compiled=20 Code)
        at=20 java.lang.Thread.run(Thread.java:479)
********************************= ******************
 
I noticed that JDK1.2 does some = settings in=20 registry (WinNT), and neither path nor a classpath setting is required. = I fully=20 installed it (126 MB) and do not want to remove it (I want to experience = the new=20 features), but I need to run the older JDK to get it working. Is there a = way to=20 modify the registry entry(ies) to not have the JDK1.2 being used = automatically?=20 I could manually run the java-interpreter of the JDK116 for one part of = our=20 product. But the second part (a serlvet...JDSK) is tested using the=20 "servletrunner",which I cannot force the JDK to be = used.
Help is=20 highly appreciated. I could also guess, that this problem has to do with = the new=20 Security-Policy in JDK1.2...
I would really like to know, how I could = get the=20 ORB running using JDK1.2.
Thank you very much in advance !
Best=20 regards,
      = Rainer
------=_NextPart_000_0005_01BE2907.25B680E0--