Hi,

most likely your test jumps in to early.
Did you make sure that your test "waits" for the
BootFinish service to appear?

@Inject
protected BootFinished bootFinished;

regards, Achim



2015-12-04 22:27 GMT+01:00 Alex Soto <[email protected]>:

> When running integration tests with Pax-Exam, trying to install any
> feature fails with the exception below.
> It works from the interactive console.  Other feature commands, like
> “feature:list” work fine, only “feature:install” fails.
>
> Example:
>
> feature:install spring
>
> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
> found: feature:install
> at
> 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)
>
> Any idea what may be causing this?
>
> Best regards,
> Alex Soto
>
>
>
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to