Skip to main content



      Home
Home » Eclipse Projects » Equinox » problem with jdk version
problem with jdk version [message #74290] Mon, 09 October 2006 19:02 Go to next message
Eclipse UserFriend
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 #74347 is a reply to message #74290] Tue, 10 October 2006 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

Those classes are through out most OSGi implementations as security is a
fundamental part of the spec. Not sure what you can do here. I would
have thought that that method would be on Class if it is a 1.3
implementation...

Jeff


Rohit wrote:
> 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 #74662 is a reply to message #74290] Tue, 10 October 2006 13:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

> 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.
Re: problem with jdk version [message #74748 is a reply to message #74662] Thu, 12 October 2006 18:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rmkulkar.gmail.com

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.
Re: problem with jdk version [message #74784 is a reply to message #74748] Thu, 12 October 2006 19:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

It's not the permissions -- it's the fact that Java 1.1 doesn't have this method, so doesn't exist on the Class object. So no, you can't do what you're suggesting as it doesn't make sense. I suggest that you use a more recent VM.

Alex.
Re: problem with jdk version [message #74864 is a reply to message #74748] Fri, 13 October 2006 20:53 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:How does Eclipse decide which of the 2 Fragments of a Plugin to load ???
Next Topic:EclipseCon presentation on OSGi server/command line programs?
Goto Forum:
  


Current Time: Fri Jul 04 17:57:39 EDT 2025

Powered by FUDForum. Page generated in 0.04977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top