Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » AccessControlException: access denied (java.io.FilePermission
AccessControlException: access denied (java.io.FilePermission [message #182979] Tue, 05 December 2006 10:25 Go to next message
Eclipse UserFriend
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 Go to previous message
Marcelo Paternostro is currently offline Marcelo PaternostroFriend
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
>
>
Previous Topic:Error while export of RCP application
Next Topic:Error connecting Tomcat with SSL
Goto Forum:
  


Current Time: Fri Apr 26 22:44:20 GMT 2024

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

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

Back to the top