Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » no suitable log constructor error
no suitable log constructor error [message #97282] Thu, 13 September 2007 11:50 Go to next message
Eclipse UserFriend
Originally posted by: arash.amiri.researchstudio.at

cross posting this one on spring-osgi groups and equinox newgroup:

Hi,

I dont know if this is an equinox issue or depends on spring-osgi
bundle problems, but maybe someone can help me.

I have a problem with spring-osgi and equinox. I created a bundle that
uses a third party software (Sesame from OpenRDF.org). When I try to
install the bundle, it fails with an error caused by a
NoClassDefFoundError, not finding org.apache.log4j.category, although
I have a bundle (and I am pretty sure that I only have one single
bundle) exporting the log4j classes.

below are some details (the stacktrace and the bundles I use)

does anybody know a way out here?
greetings, arash.

osgi> update 28
osgi> 13.09.2007 11:20:29
org.springframework.context.support.AbstractApplicationConte xt
prepareRefresh
INFO: Refreshing
org.springframework.osgi.extender.support.ServiceDependentOs giBundleXmlApplicationContext @10e468f:
display name
[ServiceDependentOsgiBundleXmlApplicationContext(bundle=org. semdav.server.repository.meta.sesame.SesameMetadataRepositor y,
config=bundle-jar:/META-INF/spring/*.xml)];
startup date [Thu Sep 13 11:20:29 CEST 2007]; root of context
hierarchy; config locations [bundle-jar:/META-INF/spring/*.xml]
13.09.2007 11:20:29
org.springframework.osgi.context.support.AbstractRefreshable OsgiBundleApplicationContext
close
INFO: the application context service has been already unregistered
13.09.2007 11:20:29
org.springframework.osgi.extender.support.ServiceDependentOs giBundleXmlApplicationContext
fail
SCHWERWIEGEND: Unable to create application context for
[org.semdav.server.repository.meta.sesame.SesameMetadataRepo sitory],
unsatisfied dependencies: none
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
No suitable Log constructor [Ljava.lang.Class;@182da3d for
org.apache.commons.logging.impl.Log4JLogger
(Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
(Caused by org.apache.commons.logging.LogConfigurationException:
No suitable Log constructor [Ljava.lang.Class;@182da3d for
org.apache.commons.logging.impl.Log4JLogger
(Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(L ogFactoryImpl.java:
543)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(L ogFactoryImpl.java:
235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(L ogFactoryImpl.java:
209)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java :351)
at
org.springframework.beans.factory.support.DefaultSingletonBe anRegistry. <init>(DefaultSingletonBeanRegistry.java:
82)
at
org.springframework.beans.factory.support.AbstractBeanFactor y. <init>(AbstractBeanFactory.java:
149)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory. <init>(AbstractAutowireCapableBeanFactory.java:
140)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory. <init>(AbstractAutowireCapableBeanFactory.java:
151)
at
org.springframework.beans.factory.support.DefaultListableBea nFactory. <init>(DefaultListableBeanFactory.java:
100)
at
org.springframework.context.support.AbstractRefreshableAppli cationContext.createBeanFactory(AbstractRefreshableApplicati onContext.java:
144)
at
org.springframework.context.support.AbstractRefreshableAppli cationContext.refreshBeanFactory(AbstractRefreshableApplicat ionContext.java:
99)
at
org.springframework.context.support.AbstractApplicationConte xt.obtainFreshBeanFactory(AbstractApplicationContext.java:
395)
at
org.springframework.osgi.context.support.AbstractRefreshable OsgiBundleApplicationContext.preRefresh(AbstractRefreshableO sgiBundleApplicationContext.java:
394)
at
org.springframework.osgi.extender.support.ServiceDependentOs giBundleXmlApplicationContext.refresh(ServiceDependentOsgiBu ndleXmlApplicationContext.java:
81)
at org.springframework.osgi.extender.ContextLoaderListener
$1.run(ContextLoaderListener.java:408)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.lang.Class;@182da3d for
org.apache.commons.logging.impl.Log4JLogger
(Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstru ctor(LogFactoryImpl.java:
413)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(L ogFactoryImpl.java:
529)
... 15 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown
Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstru ctor(LogFactoryImpl.java:
410)
... 16 more
13.09.2007 11:20:29
org.springframework.osgi.extender.support.ServiceDependentOs giBundleXmlApplicationContext
fail
INFO:
[org.semdav.server.repository.meta.sesame.SesameMetadataRepo sitory]
creation calling code:

org.eclipse.osgi_3.3.0.v20070530
org.eclipse.equinox.common_3.3.0.v20070426
org.eclipse.update.configurator_3.2.100.v20070615
org.eclipse.equinox.launcher_1.0.0.v20070606
org.semdav.server.repository.meta.sesame.SesameMetadataRepos itory_1.0.0
org.springframework.osgi.aopalliance.osgi_1.0.0.SNAPSHOT
org.springframework.osgi.spring-dao_2.0.5.osgi_m3_SNAPSHOT
org.springframework.osgi.samples.simpleservice_1.0.0
slf4j.api_1.3.1
org.springframework.osgi.spring-aop_2.1.0.osgi_m4_SNAPSHOT
org.springframework.osgi.spring-osgi-core_1.0.0.m3_SNAPSHOT
org.springframework.osgi.spring-osgi-extender_1.0.0.m3_SNAPS HOT
org.springframework.osgi.spring-osgi-io_1.0.0.m3_SNAPSHOT
org.springframework.osgi.asm.osgi_2.2.3.SNAPSHOT
org.springframework.osgi.backport-util-concurrent_3.0.0.SNAP SHOT
spring-beans_2.1.0.m3
spring-core_2.1.0.m3
spring-context_2.1.0.m3
slf4j.jdk14_1.3.1
jcl104.over.slf4j_1.3.1
org.knopflerfish.bundle.desktop_2.0.0
org.knopflerfish.bundle.util-LIB_2.0.0
org.apache.felix.commons.commons-beanutils_1.7.0.SNAPSHOT
org.apache.felix.commons.commons-httpclient_3.0.1.SNAPSHOT
org.apache.felix.commons.commons-codec_1.3.0.SNAPSHOT
org.apache.felix.commons.commons-collections_3.2.0.SNAPSHOT
org.springframework.osgi.junit.osgi_3.8.1.SNAPSHOT
org.springframework.osgi.spring-web_2.0.5.osgi_m3_SNAPSHOT
org.springframework.osgi.servletapi.osgi_2.4.0.SNAPSHOT
org.springframework.osgi.jsp-api.osgi_2.0.0.SNAPSHOT
org.springframework.osgi.spring-webmvc_2.0.5.osgi_m3_SNAPSHO T
org.springframework.osgi.jstl.osgi_1.1.2.SNAPSHOT
taglibs-standard-osgi.taglibs-standard-osgi_1.0.0
org.apache.felix.commons.jstl_1.1.2.SNAPSHOT
org.springframework.osgi.spring-support_2.0.5.osgi_m3_SNAPSH OT
org.mozilla.rhino_1.6.0.v20070531
org.apache.ant_1.6.5
org.springframework.osgi.spring-osgi-annotation_1.0.0.m3_SNA PSHOT
org.apache.felix.commons.openrdf-
sesame_2.0.0.beta5_onejar_jar_0001_SNAPSHOT
org.apache.felix.commons.javassist_3.0.0.rc_1_0001_SNAPSHOT
org.apache.felix.commons.commons-io_1.3.2.SNAPSHOT
org.apache.felix.commons.cglib-full_2.0.2.SNAPSHOT
org.apache.felix.commons.jta_1.0.0._0001_SNAPSHOT
toplink-essentials-osgi-bundle.toplink-essentials-core-osgi-
bundle_1.0.0
ognl-osgi-bundle.ognl-core-osgi-bundle_1.0.0
oro-osgi-bundle.oro-osgi-bundle_1.0.0
easymock-osgi-bundle.easymock-osgi-bundle_1.0.0
org.apache.felix.commons.hibernate_3.1.3.SNAPSHOT
org.apache.felix.commons.xercesImpl_2.8.1.SNAPSHOT
org.apache.felix.commons.xml-resolver_1.2.0.SNAPSHOT
org.apache.felix.commons.xml-apis_1.3.4.SNAPSHOT
org.apache.felix.commons.antlr_2.7.6.SNAPSHOT
elmo-osgi-bundle.elmo-osgi-bundle_1.0.0
hivemind-osgi-bundle.hivemind-osgi-bundle_1.0.0
org.apache.commons.logging_1.0.4.v200706111724
org.springframework.osgi.log4j.osgi_1.2.13
Re: no suitable log constructor error [message #97299 is a reply to message #97282] Thu, 13 September 2007 12:21 Go to previous message
Eclipse UserFriend
Originally posted by: arash.amiri.researchstudio.at

I fixed this one by removing the commons-logging bundle from the plugins
directory.
Previous Topic:Apache commons logging and Equinox - hard to get started
Next Topic:equinox quickstart guide for OSX?
Goto Forum:
  


Current Time: Sat Apr 20 02:23:13 GMT 2024

Powered by FUDForum. Page generated in 0.02959 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top