equinox.security.sample: NoClassDefFoundError: org/eclipse/equinox/security/auth/SecurePlatform [message #96247] |
Thu, 30 August 2007 10:04 |
Eclipse User |
|
|
|
Originally posted by: ado.bsiag.com
Hi all
I'm trying to run the sample application from
http://wiki.eclipse.org/index.php?title=Security:_JCA/JAAS_f ramework_contribution#Running_the_sample_application
and I'm running always into a NoClassDefFoundError:
org/eclipse/equinox/security/auth/SecurePlatform exception. I've tried
playing with the classpath and the dependencies with no luck so far. My
attempts aren't helped by the fact that I'm an OSGi and JAAS newbie.
In eclipse I've imported cvsroot/eclipse/equinox-incubator/security/
org.eclipse.equinox.security.boot
org.eclipse.equinox.security.provider
org.eclipse.equinox.security.auth
org.eclipse.equinox.security.ui.default
and
org.eclipse.equinox.security.sample
from CVS. Then I've put the boot.jar into the lib/ folder of the sample
project and put the VM option -Xbootclasspath/a:lib/boot.jar into its
run dialog.
Eclipse doesn't show any errors until you try to run the sample. Then it
says:
java.lang.NoClassDefFoundError:
org/eclipse/equinox/security/auth/SecurePlatform
at
org.eclipse.equinox.security.sample.AuthApplication.run(Auth Application.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Any help is very much appreciated.
Yours, Arthur
|
|
|
|
Re: equinox.security.sample: NoClassDefFoundError: org/eclipse/equinox/security/auth/SecurePlatform [message #96276 is a reply to message #96263] |
Thu, 30 August 2007 11:24 |
Eclipse User |
|
|
|
Originally posted by: ado.bsiag.com
Hi Danail
Thank you very much for your answer. The full path does the trick. :)
Strangely enough I've done the same for the unit tests in the CVS and
they've run successfully with the relative path.
Thanks again. Arthur.
Danail Nachev wrote:
> Hi, Arthur
>
> I think that the relative path to the boot.jar isn't sufficient because
> it is relative to your Eclipse install folder (mine is C:\eclipse_3.3).
> You can try to enter the full path to boot.jar to see whether this makes
> any difference.
>
> Danail
>
> Arthur wrote:
>> Hi all
>>
>> I'm trying to run the sample application from
>> http://wiki.eclipse.org/index.php?title=Security:_JCA/JAAS_f ramework_contribution#Running_the_sample_application
>>
>> and I'm running always into a NoClassDefFoundError:
>> org/eclipse/equinox/security/auth/SecurePlatform exception. I've tried
>> playing with the classpath and the dependencies with no luck so far. My
>> attempts aren't helped by the fact that I'm an OSGi and JAAS newbie.
>>
>> In eclipse I've imported cvsroot/eclipse/equinox-incubator/security/
>> org.eclipse.equinox.security.boot
>> org.eclipse.equinox.security.provider
>> org.eclipse.equinox.security.auth
>> org.eclipse.equinox.security.ui.default
>> and
>> org.eclipse.equinox.security.sample
>> from CVS. Then I've put the boot.jar into the lib/ folder of the sample
>> project and put the VM option -Xbootclasspath/a:lib/boot.jar into its
>> run dialog.
>>
>> Eclipse doesn't show any errors until you try to run the sample. Then it
>> says:
>>
>> java.lang.NoClassDefFoundError:
>> org/eclipse/equinox/security/auth/SecurePlatform
>> at
>> org.eclipse.equinox.security.sample.AuthApplication.run(Auth Application.java:47)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
>>
>> Any help is very much appreciated.
>>
>> Yours, Arthur
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds