no log activity when deploy a features.xml to deploy directory

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

no log activity when deploy a features.xml to deploy directory

dantran
Hi,


Since I now have a known set of bundles for activemq client ( i deploy
all the bundles to deploy directory and karaf happy ), the next step
is to see if I can automate it via a features.xml. However karaf is
dead silent when i drop my features.xml to deploy directory

here is my file

<?xml version="1.0" encoding="UTF-8"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
  <feature name='activemq-client' version='5.4.2' >
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
  </feature>
</features>


what is the best way to trouble shot this issue?

Thanks

-Dan
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

Achim Nierbeck
Hi Dan,

after droping your features.xml your features are also available for
installing by features:install activemq-client.
If you do this in the shell you will receive the information you are
missing right now.

regards, Achim

2011/3/14 Dan Tran <[hidden email]>:

> Hi,
>
>
> Since I now have a known set of bundles for activemq client ( i deploy
> all the bundles to deploy directory and karaf happy ), the next step
> is to see if I can automate it via a features.xml. However karaf is
> dead silent when i drop my features.xml to deploy directory
>
> here is my file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>  <feature name='activemq-client' version='5.4.2' >
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>  </feature>
> </features>
>
>
> what is the best way to trouble shot this issue?
>
> Thanks
>
> -Dan
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
Hi Achime,

features:install activemq-client does not work, Karaf cant not find it
( "Error executing command: No feature named 'activemq-client' with
version '0.0.0' available" )

On other hand, the following features.xml file generated from
maven-features-plugin, works:

<?xml version="1.0" encoding="UTF-8"?>
<features>
  <feature name='spring-jms' version='3.0.5.RELEASE'>
    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
  </feature>
  <feature name='activemq-core' version='5.4.2'>
    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
    <bundle>mvn:commons-net/commons-net/2.0</bundle>
    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
  </feature>
  <feature name='xbean-spring' version='3.7'>
    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
  </feature>
  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
  </feature>
  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
  </feature>
  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
  </feature>
  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
  </feature>
  <feature name='kahadb' version='5.4.2'>
    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
  </feature>
</features>



-Dan


On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:

> Hi Dan,
>
> after droping your features.xml your features are also available for
> installing by features:install activemq-client.
> If you do this in the shell you will receive the information you are
> missing right now.
>
> regards, Achim
>
> 2011/3/14 Dan Tran <[hidden email]>:
>> Hi,
>>
>>
>> Since I now have a known set of bundles for activemq client ( i deploy
>> all the bundles to deploy directory and karaf happy ), the next step
>> is to see if I can automate it via a features.xml. However karaf is
>> dead silent when i drop my features.xml to deploy directory
>>
>> here is my file
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>  <feature name='activemq-client' version='5.4.2' >
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>  </feature>
>> </features>
>>
>>
>> what is the best way to trouble shot this issue?
>>
>> Thanks
>>
>> -Dan
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

Achim Nierbeck
ok,

what is features:list telling you?
if your active-mq feature isn't listed here you have some other sort of issue.
Please take a look at the logs, and if there is nothing in it switch
to DEBUG logging.

When looking for such issues it's always helpfull to  restart your
karaf instance with dev:restart -clean
this way the data directory is deleted and you start with a fresh
installation :)

regards, Achim

2011/3/14 Dan Tran <[hidden email]>:

