[JBoss JIRA] (JBESB-3983) Can't show on fuse.log the SLF4j logger of my java project
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3983?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3983:
-------------------------------
Description:
I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
Here my logging dependencies on the pom.xml
{code:xml}
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
{code}
and here my bundle felix maven plugin configuration:
{code:xml}
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<extensions>true</extensions>
<configuration>
<!-- <classifier>${classifier}</classifier> -->
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Name>${bundle.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>${project.description}</Bundle-Description>
<wrapImportPackage>;</wrapImportPackage>
<Embed-Transitive>false</Embed-Transitive>
<supportIncrementalBuild>true</supportIncrementalBuild>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Export-Package>
!META-INF.certificati,
it.abd.esb.common.*,
</Export-Package>
<Import-Package>
<!-- DIPENDENZE SERVICEMIX -->
META-INF.cxf,
org.apache.cxf;version="${osgi.cxf.version}",
org.apache.cxf.*;version="${osgi.cxf.version}",
org.apache.camel;version="${osgi.camel.version}",
org.apache.camel.*;version="${osgi.camel.version}",
com.fasterxml.jackson.*;version="${osgi.jackson.version}",
org.springframework.*;version="${osgi.spring.version}",
org.apache.wss4j.*;version="${osgi.wss4j.version}",
<!-- DIPENDENZE ESTERNE -->
<!--
org.slf4j;version="${osgi.slf4j.version}",
org.slf4j.*;version="${osgi.slf4j.version}",
-->
org.apache.commons.mail;version="${osgi.commons-email.version}",
org.apache.commons.mail.*;version="${osgi.commons-email.version}",
org.apache.commons.io;version="${osgi.commons-io.version}",
org.apache.commons.io.*;version="${osgi.commons-io.version}",
org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
org.apache.commons.codec;version="${osgi.commons-codec.version}",
org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
org.bouncycastle;version="${osgi.bouncycastle.version}",
org.bouncycastle.*;version="${osgi.bouncycastle.version}",
com.mysql.cj,
com.mysql.cj.*,
org.apache.http;version="${osgi.httpcomponents.version}",
org.apache.http.*;version="${osgi.httpcomponents.version}",
com.lowagie.*;version="${osgi.openpdf.version}",
org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
</Import-Package>
</instructions>
</configuration>
</plugin>
{code}
and this is mine "/src/main/resources/log4j2.xml"
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" monitorInterval="60">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="debug" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
{code}
I can't find a solution to show my SLF4J log .
Can anyone help me?
was:
I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
Here my logging dependencies on the pom.xml
{code:xml}
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
{code}
and here my bundle felix maven plugin configuration:
{code:xml}
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<extensions>true</extensions>
<configuration>
<!-- <classifier>${classifier}</classifier> -->
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Name>${bundle.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>${project.description}</Bundle-Description>
<wrapImportPackage>;</wrapImportPackage>
<Embed-Transitive>false</Embed-Transitive>
<supportIncrementalBuild>true</supportIncrementalBuild>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Export-Package>
!META-INF.certificati,
it.abd.esb.common.*,
</Export-Package>
<Import-Package>
<!-- DIPENDENZE ABD -->
it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
it.abd.properties;version="${osgi.webdesktop-common.version}",
<!-- DIPENDENZE SERVICEMIX -->
META-INF.cxf,
org.apache.cxf;version="${osgi.cxf.version}",
org.apache.cxf.*;version="${osgi.cxf.version}",
org.apache.camel;version="${osgi.camel.version}",
org.apache.camel.*;version="${osgi.camel.version}",
com.fasterxml.jackson.*;version="${osgi.jackson.version}",
org.springframework.*;version="${osgi.spring.version}",
org.apache.wss4j.*;version="${osgi.wss4j.version}",
<!-- DIPENDENZE ESTERNE -->
<!--
org.slf4j;version="${osgi.slf4j.version}",
org.slf4j.*;version="${osgi.slf4j.version}",
-->
org.apache.commons.mail;version="${osgi.commons-email.version}",
org.apache.commons.mail.*;version="${osgi.commons-email.version}",
org.apache.commons.io;version="${osgi.commons-io.version}",
org.apache.commons.io.*;version="${osgi.commons-io.version}",
org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
org.apache.commons.codec;version="${osgi.commons-codec.version}",
org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
org.bouncycastle;version="${osgi.bouncycastle.version}",
org.bouncycastle.*;version="${osgi.bouncycastle.version}",
com.mysql.cj,
com.mysql.cj.*,
org.apache.http;version="${osgi.httpcomponents.version}",
org.apache.http.*;version="${osgi.httpcomponents.version}",
com.lowagie.*;version="${osgi.openpdf.version}",
org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
</Import-Package>
</instructions>
</configuration>
</plugin>
{code}
and this is mine "/src/main/resources/log4j2.xml"
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" monitorInterval="60">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="debug" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
{code}
I can't find a solution to show my SLF4J log .
Can anyone help me?
> Can't show on fuse.log the SLF4j logger of my java project
> ----------------------------------------------------------
>
> Key: JBESB-3983
> URL: https://issues.jboss.org/browse/JBESB-3983
> Project: JBoss ESB
> Issue Type: Bug
> Components: Application Server, Configuration, Registry and Repository
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> SLF4J : 1.7.22
> LOG4J2 : 2.9.0
> Reporter: Marco Tenti
> Priority: Major
> Labels: Karaf, bundle, fuse, fuse.log, log4j2, slf4j
>
> I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
> Here my logging dependencies on the pom.xml
> {code:xml}
> <!-- Logging dependencies -->
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jul-to-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-nop</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-api</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-core</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-slf4j-impl</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> {code}
> and here my bundle felix maven plugin configuration:
> {code:xml}
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>4.2.0</version>
> <extensions>true</extensions>
> <configuration>
> <!-- <classifier>${classifier}</classifier> -->
> <instructions>
> <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
> <Bundle-Name>${bundle.name}</Bundle-Name>
> <Bundle-Version>${project.version}</Bundle-Version>
> <Bundle-Description>${project.description}</Bundle-Description>
> <wrapImportPackage>;</wrapImportPackage>
> <Embed-Transitive>false</Embed-Transitive>
> <supportIncrementalBuild>true</supportIncrementalBuild>
> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
> <Export-Package>
> !META-INF.certificati,
> it.abd.esb.common.*,
> </Export-Package>
> <Import-Package>
> <!-- DIPENDENZE SERVICEMIX -->
> META-INF.cxf,
> org.apache.cxf;version="${osgi.cxf.version}",
> org.apache.cxf.*;version="${osgi.cxf.version}",
> org.apache.camel;version="${osgi.camel.version}",
> org.apache.camel.*;version="${osgi.camel.version}",
> com.fasterxml.jackson.*;version="${osgi.jackson.version}",
> org.springframework.*;version="${osgi.spring.version}",
> org.apache.wss4j.*;version="${osgi.wss4j.version}",
> <!-- DIPENDENZE ESTERNE -->
> <!--
> org.slf4j;version="${osgi.slf4j.version}",
> org.slf4j.*;version="${osgi.slf4j.version}",
> -->
> org.apache.commons.mail;version="${osgi.commons-email.version}",
> org.apache.commons.mail.*;version="${osgi.commons-email.version}",
> org.apache.commons.io;version="${osgi.commons-io.version}",
> org.apache.commons.io.*;version="${osgi.commons-io.version}",
> org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
> org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
> org.apache.commons.codec;version="${osgi.commons-codec.version}",
> org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
> org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
> org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
> org.bouncycastle;version="${osgi.bouncycastle.version}",
> org.bouncycastle.*;version="${osgi.bouncycastle.version}",
> com.mysql.cj,
> com.mysql.cj.*,
> org.apache.http;version="${osgi.httpcomponents.version}",
> org.apache.http.*;version="${osgi.httpcomponents.version}",
> com.lowagie.*;version="${osgi.openpdf.version}",
> org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
>
> org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
> org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
> </Import-Package>
> </instructions>
> </configuration>
> </plugin>
> {code}
> and this is mine "/src/main/resources/log4j2.xml"
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="debug" monitorInterval="60">
> <Appenders>
> <Console name="console" target="SYSTEM_OUT">
> <PatternLayout
> pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
> </Console>
> </Appenders>
> <Loggers>
> <Root level="debug" additivity="false">
> <AppenderRef ref="console" />
> </Root>
> </Loggers>
> </Configuration>
> {code}
> I can't find a solution to show my SLF4J log .
> Can anyone help me?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 5 months
[JBoss JIRA] (JBESB-3983) Can't show on fuse.log the SLF4j logger of my java project
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3983?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3983:
-------------------------------
Summary: Can't show on fuse.log the SLF4j logger of my java project (was: Can't show on ${karaf.data}/log/fuse.log the SLF4j logger)
> Can't show on fuse.log the SLF4j logger of my java project
> ----------------------------------------------------------
>
> Key: JBESB-3983
> URL: https://issues.jboss.org/browse/JBESB-3983
> Project: JBoss ESB
> Issue Type: Bug
> Components: Application Server, Configuration, Registry and Repository
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> SLF4J : 1.7.22
> LOG4J2 : 2.9.0
> Reporter: Marco Tenti
> Priority: Major
> Labels: Karaf, bundle, fuse, fuse.log, log4j2, slf4j
>
> I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
> Here my logging dependencies on the pom.xml
> {code:xml}
> <!-- Logging dependencies -->
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jul-to-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-nop</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-api</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-core</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-slf4j-impl</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> {code}
> and here my bundle felix maven plugin configuration:
> {code:xml}
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>4.2.0</version>
> <extensions>true</extensions>
> <configuration>
> <!-- <classifier>${classifier}</classifier> -->
> <instructions>
> <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
> <Bundle-Name>${bundle.name}</Bundle-Name>
> <Bundle-Version>${project.version}</Bundle-Version>
> <Bundle-Description>${project.description}</Bundle-Description>
> <wrapImportPackage>;</wrapImportPackage>
> <Embed-Transitive>false</Embed-Transitive>
> <supportIncrementalBuild>true</supportIncrementalBuild>
> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
> <Export-Package>
> !META-INF.certificati,
> it.abd.esb.common.*,
> </Export-Package>
> <Import-Package>
> <!-- DIPENDENZE ABD -->
> it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
> it.abd.properties;version="${osgi.webdesktop-common.version}",
> <!-- DIPENDENZE SERVICEMIX -->
> META-INF.cxf,
> org.apache.cxf;version="${osgi.cxf.version}",
> org.apache.cxf.*;version="${osgi.cxf.version}",
> org.apache.camel;version="${osgi.camel.version}",
> org.apache.camel.*;version="${osgi.camel.version}",
> com.fasterxml.jackson.*;version="${osgi.jackson.version}",
> org.springframework.*;version="${osgi.spring.version}",
> org.apache.wss4j.*;version="${osgi.wss4j.version}",
> <!-- DIPENDENZE ESTERNE -->
> <!--
> org.slf4j;version="${osgi.slf4j.version}",
> org.slf4j.*;version="${osgi.slf4j.version}",
> -->
> org.apache.commons.mail;version="${osgi.commons-email.version}",
> org.apache.commons.mail.*;version="${osgi.commons-email.version}",
> org.apache.commons.io;version="${osgi.commons-io.version}",
> org.apache.commons.io.*;version="${osgi.commons-io.version}",
> org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
> org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
> org.apache.commons.codec;version="${osgi.commons-codec.version}",
> org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
> org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
> org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
> org.bouncycastle;version="${osgi.bouncycastle.version}",
> org.bouncycastle.*;version="${osgi.bouncycastle.version}",
> com.mysql.cj,
> com.mysql.cj.*,
> org.apache.http;version="${osgi.httpcomponents.version}",
> org.apache.http.*;version="${osgi.httpcomponents.version}",
> com.lowagie.*;version="${osgi.openpdf.version}",
> org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
>
> org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
> org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
> </Import-Package>
> </instructions>
> </configuration>
> </plugin>
> {code}
> and this is mine "/src/main/resources/log4j2.xml"
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="debug" monitorInterval="60">
> <Appenders>
> <Console name="console" target="SYSTEM_OUT">
> <PatternLayout
> pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
> </Console>
> </Appenders>
> <Loggers>
> <Root level="debug" additivity="false">
> <AppenderRef ref="console" />
> </Root>
> </Loggers>
> </Configuration>
> {code}
> I can't find a solution to show my SLF4J log .
> Can anyone help me?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 5 months
[JBoss JIRA] (JBESB-3983) Can't show on ${karaf.data}/log/fuse.log the SLF4j logger
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3983?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3983:
-------------------------------
Description:
I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
Here my logging dependencies on the pom.xml
{code:xml}
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
{code}
and here my bundle felix maven plugin configuration:
{code:xml}
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<extensions>true</extensions>
<configuration>
<!-- <classifier>${classifier}</classifier> -->
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Name>${bundle.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>${project.description}</Bundle-Description>
<wrapImportPackage>;</wrapImportPackage>
<Embed-Transitive>false</Embed-Transitive>
<supportIncrementalBuild>true</supportIncrementalBuild>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Export-Package>
!META-INF.certificati,
it.abd.esb.common.*,
</Export-Package>
<Import-Package>
<!-- DIPENDENZE ABD -->
it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
it.abd.properties;version="${osgi.webdesktop-common.version}",
<!-- DIPENDENZE SERVICEMIX -->
META-INF.cxf,
org.apache.cxf;version="${osgi.cxf.version}",
org.apache.cxf.*;version="${osgi.cxf.version}",
org.apache.camel;version="${osgi.camel.version}",
org.apache.camel.*;version="${osgi.camel.version}",
com.fasterxml.jackson.*;version="${osgi.jackson.version}",
org.springframework.*;version="${osgi.spring.version}",
org.apache.wss4j.*;version="${osgi.wss4j.version}",
<!-- DIPENDENZE ESTERNE -->
<!--
org.slf4j;version="${osgi.slf4j.version}",
org.slf4j.*;version="${osgi.slf4j.version}",
-->
org.apache.commons.mail;version="${osgi.commons-email.version}",
org.apache.commons.mail.*;version="${osgi.commons-email.version}",
org.apache.commons.io;version="${osgi.commons-io.version}",
org.apache.commons.io.*;version="${osgi.commons-io.version}",
org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
org.apache.commons.codec;version="${osgi.commons-codec.version}",
org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
org.bouncycastle;version="${osgi.bouncycastle.version}",
org.bouncycastle.*;version="${osgi.bouncycastle.version}",
com.mysql.cj,
com.mysql.cj.*,
org.apache.http;version="${osgi.httpcomponents.version}",
org.apache.http.*;version="${osgi.httpcomponents.version}",
com.lowagie.*;version="${osgi.openpdf.version}",
org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
</Import-Package>
</instructions>
</configuration>
</plugin>
{code}
and this is mine "/src/main/resources/log4j2.xml"
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" monitorInterval="60">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="debug" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
{code}
I can't find a solution to show my SLF4J log .
Can anyone help me?
was:
I have finish to develop a maven "bundle" projectfor the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
Here my logging dependencies on the pom.xml
{code:xml}
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
{code}
and here my bundle felix maven plugin configuration:
{code:xml}
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<extensions>true</extensions>
<configuration>
<!-- <classifier>${classifier}</classifier> -->
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Name>${bundle.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>${project.description}</Bundle-Description>
<wrapImportPackage>;</wrapImportPackage>
<Embed-Transitive>false</Embed-Transitive>
<supportIncrementalBuild>true</supportIncrementalBuild>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Export-Package>
!META-INF.certificati,
it.abd.esb.common.*,
</Export-Package>
<Import-Package>
<!-- DIPENDENZE ABD -->
it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
it.abd.properties;version="${osgi.webdesktop-common.version}",
<!-- DIPENDENZE SERVICEMIX -->
META-INF.cxf,
org.apache.cxf;version="${osgi.cxf.version}",
org.apache.cxf.*;version="${osgi.cxf.version}",
org.apache.camel;version="${osgi.camel.version}",
org.apache.camel.*;version="${osgi.camel.version}",
com.fasterxml.jackson.*;version="${osgi.jackson.version}",
org.springframework.*;version="${osgi.spring.version}",
org.apache.wss4j.*;version="${osgi.wss4j.version}",
<!-- DIPENDENZE ESTERNE -->
<!--
org.slf4j;version="${osgi.slf4j.version}",
org.slf4j.*;version="${osgi.slf4j.version}",
-->
org.apache.commons.mail;version="${osgi.commons-email.version}",
org.apache.commons.mail.*;version="${osgi.commons-email.version}",
org.apache.commons.io;version="${osgi.commons-io.version}",
org.apache.commons.io.*;version="${osgi.commons-io.version}",
org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
org.apache.commons.codec;version="${osgi.commons-codec.version}",
org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
org.bouncycastle;version="${osgi.bouncycastle.version}",
org.bouncycastle.*;version="${osgi.bouncycastle.version}",
com.mysql.cj,
com.mysql.cj.*,
org.apache.http;version="${osgi.httpcomponents.version}",
org.apache.http.*;version="${osgi.httpcomponents.version}",
com.lowagie.*;version="${osgi.openpdf.version}",
org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
</Import-Package>
</instructions>
</configuration>
</plugin>
{code}
and this is mine "/src/main/resources/log4j2.xml"
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" monitorInterval="60">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="debug" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
{code}
I can't find a solution to show my SLF4J log .
Can anyone help me?
Labels: Karaf bundle fuse fuse.log log4j2 slf4j (was: )
> Can't show on ${karaf.data}/log/fuse.log the SLF4j logger
> ---------------------------------------------------------
>
> Key: JBESB-3983
> URL: https://issues.jboss.org/browse/JBESB-3983
> Project: JBoss ESB
> Issue Type: Bug
> Components: Application Server, Configuration, Registry and Repository
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> SLF4J : 1.7.22
> LOG4J2 : 2.9.0
> Reporter: Marco Tenti
> Priority: Major
> Labels: Karaf, bundle, fuse, fuse.log, log4j2, slf4j
>
> I have finish to develop a maven "bundle" project for the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
> Here my logging dependencies on the pom.xml
> {code:xml}
> <!-- Logging dependencies -->
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jul-to-slf4j</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-nop</artifactId>
> <version>${version.org.slf4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-api</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-core</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.logging.log4j</groupId>
> <artifactId>log4j-slf4j-impl</artifactId>
> <version>${version.org.apache.logging.log4j}</version>
> <scope>provided</scope>
> </dependency>
> {code}
> and here my bundle felix maven plugin configuration:
> {code:xml}
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>4.2.0</version>
> <extensions>true</extensions>
> <configuration>
> <!-- <classifier>${classifier}</classifier> -->
> <instructions>
> <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
> <Bundle-Name>${bundle.name}</Bundle-Name>
> <Bundle-Version>${project.version}</Bundle-Version>
> <Bundle-Description>${project.description}</Bundle-Description>
> <wrapImportPackage>;</wrapImportPackage>
> <Embed-Transitive>false</Embed-Transitive>
> <supportIncrementalBuild>true</supportIncrementalBuild>
> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
> <Export-Package>
> !META-INF.certificati,
> it.abd.esb.common.*,
> </Export-Package>
> <Import-Package>
> <!-- DIPENDENZE ABD -->
> it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
> it.abd.properties;version="${osgi.webdesktop-common.version}",
> <!-- DIPENDENZE SERVICEMIX -->
> META-INF.cxf,
> org.apache.cxf;version="${osgi.cxf.version}",
> org.apache.cxf.*;version="${osgi.cxf.version}",
> org.apache.camel;version="${osgi.camel.version}",
> org.apache.camel.*;version="${osgi.camel.version}",
> com.fasterxml.jackson.*;version="${osgi.jackson.version}",
> org.springframework.*;version="${osgi.spring.version}",
> org.apache.wss4j.*;version="${osgi.wss4j.version}",
> <!-- DIPENDENZE ESTERNE -->
> <!--
> org.slf4j;version="${osgi.slf4j.version}",
> org.slf4j.*;version="${osgi.slf4j.version}",
> -->
> org.apache.commons.mail;version="${osgi.commons-email.version}",
> org.apache.commons.mail.*;version="${osgi.commons-email.version}",
> org.apache.commons.io;version="${osgi.commons-io.version}",
> org.apache.commons.io.*;version="${osgi.commons-io.version}",
> org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
> org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
> org.apache.commons.codec;version="${osgi.commons-codec.version}",
> org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
> org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
> org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
> org.bouncycastle;version="${osgi.bouncycastle.version}",
> org.bouncycastle.*;version="${osgi.bouncycastle.version}",
> com.mysql.cj,
> com.mysql.cj.*,
> org.apache.http;version="${osgi.httpcomponents.version}",
> org.apache.http.*;version="${osgi.httpcomponents.version}",
> com.lowagie.*;version="${osgi.openpdf.version}",
> org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
>
> org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
> org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
> </Import-Package>
> </instructions>
> </configuration>
> </plugin>
> {code}
> and this is mine "/src/main/resources/log4j2.xml"
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="debug" monitorInterval="60">
> <Appenders>
> <Console name="console" target="SYSTEM_OUT">
> <PatternLayout
> pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
> </Console>
> </Appenders>
> <Loggers>
> <Root level="debug" additivity="false">
> <AppenderRef ref="console" />
> </Root>
> </Loggers>
> </Configuration>
> {code}
> I can't find a solution to show my SLF4J log .
> Can anyone help me?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 5 months
[JBoss JIRA] (JBESB-3983) Can't show on ${karaf.data}/log/fuse.log the SLF4j logger
by Marco Tenti (Jira)
Marco Tenti created JBESB-3983:
----------------------------------
Summary: Can't show on ${karaf.data}/log/fuse.log the SLF4j logger
Key: JBESB-3983
URL: https://issues.jboss.org/browse/JBESB-3983
Project: JBoss ESB
Issue Type: Bug
Components: Application Server, Configuration, Registry and Repository
Environment: JBOSS FUSE KARAF : 7.3.0
S.O. : CENTO-OS 7.X.X
JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
SLF4J : 1.7.22
LOG4J2 : 2.9.0
Reporter: Marco Tenti
I have finish to develop a maven "bundle" projectfor the fuse-karaf 7.3.0, the install on the karaf console it's oK (or at least say active), but i cannot see my SLF4J log on the fuse.log file.
Here my logging dependencies on the pom.xml
{code:xml}
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.org.slf4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${version.org.apache.logging.log4j}</version>
<scope>provided</scope>
</dependency>
{code}
and here my bundle felix maven plugin configuration:
{code:xml}
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<extensions>true</extensions>
<configuration>
<!-- <classifier>${classifier}</classifier> -->
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Name>${bundle.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>${project.description}</Bundle-Description>
<wrapImportPackage>;</wrapImportPackage>
<Embed-Transitive>false</Embed-Transitive>
<supportIncrementalBuild>true</supportIncrementalBuild>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Export-Package>
!META-INF.certificati,
it.abd.esb.common.*,
</Export-Package>
<Import-Package>
<!-- DIPENDENZE ABD -->
it.abd.webdesktop.client.*;version="${osgi.webdesktop-common.version}",
it.abd.properties;version="${osgi.webdesktop-common.version}",
<!-- DIPENDENZE SERVICEMIX -->
META-INF.cxf,
org.apache.cxf;version="${osgi.cxf.version}",
org.apache.cxf.*;version="${osgi.cxf.version}",
org.apache.camel;version="${osgi.camel.version}",
org.apache.camel.*;version="${osgi.camel.version}",
com.fasterxml.jackson.*;version="${osgi.jackson.version}",
org.springframework.*;version="${osgi.spring.version}",
org.apache.wss4j.*;version="${osgi.wss4j.version}",
<!-- DIPENDENZE ESTERNE -->
<!--
org.slf4j;version="${osgi.slf4j.version}",
org.slf4j.*;version="${osgi.slf4j.version}",
-->
org.apache.commons.mail;version="${osgi.commons-email.version}",
org.apache.commons.mail.*;version="${osgi.commons-email.version}",
org.apache.commons.io;version="${osgi.commons-io.version}",
org.apache.commons.io.*;version="${osgi.commons-io.version}",
org.apache.commons.lang3;version="${osgi.commons-lang3.version}",
org.apache.commons.lang3.*;version="${osgi.commons-lang3.version}",
org.apache.commons.codec;version="${osgi.commons-codec.version}",
org.apache.commons.codec.*;version="${osgi.commons-codec.version}",
org.apache.commons.collections4;version="${osgi.commons-collections4.version}",
org.apache.commons.collections4.*;version="${osgi.commons-collections4.version}",
org.bouncycastle;version="${osgi.bouncycastle.version}",
org.bouncycastle.*;version="${osgi.bouncycastle.version}",
com.mysql.cj,
com.mysql.cj.*,
org.apache.http;version="${osgi.httpcomponents.version}",
org.apache.http.*;version="${osgi.httpcomponents.version}",
com.lowagie.*;version="${osgi.openpdf.version}",
org.apache.pdfbox.*;version="${osgi.pdfbox.version}",
org.apache.camel.component.xmlsecurity;version="${osgi.xmlsec.version}",
org.apache.camel.component.xmlsecurity.*;version="${osgi.xmlsec.version}",
</Import-Package>
</instructions>
</configuration>
</plugin>
{code}
and this is mine "/src/main/resources/log4j2.xml"
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" monitorInterval="60">
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="debug" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>
{code}
I can't find a solution to show my SLF4J log .
Can anyone help me?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 5 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
Workaround Description:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:xml}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:xml}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bundle on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time with this solution
was:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:xml}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:xml}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
RESOLVED WITH WORK AROUND
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Workaround Description:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:xml}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:xml}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
was:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:shell}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:shell}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Workaround Description:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:shell}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:shell}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
was:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:shell}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:shell}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Workaround Description:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
{code:shell}
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
AFTER
{code:shell}
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
{code}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
was:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
AFTER
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Workaround Description:
After a week end of tentatives, i found out a workaround.
You must set the updatepolicy to always like suggested from the
https://access.redhat.com/solutions/2097131
after that return to the file of Fuse
/fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg
and comment all the default local repository, so :
BEFORE
org.ops4j.pax.url.mvn.defaultRepositories = \
file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
file:${user.home}/.m2/repository@snapshots@id=local, \
file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
AFTER
# org.ops4j.pax.url.mvn.defaultRepositories = \
# file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
# file:${user.home}/.m2/repository@snapshots@id=local, \
# file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
and now when i update a bunlde on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".
Hope to save someone else time withthis solution
Workaround: Workaround Exists
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBESB-3982) Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
by Marco Tenti (Jira)
[ https://issues.jboss.org/browse/JBESB-3982?page=com.atlassian.jira.plugin... ]
Marco Tenti updated JBESB-3982:
-------------------------------
Component/s: Configuration
Environment:
JBOSS FUSE KARAF : 7.3.0
S.O. : CENTO-OS 7.X.X
JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
was:
JBOSS FUSE : 7.3.0
S.O. : CENTO-OS 7.X.X
JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7
> -------------------------------------------------------------------------
>
> Key: JBESB-3982
> URL: https://issues.jboss.org/browse/JBESB-3982
> Project: JBoss ESB
> Issue Type: Bug
> Components: Configuration
> Environment: JBOSS FUSE KARAF : 7.3.0
> S.O. : CENTO-OS 7.X.X
> JAVA JDK : OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
> Reporter: Marco Tenti
> Priority: Major
> Labels: Fuse, Maven, bundle, bundles, fuse, maven2
>
> I have installed a Jboss Fuse Karaf version 7.3.0.
> I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).
> I have tried the solution confirmed in this thread
> https://access.redhat.com/solutions/2097131
> but it's seems no to work.
> The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.ù
> But i can't use the hawtio console in this use case.
> It's seems some configuration problem anyone have suggestion?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months