problem with jdk version [message #74290] |
Mon, 09 October 2006 19:02  |
Eclipse User |
|
|
|
Originally posted by: rmkulkar.gmail.com
Hi,
I'm trying to integrate the osgi framework as a service in a project. I'm
working with a proprietary VM, which is compliant with jdk 1.1, although
it implements all the API's upto jdk 1.3. It does not support the java 2
security model. When I try to load the framework onto my emdedded device,
I get the following exceptions:
java.lang.NoSuchMethodError:
java/lang/Class.getProtectionDomain()Ljava/security/Protecti onDomain;
at
org/eclipse/core/runtime/adaptor/EclipseStarter.initializePr operties()V
(EclipseStarter.java:1336:49)
at
org/eclipse/core/runtime/adaptor/EclipseStarter.startup([Lja va/lang/String;Ljava/lang/Runnable;)Lorg/osgi/framework/Bund leContext;
(EclipseStarter.java:272:33)
at
org/eclipse/core/runtime/adaptor/EclipseStarter.run([Ljava/l ang/String;Ljava/lang/Runnable;)Ljava/lang/Object;
(EclipseStarter.java:173:37)
at
org/eclipse/core/runtime/adaptor/EclipseStarter.main([Ljava/ lang/String;)V
(EclipseStarter.java:150:42)
I was wondering if I could use the existing implementation of OSGi or I
could download a previous version of eclipse?
Thanks,
Rohit.
|
|
|
|
|
|
|
Re: problem with jdk version [message #74864 is a reply to message #74748] |
Fri, 13 October 2006 20:53  |
Eclipse User |
|
|
|
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com
Not really sure what to say here. AFAIK you have to do something
special to make security be turned on. So, "don't do that" :-) Not
alot of help...
Jeff
Rohit wrote:
> Thanks for reply!
>
> I just skimmed through the OSGi specs and my guess is we should be able
> to disable the security model by given AllPermissions to all the
> modules. Am I right?
> If there is a way to disable the Java 2 Security model, can you please
> send me some pointers on how to do it?
>
> Thanks again!
>
> -Rohit
>
>
>
> Alex Blewitt wrote:
>
>>> I'm working with a proprietary VM, which is compliant with jdk 1.1,
>>> although it implements all the API's upto jdk 1.3. It does not
>>> support the java 2 security model.
>
>> Unfortunately, this was something added in Java 1.2. Given that your
>> VM does
> not support the Java 2 security model, and that your VM is a 1.1 vm
> (regardless of what other APIs might be available), it's very likely
> that the Class object does not support this method, and that therefore
> there's not much you can do about it. EclipseStarter needs to have a 1.2
> VM+ IIRC to run, since it calls getProtectionDomain().
>
>>
> http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html#g etProtectionDomain()
>
>
>> Note that if you supply the framework (or system path) then this piece of
> code doesn't get triggered. You might try to run it with
> -Dosgi.framework=/path/to/ or -Dosgi.syspath= to specify the location of
> the (OSGi) plugins.
>
>> This might not work; that's just based on an eyeball of my
>> understanding of
> the code.
>
>> Alex.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04977 seconds