Hi again:
I have some more confusions and errors as well.
First the confusion:
My boot features config looks like:
featuresBoot = \
standard, \
cellar, \
camel-sql, \
camel-jms, \
jdbc, \
dw-datasource, \
broker-datasource, \
shared-utils, \
jms, \
framework, \
service-wrapper, \
camel, \
jndi, \
transaction, \
jolokia, \
decanter
I added decanter manually for testing scenarios. I will add it in my custom
distribution assembly later.
I still get the same issue as in the original post. But, restarting the node
kind of resolves this issue. I will have to inspect further on it.
I did:
1. > feature:repo-add decanter
2. > feature:install decanter-appender-file
It was waiting for eventadmin. Then I installed eventadmin as well. Thus,
its started as well.
I see the decanter bundles are in active state.
In the logs, I have the following error:
ERROR [FelixStartLevel] [org.apache.karaf.decanter.parser.regex(9)] The
activate method has thrown an exception
java.lang.IllegalStateException: regex property is required
at
org.apache.karaf.decanter.parser.regex.RegexParser.activate(RegexParser.java:51)
~[?:?]
at
org.apache.karaf.decanter.parser.regex.RegexParser.activate(RegexParser.java:46)
~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:?]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:?]
at
org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:229)
~[59:org.apache.felix.scr:2.0.14]
Is this specific to decanter?
Now, my curiosity is, how can I make use of the logs that are collected and
appended(where?).
Does decanter expose some API to access these logs or does it work only the
other way around (push to respective appenders?)
Sorry, it's a bit long post, but I am totally confused with these things.
Regards,
Cooshal.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html