You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2018/11/12 00:51:00 UTC

[jira] [Assigned] (SM-3856) OSGi bundle for spring-core 5.1.1 is missing import of "org.apache.commons.logging.impl"

     [ https://issues.apache.org/jira/browse/SM-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SM-3856:
--------------------------------

    Assignee: Freeman Fang

> OSGi bundle for spring-core 5.1.1 is missing import of "org.apache.commons.logging.impl"
> ----------------------------------------------------------------------------------------
>
>                 Key: SM-3856
>                 URL: https://issues.apache.org/jira/browse/SM-3856
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: bundles
>    Affects Versions: bundles-2018.10
>            Reporter: Olaf Otto
>            Assignee: Freeman Fang
>            Priority: Critical
>
> The CompositeLog class of spring-core statically initializes an instance of org.apache.commons.logging.impl.NoOpLog. The bundle thus requires the impl package. Sample stacktrace:
> {code:java}
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.log.CompositeLog
> {code}
> The import should be in the form
> {code:java}
> org.apache.commons.logging.impl;version="[1.1.1,2)"
> {code}
> I also noted that the commons logging imports are currently on resolution=optional. I believe they are not optional any more.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)