> Hi Achime,
>
> features:install activemq-client does not work, Karaf cant not find it
> ( "Error executing command: No feature named 'activemq-client' with
> version '0.0.0' available" )
>
> On other hand, the following features.xml file generated from
> maven-features-plugin, works:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <features>
>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>  </feature>
>  <feature name='activemq-core' version='5.4.2'>
>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>  </feature>
>  <feature name='xbean-spring' version='3.7'>
>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>  </feature>
>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>  </feature>
>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>  </feature>
>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>  </feature>
>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>  </feature>
>  <feature name='kahadb' version='5.4.2'>
>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>  </feature>
> </features>
>
>
>
> -Dan
>
>
> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>> Hi Dan,
>>
>> after droping your features.xml your features are also available for
>> installing by features:install activemq-client.
>> If you do this in the shell you will receive the information you are
>> missing right now.
>>
>> regards, Achim
>>
>> 2011/3/14 Dan Tran <[hidden email]>:
>>> Hi,
>>>
>>>
>>> Since I now have a known set of bundles for activemq client ( i deploy
>>> all the bundles to deploy directory and karaf happy ), the next step
>>> is to see if I can automate it via a features.xml. However karaf is
>>> dead silent when i drop my features.xml to deploy directory
>>>
>>> here is my file
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>  <feature name='activemq-client' version='5.4.2' >
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>  </feature>
>>> </features>
>>>
>>>
>>> what is the best way to trouble shot this issue?
>>>
>>> Thanks
>>>
>>> -Dan
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
ah, I should have looking further to figure out how to turn on debug logging.

-D

On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:

> ok,
>
> what is features:list telling you?
> if your active-mq feature isn't listed here you have some other sort of issue.
> Please take a look at the logs, and if there is nothing in it switch
> to DEBUG logging.
>
> When looking for such issues it's always helpfull to  restart your
> karaf instance with dev:restart -clean
> this way the data directory is deleted and you start with a fresh
> installation :)
>
> regards, Achim
>
> 2011/3/14 Dan Tran <[hidden email]>:
>> Hi Achime,
>>
>> features:install activemq-client does not work, Karaf cant not find it
>> ( "Error executing command: No feature named 'activemq-client' with
>> version '0.0.0' available" )
>>
>> On other hand, the following features.xml file generated from
>> maven-features-plugin, works:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <features>
>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>  </feature>
>>  <feature name='activemq-core' version='5.4.2'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>  </feature>
>>  <feature name='xbean-spring' version='3.7'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>  </feature>
>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>  </feature>
>>  <feature name='kahadb' version='5.4.2'>
>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>  </feature>
>> </features>
>>
>>
>>
>> -Dan
>>
>>
>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>> Hi Dan,
>>>
>>> after droping your features.xml your features are also available for
>>> installing by features:install activemq-client.
>>> If you do this in the shell you will receive the information you are
>>> missing right now.
>>>
>>> regards, Achim
>>>
>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>> Hi,
>>>>
>>>>
>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>> is to see if I can automate it via a features.xml. However karaf is
>>>> dead silent when i drop my features.xml to deploy directory
>>>>
>>>> here is my file
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>  </feature>
>>>> </features>
>>>>
>>>>
>>>> what is the best way to trouble shot this issue?
>>>>
>>>> Thanks
>>>>
>>>> -Dan
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
When compare with the one generated by maven-features-plugin, I notice
the generated one does not have this
"xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"

I took it out of my hand crafted features.xml, Karaf is now happily loading it

Is this a bug?

-Dan

On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:

> ah, I should have looking further to figure out how to turn on debug logging.
>
> -D
>
> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>> ok,
>>
>> what is features:list telling you?
>> if your active-mq feature isn't listed here you have some other sort of issue.
>> Please take a look at the logs, and if there is nothing in it switch
>> to DEBUG logging.
>>
>> When looking for such issues it's always helpfull to  restart your
>> karaf instance with dev:restart -clean
>> this way the data directory is deleted and you start with a fresh
>> installation :)
>>
>> regards, Achim
>>
>> 2011/3/14 Dan Tran <[hidden email]>:
>>> Hi Achime,
>>>
>>> features:install activemq-client does not work, Karaf cant not find it
>>> ( "Error executing command: No feature named 'activemq-client' with
>>> version '0.0.0' available" )
>>>
>>> On other hand, the following features.xml file generated from
>>> maven-features-plugin, works:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <features>
>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>  </feature>
>>>  <feature name='activemq-core' version='5.4.2'>
>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>  </feature>
>>>  <feature name='xbean-spring' version='3.7'>
>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>  </feature>
>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>  </feature>
>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>  </feature>
>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>  </feature>
>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>  </feature>
>>>  <feature name='kahadb' version='5.4.2'>
>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>  </feature>
>>> </features>
>>>
>>>
>>>
>>> -Dan
>>>
>>>
>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>> Hi Dan,
>>>>
>>>> after droping your features.xml your features are also available for
>>>> installing by features:install activemq-client.
>>>> If you do this in the shell you will receive the information you are
>>>> missing right now.
>>>>
>>>> regards, Achim
>>>>
>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>> Hi,
>>>>>
>>>>>
>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>
>>>>> here is my file
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>  </feature>
>>>>> </features>
>>>>>
>>>>>
>>>>> what is the best way to trouble shot this issue?
>>>>>
>>>>> Thanks
>>>>>
>>>>> -Dan
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

Achim Nierbeck
Hi Dan,

the xml schema was introduced with karaf 2.2 which version are you using?

regards, Achim

2011/3/16 Dan Tran <[hidden email]>:

> When compare with the one generated by maven-features-plugin, I notice
> the generated one does not have this
> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>
> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>
> Is this a bug?
>
> -Dan
>
> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>> ah, I should have looking further to figure out how to turn on debug logging.
>>
>> -D
>>
>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>> ok,
>>>
>>> what is features:list telling you?
>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>> Please take a look at the logs, and if there is nothing in it switch
>>> to DEBUG logging.
>>>
>>> When looking for such issues it's always helpfull to  restart your
>>> karaf instance with dev:restart -clean
>>> this way the data directory is deleted and you start with a fresh
>>> installation :)
>>>
>>> regards, Achim
>>>
>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>> Hi Achime,
>>>>
>>>> features:install activemq-client does not work, Karaf cant not find it
>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>> version '0.0.0' available" )
>>>>
>>>> On other hand, the following features.xml file generated from
>>>> maven-features-plugin, works:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <features>
>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>  </feature>
>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>  </feature>
>>>>  <feature name='xbean-spring' version='3.7'>
>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>  </feature>
>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>  </feature>
>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>  </feature>
>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>  </feature>
>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>  </feature>
>>>>  <feature name='kahadb' version='5.4.2'>
>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>  </feature>
>>>> </features>
>>>>
>>>>
>>>>
>>>> -Dan
>>>>
>>>>
>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>> Hi Dan,
>>>>>
>>>>> after droping your features.xml your features are also available for
>>>>> installing by features:install activemq-client.
>>>>> If you do this in the shell you will receive the information you are
>>>>> missing right now.
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>
>>>>>> here is my file
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>  </feature>
>>>>>> </features>
>>>>>>
>>>>>>
>>>>>> what is the best way to trouble shot this issue?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
Hi Achim

