You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Cristiano Gavião <cv...@gmail.com> on 2011/04/07 18:15:09 UTC
Extending console ?
Hi, I'm trying to extend the console (karaf 2.2.0) using this:
http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
this is my POM:
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>2.3.4</version>
> <extensions>true</extensions>
> <configuration>
> <instructions>
> <Import-Package>
> org.osgi.service.command,*
> </Import-Package>
That is the resolved manifest:
> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
> pache.karaf.shell.console;version="[2.2,3)",org.osgi.service.blueprin
> t;version="[1.0.0,2.0.0)",org.osgi.service.command
but is not working due a missing requirement:
> karaf@root>osgi:install -s mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
> Error executing command: Unresolved constraint in bundle
> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
> [85.0] package; (package=org.osgi.service.command)
Please could someone tell me what am I missing?
thanks
Cristiano
Re: Extending console ?
Posted by Cristiano Gavião <cv...@gmail.com>.
:-) I've tried to delete the data folder... But I've not used the
"clean" parameter, and when I've started it, everything got messed (lot
and lot of errors)
well, my solution was to download karaf again... :-) living and learning...
thanks for the advice...
cheers
Cristiano
On 07/04/11 16:10, Jean-Baptiste Onofré wrote:
> Hi Cristiano,
>
> yeah, the bundle was in bundle cache (in data folder).
>
> To start a clean Karaf instance, you should:
> - remove the data folder
> - start karaf with bin/start clean
>
> Regards
> JB
Re: Extending console ?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Cristiano,
yeah, the bundle was in bundle cache (in data folder).
To start a clean Karaf instance, you should:
- remove the data folder
- start karaf with bin/start clean
Regards
JB
On 04/07/2011 08:05 PM, Cristiano Gavião wrote:
> Humm, I know what happen now...
>
> When I tried to install before your email Karaf gives me a error but
> somehow it install the bundle with error...
>
> I discover this with osgi:list...
>
> So I just uninstall the old version and try again with the new one...
> and it works
>
> thanks
>
> On 07/04/11 14:52, Cristiano Gavião wrote:
>> Hi Jean-Baptiste,
>> thanks for trying to help me...
>>
>> well, I did what you tell me, but still not working, karaf still
>> complain about org.osgi.service.command
>>
>> pom:
>>> <Import-Package>
>>> org.apache.felix.service.command, *
>>> </Import-Package>
>> manifest:
>>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>>> pache.felix.service.command;version="[0.6,1)";status=provisional,org.
>>> apache.karaf.shell.console;version="[2.2,3)",org.osgi.service.bluepri
>>> nt;version="[1.0.0,2.0.0)"
>> exec:
>>> karaf@root>osgi:install -s mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>>> Error executing command: Unresolved constraint in bundle
>>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>>> [85.0] package; (package=org.osgi.service.command)
>>
>>
>> On 07/04/11 14:39, Jean-Baptiste Onofré wrote:
>>> Hi,
>>>
>>> there were some changes between Karaf 2.1.x and 2.2.0.
>>>
>>> You have to use import org.apache.felix.service.command in place of
>>> org.osgi.service.command.
>>>
>>> Regards
>>> JB
>>>
>>> On 04/07/2011 06:15 PM, Cristiano Gavião wrote:
>>>> Hi, I'm trying to extend the console (karaf 2.2.0) using this:
>>>> http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
>>>>
>>>>
>>>>
>>>> this is my POM:
>>>>> <plugin>
>>>>> <groupId>org.apache.felix</groupId>
>>>>> <artifactId>maven-bundle-plugin</artifactId>
>>>>> <version>2.3.4</version>
>>>>> <extensions>true</extensions>
>>>>> <configuration>
>>>>> <instructions>
>>>>> <Import-Package>
>>>>> org.osgi.service.command,*
>>>>> </Import-Package>
>>>>
>>>>
>>>> That is the resolved manifest:
>>>>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>>>>> pache.karaf.shell.console;version="[2.2,3)",org.osgi.service.blueprin
>>>>> t;version="[1.0.0,2.0.0)",org.osgi.service.command
>>>>
>>>> but is not working due a missing requirement:
>>>>> karaf@root>osgi:install -s
>>>>> mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>>>>> Error executing command: Unresolved constraint in bundle
>>>>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>>>>> [85.0] package; (package=org.osgi.service.command)
>>>>
>>>> Please could someone tell me what am I missing?
>>>>
>>>> thanks
>>>>
>>>> Cristiano
>>
>
Re: Extending console ?
Posted by Cristiano Gavião <cv...@gmail.com>.
Humm, I know what happen now...
When I tried to install before your email Karaf gives me a error but
somehow it install the bundle with error...
I discover this with osgi:list...
So I just uninstall the old version and try again with the new one...
and it works
thanks
On 07/04/11 14:52, Cristiano Gavião wrote:
> Hi Jean-Baptiste,
> thanks for trying to help me...
>
> well, I did what you tell me, but still not working, karaf still
> complain about org.osgi.service.command
>
> pom:
>> <Import-Package>
>> org.apache.felix.service.command, *
>> </Import-Package>
> manifest:
>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>> pache.felix.service.command;version="[0.6,1)";status=provisional,org.
>> apache.karaf.shell.console;version="[2.2,3)",org.osgi.service.bluepri
>> nt;version="[1.0.0,2.0.0)"
> exec:
>> karaf@root>osgi:install -s mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>> Error executing command: Unresolved constraint in bundle
>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>> [85.0] package; (package=org.osgi.service.command)
>
>
> On 07/04/11 14:39, Jean-Baptiste Onofré wrote:
>> Hi,
>>
>> there were some changes between Karaf 2.1.x and 2.2.0.
>>
>> You have to use import org.apache.felix.service.command in place of
>> org.osgi.service.command.
>>
>> Regards
>> JB
>>
>> On 04/07/2011 06:15 PM, Cristiano Gavião wrote:
>>> Hi, I'm trying to extend the console (karaf 2.2.0) using this:
>>> http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
>>>
>>>
>>>
>>> this is my POM:
>>>> <plugin>
>>>> <groupId>org.apache.felix</groupId>
>>>> <artifactId>maven-bundle-plugin</artifactId>
>>>> <version>2.3.4</version>
>>>> <extensions>true</extensions>
>>>> <configuration>
>>>> <instructions>
>>>> <Import-Package>
>>>> org.osgi.service.command,*
>>>> </Import-Package>
>>>
>>>
>>> That is the resolved manifest:
>>>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>>>> pache.karaf.shell.console;version="[2.2,3)",org.osgi.service.blueprin
>>>> t;version="[1.0.0,2.0.0)",org.osgi.service.command
>>>
>>> but is not working due a missing requirement:
>>>> karaf@root>osgi:install -s
>>>> mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>>>> Error executing command: Unresolved constraint in bundle
>>>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>>>> [85.0] package; (package=org.osgi.service.command)
>>>
>>> Please could someone tell me what am I missing?
>>>
>>> thanks
>>>
>>> Cristiano
>
Re: Extending console ?
Posted by Cristiano Gavião <cv...@gmail.com>.
Hi Jean-Baptiste,
thanks for trying to help me...
well, I did what you tell me, but still not working, karaf still
complain about org.osgi.service.command
pom:
> <Import-Package>
> org.apache.felix.service.command, *
> </Import-Package>
manifest:
> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
> pache.felix.service.command;version="[0.6,1)";status=provisional,org.
> apache.karaf.shell.console;version="[2.2,3)",org.osgi.service.bluepri
> nt;version="[1.0.0,2.0.0)"
exec:
> karaf@root>osgi:install -s mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
> Error executing command: Unresolved constraint in bundle
> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
> [85.0] package; (package=org.osgi.service.command)
On 07/04/11 14:39, Jean-Baptiste Onofré wrote:
> Hi,
>
> there were some changes between Karaf 2.1.x and 2.2.0.
>
> You have to use import org.apache.felix.service.command in place of
> org.osgi.service.command.
>
> Regards
> JB
>
> On 04/07/2011 06:15 PM, Cristiano Gavião wrote:
>> Hi, I'm trying to extend the console (karaf 2.2.0) using this:
>> http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
>>
>>
>>
>> this is my POM:
>>> <plugin>
>>> <groupId>org.apache.felix</groupId>
>>> <artifactId>maven-bundle-plugin</artifactId>
>>> <version>2.3.4</version>
>>> <extensions>true</extensions>
>>> <configuration>
>>> <instructions>
>>> <Import-Package>
>>> org.osgi.service.command,*
>>> </Import-Package>
>>
>>
>> That is the resolved manifest:
>>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>>> pache.karaf.shell.console;version="[2.2,3)",org.osgi.service.blueprin
>>> t;version="[1.0.0,2.0.0)",org.osgi.service.command
>>
>> but is not working due a missing requirement:
>>> karaf@root>osgi:install -s
>>> mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>>> Error executing command: Unresolved constraint in bundle
>>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>>> [85.0] package; (package=org.osgi.service.command)
>>
>> Please could someone tell me what am I missing?
>>
>> thanks
>>
>> Cristiano
Re: Extending console ?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
there were some changes between Karaf 2.1.x and 2.2.0.
You have to use import org.apache.felix.service.command in place of
org.osgi.service.command.
Regards
JB
On 04/07/2011 06:15 PM, Cristiano Gavião wrote:
> Hi, I'm trying to extend the console (karaf 2.2.0) using this:
> http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
>
>
> this is my POM:
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <version>2.3.4</version>
>> <extensions>true</extensions>
>> <configuration>
>> <instructions>
>> <Import-Package>
>> org.osgi.service.command,*
>> </Import-Package>
>
>
> That is the resolved manifest:
>> Import-Package: org.apache.felix.gogo.commands;version="[0.6,1)",org.a
>> pache.karaf.shell.console;version="[2.2,3)",org.osgi.service.blueprin
>> t;version="[1.0.0,2.0.0)",org.osgi.service.command
>
> but is not working due a missing requirement:
>> karaf@root>osgi:install -s mvn:org.jb.osgi/jb-osgi-commands/1.0-SNAPSHOT
>> Error executing command: Unresolved constraint in bundle
>> jb-osgi-commands [85]: Unable to resolve 85.0: missing requirement
>> [85.0] package; (package=org.osgi.service.command)
>
> Please could someone tell me what am I missing?
>
> thanks
>
> Cristiano