You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tho huynh ngoc <ng...@gmail.com> on 2015/10/07 19:52:26 UTC

Can not start, stop, install, etc bundles on a remote Karaf

Hi all,

I connected to the remote Karaf 4.0.0 but i can not start/stop/install...
the bundles on a remote Karaf

Example:
         ObjectName mbeanName = new
ObjectName("osgi.core:type=framework,version=1.5");
         FrameworkMBean osgiFrameworkProxy = JMX.newMBeanProxy(mbsc,
mbeanName,
                     FrameworkMBean.class, false);

         long i = osgiFrameworkProxy.installBundle(bundle.jar); // a bundle
on a remote Karaf

    }
}
There are an error at ObjectName mbeanName = new
ObjectName("osgi.core:type=framework,version=1.5");

Please help me,
Tho

Re: Can not start, stop, install, etc bundles on a remote Karaf

Posted by tho huynh ngoc <ng...@gmail.com>.
Hi,

I found the issue here: https://issues.apache.org/jira/browse/ARIES-1056
I replaced ObjectName mbeanName = new
ObjectName("osgi.core:type=framework,version=1.7");
by          ObjectName mbeanName = new
ObjectName("osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=0410ffc0-c818-483f-afd6-65d2ec690180")

and it works.


However, it throws a new error: Insufficient roles/credentials for operation


Anyone can show me a suggestion ?
Thanks,

2015-10-07 19:52 GMT+02:00 tho huynh ngoc <ng...@gmail.com>:

> Hi all,
>
> I connected to the remote Karaf 4.0.0 but i can not start/stop/install...
> the bundles on a remote Karaf
>
> Example:
>          ObjectName mbeanName = new
> ObjectName("osgi.core:type=framework,version=1.5");
>          FrameworkMBean osgiFrameworkProxy = JMX.newMBeanProxy(mbsc,
> mbeanName,
>                      FrameworkMBean.class, false);
>
>          long i = osgiFrameworkProxy.installBundle(bundle.jar); // a
> bundle on a remote Karaf
>
>     }
> }
> There are an error at ObjectName mbeanName = new
> ObjectName("osgi.core:type=framework,version=1.5");
>
> Please help me,
> Tho
>
>