I am not sure about the version,  but I just replace

<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
....
</features>

for

<features>
...
</features>

So I assume version 1.0.0 was used

-Dan



On Wed, Mar 16, 2011 at 4:30 AM, Achim Nierbeck <[hidden email]> wrote:

> Hi Dan,
>
> the xml schema was introduced with karaf 2.2 which version are you using?
>
> regards, Achim
>
> 2011/3/16 Dan Tran <[hidden email]>:
>> When compare with the one generated by maven-features-plugin, I notice
>> the generated one does not have this
>> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>>
>> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>>
>> Is this a bug?
>>
>> -Dan
>>
>> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>>> ah, I should have looking further to figure out how to turn on debug logging.
>>>
>>> -D
>>>
>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>>> ok,
>>>>
>>>> what is features:list telling you?
>>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>>> Please take a look at the logs, and if there is nothing in it switch
>>>> to DEBUG logging.
>>>>
>>>> When looking for such issues it's always helpfull to  restart your
>>>> karaf instance with dev:restart -clean
>>>> this way the data directory is deleted and you start with a fresh
>>>> installation :)
>>>>
>>>> regards, Achim
>>>>
>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>> Hi Achime,
>>>>>
>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>> version '0.0.0' available" )
>>>>>
>>>>> On other hand, the following features.xml file generated from
>>>>> maven-features-plugin, works:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <features>
>>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>  </feature>
>>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>  </feature>
>>>>>  <feature name='xbean-spring' version='3.7'>
>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>  </feature>
>>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>  </feature>
>>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>  </feature>
>>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>  </feature>
>>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>  </feature>
>>>>>  <feature name='kahadb' version='5.4.2'>
>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>  </feature>
>>>>> </features>
>>>>>
>>>>>
>>>>>
>>>>> -Dan
>>>>>
>>>>>
>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>> Hi Dan,
>>>>>>
>>>>>> after droping your features.xml your features are also available for
>>>>>> installing by features:install activemq-client.
>>>>>> If you do this in the shell you will receive the information you are
>>>>>> missing right now.
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>
>>>>>>> here is my file
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>  </feature>
>>>>>>> </features>
>>>>>>>
>>>>>>>
>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

Achim Nierbeck
Hi Dan,

my question is which version of Karaf are you using.

Regards, Achim

2011/3/16 Dan Tran <[hidden email]>:

> Hi Achim
>
> I am not sure about the version,  but I just replace
>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
> ....
> </features>
>
> for
>
> <features>
> ...
> </features>
>
> So I assume version 1.0.0 was used
>
> -Dan
>
>
>
> On Wed, Mar 16, 2011 at 4:30 AM, Achim Nierbeck <[hidden email]> wrote:
>> Hi Dan,
>>
>> the xml schema was introduced with karaf 2.2 which version are you using?
>>
>> regards, Achim
>>
>> 2011/3/16 Dan Tran <[hidden email]>:
>>> When compare with the one generated by maven-features-plugin, I notice
>>> the generated one does not have this
>>> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>>>
>>> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>>>
>>> Is this a bug?
>>>
>>> -Dan
>>>
>>> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>>>> ah, I should have looking further to figure out how to turn on debug logging.
>>>>
>>>> -D
>>>>
>>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>> ok,
>>>>>
>>>>> what is features:list telling you?
>>>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>>>> Please take a look at the logs, and if there is nothing in it switch
>>>>> to DEBUG logging.
>>>>>
>>>>> When looking for such issues it's always helpfull to  restart your
>>>>> karaf instance with dev:restart -clean
>>>>> this way the data directory is deleted and you start with a fresh
>>>>> installation :)
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>> Hi Achime,
>>>>>>
>>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>>> version '0.0.0' available" )
>>>>>>
>>>>>> On other hand, the following features.xml file generated from
>>>>>> maven-features-plugin, works:
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <features>
>>>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='xbean-spring' version='3.7'>
>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>  </feature>
>>>>>>  <feature name='kahadb' version='5.4.2'>
>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>  </feature>
>>>>>> </features>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>>
>>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>> Hi Dan,
>>>>>>>
>>>>>>> after droping your features.xml your features are also available for
>>>>>>> installing by features:install activemq-client.
>>>>>>> If you do this in the shell you will receive the information you are
>>>>>>> missing right now.
>>>>>>>
>>>>>>> regards, Achim
>>>>>>>
>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>>
>>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>>
>>>>>>>> here is my file
>>>>>>>>
>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>  </feature>
>>>>>>>> </features>
>>>>>>>>
>>>>>>>>
>>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> -Dan
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
ah, sorry, I am using the latest apache-karaf-2.2

