Skip to main content



      Home
Home » Eclipse Projects » Equinox » help with access restriction on org.eclipse.osgi
help with access restriction on org.eclipse.osgi [message #78543] Wed, 06 December 2006 06:53 Go to next message
Eclipse UserFriend
Originally posted by: Fabio.Plachetta.cas.de

Hi,
I get the following error in eclipse, when I try to user a
ServiceTracker or ServiceTrackerCustomizer:

<< Access restriction: The type ServiceTracker is not accessible due to
restriction on required project org.eclipse.osgi >>

I have checked out org.eclipse.osgi from the eclipse-svn.

My Code:

=============================================
package de.cas.osgi.bundle.opdispatcher.impl;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Constants;
import org.osgi.util.tracker.*;

public class Activator implements BundleActivator {

public static BundleContext context = null;

//error here:
public ServiceTracker tracker;

public void start(BundleContext context) {
...
}
....
}
============================================

What can I do, or what do I do wrong?

TIA
-Fabio
Re: help with access restriction on org.eclipse.osgi [message #78558 is a reply to message #78543] Wed, 06 December 2006 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Fabio Plachetta wrote:
> Hi,
> I get the following error in eclipse, when I try to user a
> ServiceTracker or ServiceTrackerCustomizer:
>
> << Access restriction: The type ServiceTracker is not accessible due to
> restriction on required project org.eclipse.osgi >>
>
> I have checked out org.eclipse.osgi from the eclipse-svn.

Do you import org.osgi.util.tracker in your Manifest? This error message
is sometimes caused by either failure to export or failure to import the
package in question.

Harald
Re: help with access restriction on org.eclipse.osgi [message #78624 is a reply to message #78558] Thu, 07 December 2006 05:33 Go to previous message
Eclipse UserFriend
Originally posted by: Fabio.Plachetta.cas.de

Hi Harald!

> Do you import org.osgi.util.tracker in your Manifest?

Sometimes the solution is so simple that you just don't see it. Of
course, I forgot to do that! Thanks ;-)

-Fabio


Harald Niesche schrieb:
> Fabio Plachetta wrote:
>> Hi,
>> I get the following error in eclipse, when I try to user a
>> ServiceTracker or ServiceTrackerCustomizer:
>>
>> << Access restriction: The type ServiceTracker is not accessible due to
>> restriction on required project org.eclipse.osgi >>
>>
>> I have checked out org.eclipse.osgi from the eclipse-svn.
>
> Do you import org.osgi.util.tracker in your Manifest? This error message
> is sometimes caused by either failure to export or failure to import the
> package in question.
>
> Harald
Previous Topic:Resource Access in Bundles
Next Topic:Modify Bridge to serve as direct communication channel between tomcat and osgi
Goto Forum:
  


Current Time: Wed Apr 16 01:51:48 EDT 2025

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

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

Back to the top