Discussion:
[jira] [Created] (LOG4J2-700) When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
Nash Xiao (JIRA)
2014-07-06 04:01:33 UTC
Permalink
Nash Xiao created LOG4J2-700:
--------------------------------

Summary: When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows.
Reporter: Nash Xiao
Priority: Blocker






--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 05:08:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053042#comment-14053042 ]

Remko Popma commented on LOG4J2-700:
------------------------------------

AbstractLoggerWrapper was renamed to ExtendedLoggerWrapper in rc2.

I'll try to take a look at MyBatis.
Can you post a stack trace?
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-07-06 05:37:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nash Xiao updated LOG4J2-700:
-----------------------------

Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows, jdk1.6.0_45. (was: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows.)
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-07-06 05:41:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053043#comment-14053043 ]

Nash Xiao commented on LOG4J2-700:
----------------------------------

java.lang.ExceptionInInitializerError
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [applicationContext.xml]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1239)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:438)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.demo.ParamDeliveryDemo.<clinit>(ParamDeliveryDemo.java:21)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:912)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:855)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1224)
... 13 more
Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:434)
at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
... 23 more
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:109)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:92)
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:428)
... 26 more
Caused by: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetException
at org.apache.ibatis.logging.LogFactory.setImplementation(LogFactory.java:131)
at org.apache.ibatis.logging.LogFactory.useCustomLogging(LogFactory.java:83)
at org.apache.ibatis.session.Configuration.setLogImpl(Configuration.java:213)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.settingsElement(XMLConfigBuilder.java:218)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:103)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.ibatis.logging.LogFactory.setImplementation(LogFactory.java:127)
... 32 more
Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/spi/AbstractLoggerWrapper
at org.apache.ibatis.logging.log4j2.Log4j2AbstractLoggerImpl.<init>(Log4j2AbstractLoggerImpl.java:39)
at org.apache.ibatis.logging.log4j2.Log4j2Impl.<init>(Log4j2Impl.java:34)
... 37 more
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 39 more
Exception in thread "main"
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-07-06 05:45:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nash Xiao updated LOG4J2-700:
-----------------------------

Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45. (was: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows, jdk1.6.0_45.)
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 06:11:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053050#comment-14053050 ]

Remko Popma commented on LOG4J2-700:
------------------------------------

Until MyBatis upgrade for the log4j2 api change, perhaps you can use this as a workaround:
http://mybatis.github.io/mybatis-3/logging.html

This explains how to set a different logging implementation, either in mybatis-config.xml or in code by calling {{org.apache.ibatis.logging.LogFactory.useSlf4jLogging();}}.

If you choose SLF4J, you can still use the log4j2 implementation by including the log4j-slf4j-impl jar in your class path as explained here: http://logging.apache.org/log4j/2.x/faq.html#which_jars
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 07:50:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053061#comment-14053061 ]

Remko Popma commented on LOG4J2-700:
------------------------------------

I filed an issue in the MyBatis issue tracker: https://github.com/mybatis/mybatis-3/issues/235
Post by Nash Xiao (JIRA)
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 07:52:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-700:
-------------------------------

Description: When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
Summary: MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" since rc2 (was: When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" since rc2
--------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 07:54:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-700:
-------------------------------

Summary: MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2 (was: MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" since rc2)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-07-06 12:10:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053104#comment-14053104 ]

Nash Xiao commented on LOG4J2-700:
----------------------------------

Thank you very much, Popma.
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-06 12:56:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053113#comment-14053113 ]

Remko Popma commented on LOG4J2-700:
------------------------------------

Did the workaround solve the issue?
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-07-07 13:02:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053625#comment-14053625 ]

Nash Xiao commented on LOG4J2-700:
----------------------------------

Yes, it worked. Thank you again.
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-10 22:39:04 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma reassigned LOG4J2-700:
----------------------------------

Assignee: Remko Popma
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Assignee: Remko Popma
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-10 22:45:07 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma resolved LOG4J2-700.
--------------------------------

Resolution: Won't Fix

Resolving this ticket as "Won't fix": the problem will be addressed in the next MyBatis release (it is already fixed in their main development branch).

Meanwhile, a configuration workaround exists to avoid this error.

Please feel free to re-open if there is any issue.
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Assignee: Remko Popma
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-07-10 22:47:04 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma closed LOG4J2-700.
------------------------------
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Assignee: Remko Popma
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Nash Xiao (JIRA)
2014-08-02 17:15:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083631#comment-14083631 ]

Nash Xiao commented on LOG4J2-700:
----------------------------------

Got it. Thanks.
Post by Remko Popma (JIRA)
MyBatis 3.2.7 gives "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" with log4j-2.0-rc2
-----------------------------------------------------------------------------------------------------------------------------
Key: LOG4J2-700
URL: https://issues.apache.org/jira/browse/LOG4J2-700
Project: Log4j 2
Issue Type: Bug
Components: API
Affects Versions: 2.0-rc2
Environment: mybatis 3.2.7, spring 3.2.5, mybatis-spring 1.2.2,commons-logging-1.1.1,Windows 7, jdk1.6.0_45.
Reporter: Nash Xiao
Assignee: Remko Popma
Priority: Blocker
When used in MyBatis 3.2.7, an error "java.lang.ClassNotFoundException: org.apache.logging.log4j.spi.AbstractLoggerWrapper" was reported,while the rc1 with no problem. In the log4j-api-2.0-rc2.jar, the AbstractLoggerWrapper.class is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)

Loading...