Thanks

-Dan

On Wed, Mar 16, 2011 at 8:33 AM, Achim Nierbeck <[hidden email]> wrote:

> Hi Dan,
>
> my question is which version of Karaf are you using.
>
> Regards, Achim
>
> 2011/3/16 Dan Tran <[hidden email]>:
>> Hi Achim
>>
>> I am not sure about the version,  but I just replace
>>
>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>> ....
>> </features>
>>
>> for
>>
>> <features>
>> ...
>> </features>
>>
>> So I assume version 1.0.0 was used
>>
>> -Dan
>>
>>
>>
>> On Wed, Mar 16, 2011 at 4:30 AM, Achim Nierbeck <[hidden email]> wrote:
>>> Hi Dan,
>>>
>>> the xml schema was introduced with karaf 2.2 which version are you using?
>>>
>>> regards, Achim
>>>
>>> 2011/3/16 Dan Tran <[hidden email]>:
>>>> When compare with the one generated by maven-features-plugin, I notice
>>>> the generated one does not have this
>>>> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>>>>
>>>> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>>>>
>>>> Is this a bug?
>>>>
>>>> -Dan
>>>>
>>>> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>>>>> ah, I should have looking further to figure out how to turn on debug logging.
>>>>>
>>>>> -D
>>>>>
>>>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>> ok,
>>>>>>
>>>>>> what is features:list telling you?
>>>>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>>>>> Please take a look at the logs, and if there is nothing in it switch
>>>>>> to DEBUG logging.
>>>>>>
>>>>>> When looking for such issues it's always helpfull to  restart your
>>>>>> karaf instance with dev:restart -clean
>>>>>> this way the data directory is deleted and you start with a fresh
>>>>>> installation :)
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>> Hi Achime,
>>>>>>>
>>>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>>>> version '0.0.0' available" )
>>>>>>>
>>>>>>> On other hand, the following features.xml file generated from
>>>>>>> maven-features-plugin, works:
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>> <features>
>>>>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='xbean-spring' version='3.7'>
>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>  </feature>
>>>>>>>  <feature name='kahadb' version='5.4.2'>
>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>  </feature>
>>>>>>> </features>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>>> Hi Dan,
>>>>>>>>
>>>>>>>> after droping your features.xml your features are also available for
>>>>>>>> installing by features:install activemq-client.
>>>>>>>> If you do this in the shell you will receive the information you are
>>>>>>>> missing right now.
>>>>>>>>
>>>>>>>> regards, Achim
>>>>>>>>
>>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>>>
>>>>>>>>> here is my file
>>>>>>>>>
>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>>  </feature>
>>>>>>>>> </features>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> -Dan
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

Achim Nierbeck
Could you please raise a  jira issue for that, since 2.2.0 Karaf
should support feature xml files with the schema reference.

regards, Achim

2011/3/16 Dan Tran <[hidden email]>:

> ah, sorry, I am using the latest apache-karaf-2.2
>
> Thanks
>
> -Dan
>
> On Wed, Mar 16, 2011 at 8:33 AM, Achim Nierbeck <[hidden email]> wrote:
>> Hi Dan,
>>
>> my question is which version of Karaf are you using.
>>
>> Regards, Achim
>>
>> 2011/3/16 Dan Tran <[hidden email]>:
>>> Hi Achim
>>>
>>> I am not sure about the version,  but I just replace
>>>
>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>> ....
>>> </features>
>>>
>>> for
>>>
>>> <features>
>>> ...
>>> </features>
>>>
>>> So I assume version 1.0.0 was used
>>>
>>> -Dan
>>>
>>>
>>>
>>> On Wed, Mar 16, 2011 at 4:30 AM, Achim Nierbeck <[hidden email]> wrote:
>>>> Hi Dan,
>>>>
>>>> the xml schema was introduced with karaf 2.2 which version are you using?
>>>>
>>>> regards, Achim
>>>>
>>>> 2011/3/16 Dan Tran <[hidden email]>:
>>>>> When compare with the one generated by maven-features-plugin, I notice
>>>>> the generated one does not have this
>>>>> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>>>>>
>>>>> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>>>>>
>>>>> Is this a bug?
>>>>>
>>>>> -Dan
>>>>>
>>>>> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>>>>>> ah, I should have looking further to figure out how to turn on debug logging.
>>>>>>
>>>>>> -D
>>>>>>
>>>>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>> ok,
>>>>>>>
>>>>>>> what is features:list telling you?
>>>>>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>>>>>> Please take a look at the logs, and if there is nothing in it switch
>>>>>>> to DEBUG logging.
>>>>>>>
>>>>>>> When looking for such issues it's always helpfull to  restart your
>>>>>>> karaf instance with dev:restart -clean
>>>>>>> this way the data directory is deleted and you start with a fresh
>>>>>>> installation :)
>>>>>>>
>>>>>>> regards, Achim
>>>>>>>
>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>> Hi Achime,
>>>>>>>>
>>>>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>>>>> version '0.0.0' available" )
>>>>>>>>
>>>>>>>> On other hand, the following features.xml file generated from
>>>>>>>> maven-features-plugin, works:
>>>>>>>>
>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>> <features>
>>>>>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='xbean-spring' version='3.7'>
>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>  </feature>
>>>>>>>>  <feature name='kahadb' version='5.4.2'>
>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>  </feature>
>>>>>>>> </features>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -Dan
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>>>> Hi Dan,
>>>>>>>>>
>>>>>>>>> after droping your features.xml your features are also available for
>>>>>>>>> installing by features:install activemq-client.
>>>>>>>>> If you do this in the shell you will receive the information you are
>>>>>>>>> missing right now.
>>>>>>>>>
>>>>>>>>> regards, Achim
>>>>>>>>>
>>>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>>>>
>>>>>>>>>> here is my file
>>>>>>>>>>
>>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>>>  </feature>
>>>>>>>>>> </features>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> -Dan
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
filed at https://issues.apache.org/jira/browse/KARAF-518

