You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "marioosh (JIRA)" <ji...@apache.org> on 2011/08/05 14:25:27 UTC

[jira] [Created] (TILES-535) Strange behavior log4j with Apache Tiles 2.2.2

Strange behavior log4j with Apache Tiles 2.2.2
----------------------------------------------

                 Key: TILES-535
                 URL: https://issues.apache.org/jira/browse/TILES-535
             Project: Tiles
          Issue Type: Bug
          Components: tiles-jsp (jsp support), tiles-servlet
    Affects Versions: 2.2.2
         Environment: Linux and Windows
            Reporter: marioosh
            Priority: Minor


I'm developing web-app with Spring MVC + Apache Tiles 2, but when i use Tiles version 2.2.2 log4j.xml is ignored. In 2.1.4 version everything is ok.
log4j version 1.2.16

<!-- 2.2.2 = problems with log4j -->
<dependency>
	<groupId>org.apache.tiles</groupId>
	<artifactId>tiles-jsp</artifactId>
	<version>2.2.2</version>
</dependency>
<dependency>
	<groupId>org.apache.tiles</groupId>
	<artifactId>tiles-template</artifactId>
	<version>2.2.2</version>
</dependency>

<!-- no problems with log4j -->
<dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>com.springsource.org.apache.tiles.jsp</artifactId>
    <version>2.1.4</version>
</dependency>
<dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>com.springsource.org.apache.tiles.servlet</artifactId>
    <version>2.1.4</version>
</dependency>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TILES-535) Strange behavior of log4j with Apache Tiles 2.2.2

Posted by "marioosh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TILES-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094333#comment-13094333 ] 

marioosh commented on TILES-535:
--------------------------------

Thanks. That works for me good with latest Apache Tiles:

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>jcl-over-slf4j</artifactId>
    <version>1.6.2</version>
</dependency>        
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.6.2</version>
</dependency>        
<dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.16</version>
</dependency>


> Strange behavior of log4j with Apache Tiles 2.2.2
> -------------------------------------------------
>
>                 Key: TILES-535
>                 URL: https://issues.apache.org/jira/browse/TILES-535
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support), tiles-servlet
>    Affects Versions: 2.2.2
>         Environment: Linux and Windows
>            Reporter: marioosh
>            Priority: Minor
>
> I'm developing web-app with Spring MVC + Apache Tiles 2, but when i use Tiles version 2.2.2 log4j.xml is ignored. In 2.1.4 version everything is ok.
> log4j version 1.2.16
> <!-- 2.2.2 = problems with log4j -->
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-jsp</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-template</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <!-- no problems with log4j -->
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.jsp</artifactId>
>     <version>2.1.4</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.servlet</artifactId>
>     <version>2.1.4</version>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TILES-535) Strange behavior of log4j with Apache Tiles 2.2.2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TILES-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080077#comment-13080077 ] 

Antonio Petrelli commented on TILES-535:
----------------------------------------

Tiles 2.2.x uses SLF4j instead of commons-logging. In its POM, however, an implementation of SLF4J is not present, only an optional SLF4J-to-jJDK 1.4 logger.
It is up to you to include the correct implementation of SLF4J, in your case it is slf4j-log4j12 (I suppose that you are using Log4j 1.2.x).

> Strange behavior of log4j with Apache Tiles 2.2.2
> -------------------------------------------------
>
>                 Key: TILES-535
>                 URL: https://issues.apache.org/jira/browse/TILES-535
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support), tiles-servlet
>    Affects Versions: 2.2.2
>         Environment: Linux and Windows
>            Reporter: marioosh
>            Priority: Minor
>
> I'm developing web-app with Spring MVC + Apache Tiles 2, but when i use Tiles version 2.2.2 log4j.xml is ignored. In 2.1.4 version everything is ok.
> log4j version 1.2.16
> <!-- 2.2.2 = problems with log4j -->
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-jsp</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-template</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <!-- no problems with log4j -->
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.jsp</artifactId>
>     <version>2.1.4</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.servlet</artifactId>
>     <version>2.1.4</version>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TILES-535) Strange behavior of log4j with Apache Tiles 2.2.2

Posted by "marioosh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TILES-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

marioosh updated TILES-535:
---------------------------

    Summary: Strange behavior of log4j with Apache Tiles 2.2.2  (was: Strange behavior log4j with Apache Tiles 2.2.2)

> Strange behavior of log4j with Apache Tiles 2.2.2
> -------------------------------------------------
>
>                 Key: TILES-535
>                 URL: https://issues.apache.org/jira/browse/TILES-535
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support), tiles-servlet
>    Affects Versions: 2.2.2
>         Environment: Linux and Windows
>            Reporter: marioosh
>            Priority: Minor
>
> I'm developing web-app with Spring MVC + Apache Tiles 2, but when i use Tiles version 2.2.2 log4j.xml is ignored. In 2.1.4 version everything is ok.
> log4j version 1.2.16
> <!-- 2.2.2 = problems with log4j -->
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-jsp</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-template</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <!-- no problems with log4j -->
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.jsp</artifactId>
>     <version>2.1.4</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.servlet</artifactId>
>     <version>2.1.4</version>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (TILES-535) Strange behavior of log4j with Apache Tiles 2.2.2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TILES-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-535.
----------------------------------

    Resolution: Cannot Reproduce

Closing since the OP is not answering.

> Strange behavior of log4j with Apache Tiles 2.2.2
> -------------------------------------------------
>
>                 Key: TILES-535
>                 URL: https://issues.apache.org/jira/browse/TILES-535
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support), tiles-servlet
>    Affects Versions: 2.2.2
>         Environment: Linux and Windows
>            Reporter: marioosh
>            Priority: Minor
>
> I'm developing web-app with Spring MVC + Apache Tiles 2, but when i use Tiles version 2.2.2 log4j.xml is ignored. In 2.1.4 version everything is ok.
> log4j version 1.2.16
> <!-- 2.2.2 = problems with log4j -->
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-jsp</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <dependency>
> 	<groupId>org.apache.tiles</groupId>
> 	<artifactId>tiles-template</artifactId>
> 	<version>2.2.2</version>
> </dependency>
> <!-- no problems with log4j -->
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.jsp</artifactId>
>     <version>2.1.4</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.tiles</groupId>
>     <artifactId>com.springsource.org.apache.tiles.servlet</artifactId>
>     <version>2.1.4</version>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira