[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [lyo-dev] Making org.eclipse.lyo.client.oslc.samples run as an Applet
|
I confess it's been a while since I've written an applet. I think the easiest thing here is to (self-)sign the JAR, which should let Wink read the file.
http://docs.oracle.com/javase/tutorial/deployment/jar/signing.html
Good luck,
--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC
Abe ---06/27/2014 10:43:14 AM---HI, I'm probably not the first to want to do this, but I'd like to run the
![]()
| ![]()
Abe <abe777@xxxxxxxxx> |
![]()
| ![]()
lyo-dev@xxxxxxxxxxx |
![]()
| ![]()
06/27/2014 10:43 AM |
![]()
| ![]()
[lyo-dev] Making org.eclipse.lyo.client.oslc.samples run as an Applet |
![]()
| ![]()
lyo-dev-bounces@xxxxxxxxxxx |
HI,
I'm probably not the first to want to do this, but I'd like to run the DoorsOauthSample as a Java Applet. I have this working fine in Eclipse, but I get the following error when I try to access the snapshot jar from a browser:
Jun 25, 2014 6:37:02 PM org.eclipse.lyo.client.oslc.samples.DoorsOauthSample main
SEVERE: Unable to access the Jazz rootservices document at: http://jssdw40023786:8080/dwa/public/rootservices
org.eclipse.lyo.client.exception.RootServicesException: OSLCC003: An error occurred processing the root services document. Server location: http://jssdw40023786:8080/dwa/public.
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.processRootServices(JazzRootServicesHelper.java:193)
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.<init>(JazzRootServicesHelper.java:116)
at org.eclipse.lyo.client.oslc.samples.DoorsOauthSample.main(DoorsOauthSample.java:151)
at org.eclipse.lyo.client.oslc.samples.DoorsOauthSample.start(DoorsOauthSample.java:100)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "META-INF\core\wink-providers" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.isFile(Unknown Source)
at org.apache.wink.common.internal.utils.FileLoader.loadFileAsStream(FileLoader.java:87)
at org.apache.wink.common.internal.application.ApplicationFileLoader.<init>(ApplicationFileLoader.java:97)
at org.apache.wink.common.internal.application.ApplicationFileLoader.<init>(ApplicationFileLoader.java:66)
at org.apache.wink.client.ClientConfig$1.run(ClientConfig.java:112)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.wink.client.ClientConfig.initDefaultApplication(ClientConfig.java:109)
at org.apache.wink.client.ClientConfig.applications(ClientConfig.java:397)
at org.eclipse.lyo.client.oslc.OslcClient.<init>(OslcClient.java:142)
at org.eclipse.lyo.client.oslc.OslcClient.<init>(OslcClient.java:110)
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.processRootServices(JazzRootServicesHelper.java:174)
... 6 more
Does this need to be a signed applet? Would it be better to run this as a regular Java application under JNLP? I'm very new to Java/Eclipse, so I apologize for asking something that may be obvious.
Thanks,
Abe_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/lyo-dev

