I am running into the same problem with Karaf 3.0.1.
Caused by:
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
find a matching factory method getScope on class
org.apache.karaf.shell.console.commands.NamespaceHandler for arguments
[com.nextgate.accessmanager.user.setup.ProvisionUserCommand] when
instanciating bean #recipe-25
at
org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:318)
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)
at
org.apache.aries.blueprint.di.MapRecipe.internalCreate(MapRecipe.java:111)
I am getting this exception with v1.1.0 and v1.0.0. Please advise as I
cannot continue testing at this point.
This is my blueprint.xml:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
<command>
<action
class="com.nextgate.accessmanager.user.setup.ProvisionUserCommand"/>
</command>
</command-bundle>
</blueprint>
Interestingly, a different class which extends OsgiCommandSupport with a
different blueprint.xml in the same Karaf instance is NOT having this
problem (it's using v1.1.0). I'm not sure what the difference is, the
blueprint.xml files are very similar.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Schema-for-custom-shell-commands-tp4029047p4035579.html
Sent from the Karaf - User mailing list archive at Nabble.com.