-Dan

On Wed, Mar 16, 2011 at 9:13 AM, Achim Nierbeck <[hidden email]> wrote:

> Could you please raise a  jira issue for that, since 2.2.0 Karaf
> should support feature xml files with the schema reference.
>
> regards, Achim
>
> 2011/3/16 Dan Tran <[hidden email]>:
>> ah, sorry, I am using the latest apache-karaf-2.2
>>
>> Thanks
>>
>> -Dan
>>
>> On Wed, Mar 16, 2011 at 8:33 AM, Achim Nierbeck <[hidden email]> wrote:
>>> Hi Dan,
>>>
>>> my question is which version of Karaf are you using.
>>>
>>> Regards, Achim
>>>
>>> 2011/3/16 Dan Tran <[hidden email]>:
>>>> Hi Achim
>>>>
>>>> I am not sure about the version,  but I just replace
>>>>
>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>> ....
>>>> </features>
>>>>
>>>> for
>>>>
>>>> <features>
>>>> ...
>>>> </features>
>>>>
>>>> So I assume version 1.0.0 was used
>>>>
>>>> -Dan
>>>>
>>>>
>>>>
>>>> On Wed, Mar 16, 2011 at 4:30 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>> Hi Dan,
>>>>>
>>>>> the xml schema was introduced with karaf 2.2 which version are you using?
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2011/3/16 Dan Tran <[hidden email]>:
>>>>>> When compare with the one generated by maven-features-plugin, I notice
>>>>>> the generated one does not have this
>>>>>> "xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
>>>>>>
>>>>>> I took it out of my hand crafted features.xml, Karaf is now happily loading it
>>>>>>
>>>>>> Is this a bug?
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>> On Mon, Mar 14, 2011 at 9:09 AM, Dan Tran <[hidden email]> wrote:
>>>>>>> ah, I should have looking further to figure out how to turn on debug logging.
>>>>>>>
>>>>>>> -D
>>>>>>>
>>>>>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>>> ok,
>>>>>>>>
>>>>>>>> what is features:list telling you?
>>>>>>>> if your active-mq feature isn't listed here you have some other sort of issue.
>>>>>>>> Please take a look at the logs, and if there is nothing in it switch
>>>>>>>> to DEBUG logging.
>>>>>>>>
>>>>>>>> When looking for such issues it's always helpfull to  restart your
>>>>>>>> karaf instance with dev:restart -clean
>>>>>>>> this way the data directory is deleted and you start with a fresh
>>>>>>>> installation :)
>>>>>>>>
>>>>>>>> regards, Achim
>>>>>>>>
>>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>>> Hi Achime,
>>>>>>>>>
>>>>>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>>>>>> version '0.0.0' available" )
>>>>>>>>>
>>>>>>>>> On other hand, the following features.xml file generated from
>>>>>>>>> maven-features-plugin, works:
>>>>>>>>>
>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>> <features>
>>>>>>>>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='activemq-core' version='5.4.2'>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='xbean-spring' version='3.7'>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>>>>>>>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>>  </feature>
>>>>>>>>>  <feature name='kahadb' version='5.4.2'>
>>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>>  </feature>
>>>>>>>>> </features>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -Dan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <[hidden email]> wrote:
>>>>>>>>>> Hi Dan,
>>>>>>>>>>
>>>>>>>>>> after droping your features.xml your features are also available for
>>>>>>>>>> installing by features:install activemq-client.
>>>>>>>>>> If you do this in the shell you will receive the information you are
>>>>>>>>>> missing right now.
>>>>>>>>>>
>>>>>>>>>> regards, Achim
>>>>>>>>>>
>>>>>>>>>> 2011/3/14 Dan Tran <[hidden email]>:
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>>>>>
>>>>>>>>>>> here is my file
>>>>>>>>>>>
>>>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>>>>>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>>>>>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>>>>>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>>>>>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>>>>>>>>  </feature>
>>>>>>>>>>> </features>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>>
>>>>>>>>>>> -Dan
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

