How do you execute the command in Pax Exam ? Using session.execute or
directly using the processor ?
Regards
JB
On 04/26/2016 08:19 PM, Alex Soto wrote:
Verified that the ACL file under etc is present
`org.apache.karaf.command.acl.bundle.cfg’ with:
restart[/.*[-][f].*/] = admin
restart = manager
File: users.properties
karaf = karaf,_g_:admingroup
_g_\:admingroup=group,admin,manager,viewer,_system bundles_
I am now passing a principal when invoking the command:
log.info(karafCtl.executeCommand("bundle:restart \”business bundle\"",
false, newRolePrincipal("karaf")));
Best regards,
Alex soto
On Apr 26, 2016, at 1:50 PM, Jean-Baptiste Onofré <[email protected]
<mailto:[email protected]>> wrote:
I bet the ACL files are missing in the etc folder (probably custom
distribution).
Can you check this ?
Regards
JB
On 04/26/2016 06:55 PM, Alex Soto wrote:
Hello,
Running Karaf 4.0.3, and pax-exam 4.7.0.
From my pax-exam integration test I have no problem running command
“bundle:list”, however, on the next line, I try to run “bundle:restart”
and get exception:
org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
found: bundle:restart
I assume that all bundle commands are deployed by the same feature, so
why is /list/ is available and not /restart/?
Is there something else I need to do to get access to the /restart
/command?
Best regards,
Alex soto
--
Jean-Baptiste Onofré
[email protected] <mailto:[email protected]>
http://blog.nanthrax.net
Talend - http://www.talend.com
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com