riena remote Activator is always invalid [message #487220] |
Tue, 22 September 2009 13:27 |
Waldi 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 |
Waldi 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 |
Waldi 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
|
|
|
Powered by
FUDForum. Page generated in 0.04765 seconds