AccessControlException: access denied (java.io.FilePermission [message #182979] |
Tue, 05 December 2006 10:25 |
Eclipse User |
|
|
|
Originally posted by: brahim.zemmit.alcatel.de
Hi,
i have a client/server application implemented, where the client part is
an RCP workbench. Both client and server are in different workspaces but
run on the same computer. After compiling the server, i have generated
the interface as a jar , that will be referenced by the client (in
Buildpath of the client add external jar interface.jar).
Running the client, i get the following error:
java.security.AccessControlException: access denied
(java.io.FilePermission < <path of interface.jar>\interface.class read)
Can any body help me to resolve this problem?
In which part of the Workbench application will the "registry.lookup (...)
code" usually reside ?
(I have put it in the createControlPart of one view ...).
Thank you
|
|
|
Re: AccessControlException: access denied (java.io.FilePermission [message #184914 is a reply to message #182979] |
Tue, 19 December 2006 15:32 |
Marcelo Paternostro Messages: 602 Registered: July 2009 |
Senior Member |
|
|
Hi,
A plug-in must explicitly export all the packages that will be accessed
by other plug-ins. So, in your scenario, open the MANIFEST.MF file of
the server plug-in, click on the runtime tab and use the add button to
add the exported packages.
I hope this fixes the problem.
Cheers,
Marcelo
brahim Zemmit wrote:
> Hi,
>
> i have a client/server application implemented, where the client part is
> an RCP workbench. Both client and server are in different workspaces but
> run on the same computer. After compiling the server, i have generated
> the interface as a jar , that will be referenced by the client (in
> Buildpath of the client add external jar interface.jar).
> Running the client, i get the following error:
> java.security.AccessControlException: access denied
> (java.io.FilePermission < <path of interface.jar>\interface.class read)
>
> Can any body help me to resolve this problem?
>
> In which part of the Workbench application will the "registry.lookup
> (...) code" usually reside ? (I have put it in the createControlPart of
> one view ...).
>
> Thank you
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09201 seconds