You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Raman <ra...@yahoo.com> on 2012/12/28 15:50:27 UTC
can we run two version of pax-logging in Karaf?
Hi,
We have upgraded
Karaf from 2.2.3 to 2.3.0, while doing this upgradation we need to make below
changes to our manifest files in order resolve with updated version of
paxlogging.
org.apache.log4j;provider=paxlogging;version="[1.2,1.3)"
to
org.apache.log4j;provider=paxlogging;version="[1.2,2.0)",
Now, the problem is we have some bundles developed by 3rd party that have
org.apache.log4j;provider=paxlogging;version="[1.2,1.3)" in their
manifest file. How can we deploy those bundles without making any changes? The
solution crossed to my mind was having two version of pax-logging but with that
logging is not working.
Regards
Raman
Re: can we run two version of pax-logging in Karaf?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Raman,
Theorically, by upgrade etc/startup.properties, you should be able to
deploy two pax-logging version.
However, it doesn't make sense for me, and the bundles should only
define a import to log4j, slf4j, but NOT paxlogging. Like this it will
work whatever the pax-logging version is in use.
Regards
JB
On 12/28/2012 03:50 PM, Raman wrote:
> Hi,
> We have upgraded Karaf from 2.2.3 to 2.3.0, while doing this
> upgradation we need to make below changes to our manifest files in order
> resolve with updated version of paxlogging.
> org.apache.log4j;provider=paxlogging;version="[1.2,1.3)"
> to
> org.apache.log4j;provider=paxlogging;version="[1.2,2.0)",
> Now, the problem is we have some bundles developed by 3^rd party that
> have org.apache.log4j;provider=paxlogging;version="[1.2,1.3)" in their
> manifest file. How can we deploy those bundles without making any
> changes? The solution crossed to my mind was having two version of
> pax-logging but with that logging is not working.
> Regards
> Raman
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: can we run two version of pax-logging in Karaf?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
As Pax-Logging use a ManageService, you may have an issue with the
configuration loading.
Once again, I think it's not correct to import pax-logging: it's not the
purpose of pax-logging to provide a logging facility itself, the purpose
is to provide multiple logging framework in a central way.
That's why, it's better in the bundles to define the logging system to
use without version. For instance, it's what we use in Karaf and Cellar
itself: we import slf4j (not pax-logging).
Regards
JB
On 12/28/2012 04:25 PM, raman99_m wrote:
> We put pax-logging as provider in manifest to make sure pax-logging is picked
> up instead of any other log4j deployed in container. As we use Karaf as a
> container, there is a possibility that others may deploy log4j into
> container.
>
> If we update etc/startup.properties with two versions of pax-logging bundles
> how pax-logging.cfg is shared? We tried that option seems logging is not
> working. I can verify again.
>
> Regards
> Raman
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/can-we-run-two-version-of-pax-logging-in-Karaf-tp4027150p4027154.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: can we run two version of pax-logging in Karaf?
Posted by raman99_m <ra...@yahoo.com>.
We put pax-logging as provider in manifest to make sure pax-logging is picked
up instead of any other log4j deployed in container. As we use Karaf as a
container, there is a possibility that others may deploy log4j into
container.
If we update etc/startup.properties with two versions of pax-logging bundles
how pax-logging.cfg is shared? We tried that option seems logging is not
working. I can verify again.
Regards
Raman
--
View this message in context: http://karaf.922171.n3.nabble.com/can-we-run-two-version-of-pax-logging-in-Karaf-tp4027150p4027154.html
Sent from the Karaf - User mailing list archive at Nabble.com.