mikevan
In reply to this post by dantran
dantran wrote
ah, I should have looking further to figure out how to turn on debug logging.

-D

On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck <bcanhome@googlemail.com> wrote:
> ok,
>
> what is features:list telling you?
> if your active-mq feature isn't listed here you have some other sort of issue.
> Please take a look at the logs, and if there is nothing in it switch
> to DEBUG logging.
>
> When looking for such issues it's always helpfull to  restart your
> karaf instance with dev:restart -clean
> this way the data directory is deleted and you start with a fresh
> installation :)
>
> regards, Achim
>
> 2011/3/14 Dan Tran <dantran@gmail.com>:
>> Hi Achime,
>>
>> features:install activemq-client does not work, Karaf cant not find it
>> ( "Error executing command: No feature named 'activemq-client' with
>> version '0.0.0' available" )
>>
>> On other hand, the following features.xml file generated from
>> maven-features-plugin, works:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <features>
>>  <feature name='spring-jms' version='3.0.5.RELEASE'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>  </feature>
>>  <feature name='activemq-core' version='5.4.2'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:commons-net/commons-net/2.0</bundle>
>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>  </feature>
>>  <feature name='xbean-spring' version='3.7'>
>>    <bundle>mvn:org.springframework/spring-core/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-expression/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-aop/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-context/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.springframework/spring-asm/3.0.5.RELEASE</bundle>
>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>  </feature>
>>  <feature name='geronimo-jta_1.1_spec' version='1.1.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-jms_1.1_spec' version='1.1.1'>
>>    <feature version='1.1.1'>geronimo-jta_1.1_spec</feature>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-annotation_1.0_spec' version='1.1.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>  </feature>
>>  <feature name='geronimo-j2ee-management_1.1_spec' version='1.0.1'>
>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>  </feature>
>>  <feature name='kahadb' version='5.4.2'>
>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>  </feature>
>> </features>
>>
>>
>>
>> -Dan
>>
>>
>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck <bcanhome@googlemail.com> wrote:
>>> Hi Dan,
>>>
>>> after droping your features.xml your features are also available for
>>> installing by features:install activemq-client.
>>> If you do this in the shell you will receive the information you are
>>> missing right now.
>>>
>>> regards, Achim
>>>
>>> 2011/3/14 Dan Tran <dantran@gmail.com>:
>>>> Hi,
>>>>
>>>>
>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>> is to see if I can automate it via a features.xml. However karaf is
>>>> dead silent when i drop my features.xml to deploy directory
>>>>
>>>> here is my file
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>>  <feature name='activemq-client' version='5.4.2' >
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
>>>>    <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>>>>    <bundle>mvn:org.apache.activemq/activemq-core/5.4.2</bundle>
>>>>    <bundle>mvn:org.apache.activemq/kahadb/5.4.2</bundle>
>>>>    <bundle>mvn:org.apache.xbean/xbean-spring/3.7</bundle>
>>>>    <bundle>mvn:org.springframework/spring-jms/3.0.5.RELEASE</bundle>
>>>>    <bundle>mvn:org.springframework/spring-tx/3.0.5.RELEASE</bundle>
>>>>  </feature>
>>>> </features>
>>>>
>>>>
>>>> what is the best way to trouble shot this issue?
>>>>
>>>> Thanks
>>>>
>>>> -Dan
>>>>
>>>
>>
>
Dan,

Turning on debug logging is pretty easy, and you can do if from the console. If I were you, I'd start up karaf in INFO mode.  Then, just before attempting to install your feature, type the following on the console:

karaf@root:  log:set DEBUG

This sets the log to DEBUG. Then install your feature.  Once it fails or installs correctly, from the command line type the following to put the debugger back in INFO mode:

karaf@root: log:set INFO

I hope that helps!
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
Hi Karafman,

Thanks for the suggestion, I managed to enable debug mode using your
instructions ( thanks again ), but not able to see any activity my
'bad' features.xml.  Any way, I already filed the bug

-D

On Wed, Mar 16, 2011 at 12:12 PM, karafman <[hidden email]> wrote:

>
> dantran wrote:
>>
>> ah, I should have looking further to figure out how to turn on debug
>> logging.
>>
>> -D
>>
>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck
>> &lt;[hidden email]&gt; wrote:
>>> ok,
>>>
>>> what is features:list telling you?
>>> if your active-mq feature isn't listed here you have some other sort of
>>> issue.
>>> Please take a look at the logs, and if there is nothing in it switch
>>> to DEBUG logging.
>>>
>>> When looking for such issues it's always helpfull to  restart your
>>> karaf instance with dev:restart -clean
>>> this way the data directory is deleted and you start with a fresh
>>> installation :)
>>>
>>> regards, Achim
>>>
>>> 2011/3/14 Dan Tran &lt;[hidden email]&gt;:
>>>> Hi Achime,
>>>>
>>>> features:install activemq-client does not work, Karaf cant not find it
>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>> version '0.0.0' available" )
>>>>
>>>> On other hand, the following features.xml file generated from
>>>> maven-features-plugin, works:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:commons-net/commons-net/2.0
>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>
>>>>
>>>>    geronimo-jta_1.1_spec
>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>
>>>>
>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -Dan
>>>>
>>>>
>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck
>>>> &lt;[hidden email]&gt; wrote:
>>>>> Hi Dan,
>>>>>
>>>>> after droping your features.xml your features are also available for
>>>>> installing by features:install activemq-client.
>>>>> If you do this in the shell you will receive the information you are
>>>>> missing right now.
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2011/3/14 Dan Tran &lt;[hidden email]&gt;:
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>
>>>>>> here is my file
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>
>>>>>>
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>>>
>>>>>>  mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> what is the best way to trouble shot this issue?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>
>>>>
>>>
>>
>
> Dan,
>
> Turning on debug logging is pretty easy, and you can do if from the console.
> If I were you, I'd start up karaf in INFO mode.  Then, just before
> attempting to install your feature, type the following on the console:
>
> karaf@root:  log:set DEBUG
>
> This sets the log to DEBUG. Then install your feature.  Once it fails or
> installs correctly, from the command line type the following to put the
> debugger back in INFO mode:
>
> karaf@root: log:set INFO
>
> I hope that helps!
>
> -----
> Karafman
> Slayer of the JEE
> Pounder of the Perl Programmer
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2689000.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

