Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » riena remote Activator is always invalid
riena remote Activator is always invalid [message #487220] Tue, 22 September 2009 13:27 Go to next message
Waldi  is currently offline Waldi Friend
Messages: 60
Registered: July 2009
Member
Dear all,

I try to publish a remote service without success. The Following error
always occur:

org.osgi.framework.BundleException: The activator
org.eclipse.emf.example.library.auth.server.Activator for bundle
org.eclipse.emf.example.library.auth.server is invalid

I try it two days but no success. I walk step by step through the
tutorial http://wiki.eclipse.org/Riena_Getting_started_remoteservices

I look at the ping pong example, this run but mine not why? Here ist my
Activator. Hope you can help me.

public class Activator implements BundleActivator {

private ServiceRegistration registry;

public void start(BundleContext context) throws Exception {
AuthServiceImpl service = new AuthServiceImpl();

Hashtable<String, String> properties = new Hashtable<String, String>(3);
properties.put(RSDPublisherProperties.PROP_IS_REMOTE,
Boolean.TRUE.toString());
properties.put(RSDPublisherProperties.PROP_REMOTE_PROTOCOL,
"hessian"); //$NON-NLS-1$
properties.put(RSDPublisherProperties.PROP_REMOTE_PATH,
"/PingPongWS"); //$NON-NLS-1$

registry = context.registerService(IAuthService.class.getName(),
service, properties);
}

public void stop(BundleContext context) throws Exception {
registry.unregister();
registry = null;
}
}

I worked with riena 1.1.0.0 and 1.2.0.0

Thanks in advance
Re: riena remote Activator is always invalid [message #487604 is a reply to message #487220] Wed, 23 September 2009 17:00 Go to previous message
Waldi  is currently offline Waldi Friend
Messages: 60
Registered: July 2009
Member
I try many times and the solution was:

You should deactivate the checkbox "This Plugin will make contributions
to the UI" on the new Plug in Project dialog.

Waldi Waldemar schrieb:
> Dear all,
>
> I try to publish a remote service without success. The Following error
> always occur:
>
> org.osgi.framework.BundleException: The activator
> org.eclipse.emf.example.library.auth.server.Activator for bundle
> org.eclipse.emf.example.library.auth.server is invalid
>
> I try it two days but no success. I walk step by step through the
> tutorial http://wiki.eclipse.org/Riena_Getting_started_remoteservices
>
> I look at the ping pong example, this run but mine not why? Here ist my
> Activator. Hope you can help me.
>
> public class Activator implements BundleActivator {
>
> private ServiceRegistration registry;
>
> public void start(BundleContext context) throws Exception {
> AuthServiceImpl service = new AuthServiceImpl();
>
> Hashtable<String, String> properties = new Hashtable<String,
> String>(3);
> properties.put(RSDPublisherProperties.PROP_IS_REMOTE,
> Boolean.TRUE.toString());
> properties.put(RSDPublisherProperties.PROP_REMOTE_PROTOCOL,
> "hessian"); //$NON-NLS-1$
> properties.put(RSDPublisherProperties.PROP_REMOTE_PATH,
> "/PingPongWS"); //$NON-NLS-1$
>
> registry = context.registerService(IAuthService.class.getName(),
> service, properties);
> }
>
> public void stop(BundleContext context) throws Exception {
> registry.unregister();
> registry = null;
> }
> }
>
> I worked with riena 1.1.0.0 and 1.2.0.0
>
> Thanks in advance
Re: riena remote Activator is always invalid [message #583519 is a reply to message #487220] Wed, 23 September 2009 17:00 Go to previous message
Waldi  is currently offline Waldi Friend
Messages: 60
Registered: July 2009
Member
I try many times and the solution was:

You should deactivate the checkbox "This Plugin will make contributions
to the UI" on the new Plug in Project dialog.

Waldi Waldemar schrieb:
> Dear all,
>
> I try to publish a remote service without success. The Following error
> always occur:
>
> org.osgi.framework.BundleException: The activator
> org.eclipse.emf.example.library.auth.server.Activator for bundle
> org.eclipse.emf.example.library.auth.server is invalid
>
> I try it two days but no success. I walk step by step through the
> tutorial http://wiki.eclipse.org/Riena_Getting_started_remoteservices
>
> I look at the ping pong example, this run but mine not why? Here ist my
> Activator. Hope you can help me.
>
> public class Activator implements BundleActivator {
>
> private ServiceRegistration registry;
>
> public void start(BundleContext context) throws Exception {
> AuthServiceImpl service = new AuthServiceImpl();
>
> Hashtable<String, String> properties = new Hashtable<String,
> String>(3);
> properties.put(RSDPublisherProperties.PROP_IS_REMOTE,
> Boolean.TRUE.toString());
> properties.put(RSDPublisherProperties.PROP_REMOTE_PROTOCOL,
> "hessian"); //$NON-NLS-1$
> properties.put(RSDPublisherProperties.PROP_REMOTE_PATH,
> "/PingPongWS"); //$NON-NLS-1$
>
> registry = context.registerService(IAuthService.class.getName(),
> service, properties);
> }
>
> public void stop(BundleContext context) throws Exception {
> registry.unregister();
> registry = null;
> }
> }
>
> I worked with riena 1.1.0.0 and 1.2.0.0
>
> Thanks in advance
Previous Topic:riena remote Activator is always invalid
Next Topic:Problem accessing remote service
Goto Forum:
  


Current Time: Fri Apr 26 06:52:31 GMT 2024

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

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

Back to the top