As Karaf uses Roles assigned to user (
https://karaf.apache.org/manual/latest/users-guide/security.html), I
suspect that the user or ACL defined doesn't allow you to use this command

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.shell/org.apache.karaf.shell.core/4.0.0/org/apache/karaf/shell/impl/console/osgi/secured/SecuredSessionFactoryImpl.java#96

On Tue, Apr 26, 2016 at 7:12 PM, Alex Soto <alex.s...@envieta.com> wrote:

> It is not very deep, but here it goes:
>
>
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredSessionFactoryImpl.checkSecurity(
> SecuredSessionFactoryImpl.java:116)
> at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(
> SecuredCommand.java:66)
> at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(
> SecuredCommand.java:87)
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)
> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406
> )
> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)
> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
> CommandSessionImpl.java:94)
> at org.apache.karaf.shell.impl.console.HeadlessSessionImpl.execute(
> HeadlessSessionImpl.java:90)
>
>
>
> Best regards,
> Alex soto
>
>
>
> On Apr 26, 2016, at 1:04 PM, Charles Moulliard <ch0...@gmail.com> wrote:
>
> Hi Alex,
>
> List and Restart Commands are packaged within the same bundle
>
>
> https://github.com/apache/karaf/tree/master/bundle/core/src/main/java/org/apache/karaf/bundle/command
>
> Do you have more info within the stack trace ?
>
> Regards,
>
> On Tue, Apr 26, 2016 at 6:55 PM, Alex Soto <alex.s...@envieta.com> 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
>>
>>
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer & PMC / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>
>


-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to