mikevan

Dantran:

 

Please try settting your logging to TRACE and let me know if you get any errors.

 

 


----- Original Message -----
From: "dantran [via Karaf]" <[hidden email]>
To: "karafman" <[hidden email]>
Sent: Wednesday, March 16, 2011 5:40:19 PM
Subject: Re: no log activity when deploy a features.xml to deploy directory

Hi Karafman,

Thanks for the suggestion, I managed to enable debug mode using your
instructions ( thanks again ), but not able to see any activity my
'bad' features.xml.  Any way, I already filed the bug

-D

On Wed, Mar 16, 2011 at 12:12 PM, karafman <[hidden email]> wrote:


>
> dantran wrote:
>>
>> ah, I should have looking further to figure out how to turn on debug
>> logging.
>>
>> -D
>>
>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck
>> &lt;[hidden email]&gt; wrote:
>>> ok,
>>>
>>> what is features:list telling you?
>>> if your active-mq feature isn't listed here you have some other sort of
>>> issue.
>>> Please take a look at the logs, and if there is nothing in it switch
>>> to DEBUG logging.
>>>
>>> When looking for such issues it's always helpfull to  restart your
>>> karaf instance with dev:restart -clean
>>> this way the data directory is deleted and you start with a fresh
>>> installation :)
>>>
>>> regards, Achim
>>>
>>> 2011/3/14 Dan Tran &lt;[hidden email]&gt;:
>>>> Hi Achime,
>>>>
>>>> features:install activemq-client does not work, Karaf cant not find it
>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>> version '0.0.0' available" )
>>>>
>>>> On other hand, the following features.xml file generated from
>>>> maven-features-plugin, works:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:commons-net/commons-net/2.0
>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>
>>>>
>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>
>>>>
>>>>    geronimo-jta_1.1_spec
>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>
>>>>
>>>>    mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>
>>>>
>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -Dan
>>>>
>>>>
>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck
>>>> &lt;[hidden email]&gt; wrote:
>>>>> Hi Dan,
>>>>>
>>>>> after droping your features.xml your features are also available for
>>>>> installing by features:install activemq-client.
>>>>> If you do this in the shell you will receive the information you are
>>>>> missing right now.
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2011/3/14 Dan Tran &lt;[hidden email]&gt;:
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>
>>>>>> here is my file
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>
>>>>>>
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>>>
>>>>>>  mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> what is the best way to trouble shot this issue?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>
>>>>
>>>
>>
>
> Dan,
>
> Turning on debug logging is pretty easy, and you can do if from the console.
> If I were you, I'd start up karaf in INFO mode.  Then, just before
> attempting to install your feature, type the following on the console:
>
> karaf@root:  log:set DEBUG
>
> This sets the log to DEBUG. Then install your feature.  Once it fails or
> installs correctly, from the command line type the following to put the
> debugger back in INFO mode:
>
> karaf@root: log:set INFO
>
> I hope that helps!
>
> -----
> Karafman
> Slayer of the JEE
> Pounder of the Perl Programmer
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2689000.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2690656.html
To start a new topic under Karaf - User, email [hidden email]
To unsubscribe from Karaf - User, click here.
Reply | Threaded
Open this post in threaded view
|

Re: no log activity when deploy a features.xml to deploy directory

dantran
I activate TRACE level, but it is still dead silent after dropping the
'bad' features.xml to deploy dir.

-D

On Wed, Mar 16, 2011 at 2:46 PM, karafman <[hidden email]> wrote:

>
>
> Dantran:
>
>
>
> Please try settting your logging to TRACE and let me know if you get any errors.
>
>
>
>
>
>
> ----- Original Message -----
> From: "dantran [via Karaf]" <[hidden email]>
> To: "karafman" <[hidden email]>
> Sent: Wednesday, March 16, 2011 5:40:19 PM
> Subject: Re: no log activity when deploy a features.xml to deploy directory
>
> Hi Karafman,
>
> Thanks for the suggestion, I managed to enable debug mode using your
> instructions ( thanks again ), but not able to see any activity my
> 'bad' features.xml.  Any way, I already filed the bug
>
> -D
>
> On Wed, Mar 16, 2011 at 12:12 PM, karafman < [hidden email] > wrote:
>
>>
>> dantran wrote:
>>>
>>> ah, I should have looking further to figure out how to turn on debug
>>> logging.
>>>
>>> -D
>>>
>>> On Mon, Mar 14, 2011 at 8:50 AM, Achim Nierbeck
>>> &lt; [hidden email] &gt; wrote:
>>>> ok,
>>>>
>>>> what is features:list telling you?
>>>> if your active-mq feature isn't listed here you have some other sort of
>>>> issue.
>>>> Please take a look at the logs, and if there is nothing in it switch
>>>> to DEBUG logging.
>>>>
>>>> When looking for such issues it's always helpfull to  restart your
>>>> karaf instance with dev:restart -clean
>>>> this way the data directory is deleted and you start with a fresh
>>>> installation :)
>>>>
>>>> regards, Achim
>>>>
>>>> 2011/3/14 Dan Tran &lt; [hidden email] &gt;:
>>>>> Hi Achime,
>>>>>
>>>>> features:install activemq-client does not work, Karaf cant not find it
>>>>> ( "Error executing command: No feature named 'activemq-client' with
>>>>> version '0.0.0' available" )
>>>>>
>>>>> On other hand, the following features.xml file generated from
>>>>> maven-features-plugin, works:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>
>>>>>
>>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>>
>>>>>
>>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>>    mvn:commons-net/commons-net/2.0
>>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>>
>>>>>
>>>>>    mvn:org.springframework/spring-core/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-expression/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-beans/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-aop/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-context/3.0.5.RELEASE
>>>>>    mvn:org.springframework/spring-asm/3.0.5.RELEASE
>>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>>
>>>>>
>>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>>
>>>>>
>>>>>    geronimo-jta_1.1_spec
>>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>>
>>>>>
>>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>>
>>>>>
>>>>>    mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>>
>>>>>
>>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -Dan
>>>>>
>>>>>
>>>>> On Mon, Mar 14, 2011 at 2:13 AM, Achim Nierbeck
>>>>> &lt; [hidden email] &gt; wrote:
>>>>>> Hi Dan,
>>>>>>
>>>>>> after droping your features.xml your features are also available for
>>>>>> installing by features:install activemq-client.
>>>>>> If you do this in the shell you will receive the information you are
>>>>>> missing right now.
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>> 2011/3/14 Dan Tran &lt; [hidden email] &gt;:
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>> Since I now have a known set of bundles for activemq client ( i deploy
>>>>>>> all the bundles to deploy directory and karaf happy ), the next step
>>>>>>> is to see if I can automate it via a features.xml. However karaf is
>>>>>>> dead silent when i drop my features.xml to deploy directory
>>>>>>>
>>>>>>> here is my file
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>
>>>>>>>
>>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>>>>>    mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>>>>>>>
>>>>>>>  mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1
>>>>>>>    mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>>>>>>>    mvn:org.apache.activemq/activemq-core/5.4.2
>>>>>>>    mvn:org.apache.activemq/kahadb/5.4.2
>>>>>>>    mvn:org.apache.xbean/xbean-spring/3.7
>>>>>>>    mvn:org.springframework/spring-jms/3.0.5.RELEASE
>>>>>>>    mvn:org.springframework/spring-tx/3.0.5.RELEASE
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> what is the best way to trouble shot this issue?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>> Dan,
>>
>> Turning on debug logging is pretty easy, and you can do if from the console.
>> If I were you, I'd start up karaf in INFO mode.  Then, just before
>> attempting to install your feature, type the following on the console:
>>
>> karaf@root:  log:set DEBUG
>>
>> This sets the log to DEBUG. Then install your feature.  Once it fails or
>> installs correctly, from the command line type the following to put the
>> debugger back in INFO mode:
>>
>> karaf@root: log:set INFO
>>
>> I hope that helps!
>>
>> -----
>> Karafman
>> Slayer of the JEE
>> Pounder of the Perl Programmer
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2689000.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
>
>
> If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2690656.html
> To start a new topic under Karaf - User, email [hidden email]
> To unsubscribe from Karaf - User, click here .
>
> -----
> Karafman
> Slayer of the JEE
> Pounder of the Perl Programmer
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/no-log-activity-when-deploy-a-features-xml-to-deploy-directory-tp2678861p2690795.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>