java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Factory
oren Sep 1, 2009 5:13 PMDear All,
As part of getting Hibernate to work on the bus, I started getting these errors in my bundle even though I explicitly embed all cglib classes in that bundle (just in case, although this is not desirable in a production system, of course). This happens with almost any bean in my context file, as spring attempts to proxy them and fails. What am I doing wrong?
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.Invocati
onTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerato
r.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at org.springframework.beans.factory.support.CglibSubclassingInstantiati
onStrategy$CglibSubclassCreator.instantiate(CglibSubclassingInstantiationStrateg
y.java:116)
at org.springframework.beans.factory.support.CglibSubclassingInstantiati
onStrategy.instantiateWithMethodInjection(CglibSubclassingInstantiationStrategy.
java:70)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:65)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
... 61 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerato
r.java:219)
... 67 more
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Factory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
... 72 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Factory
at org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourc
eByDelegation(ModuleImpl.java:558)
at org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleI
mpl.java:59)
at org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.
loadClass(ModuleImpl.java:1427)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 74 more
tail of osgi/list :
further-mdr-impl (1.0.0.SNAPSHOT)
wrap_mvn_cglib_cglib_rc2-1.0 (0)
wrap_mvn_cglib_cglib-nodep_2.1_3 (0)
See attached pom for the felix config. Its full dependency tree follows:
dependency:tree {execution: default-cli}
edu.utah.further.mdr:mdr-impl:bundle:1.0.0-SNAPSHOT
+- edu.utah.further.core:core-util:jar:1.0.0-SNAPSHOT:compile
| +- edu.utah.further.core:core-api:jar:1.0.0-SNAPSHOT:compile
| | +- org.springframework:spring-core:jar:2.5.6:compile
| | +- org.springframework:spring-beans:jar:2.5.6:compile
| | +- org.apache.commons:com.springsource.org.apache.commons.lang:jar:
2.4.0:compile
| | +- org.slf4j:slf4j-api:jar:1.5.6:compile
| | +- javax.ws.rs:jsr311-api:jar:1.0:compile
| | \- org.slf4j:slf4j-log4j12:jar:1.5.6:runtime
| +- log4j:log4j:jar:1.2.15:compile
| | +- javax.mail:mail:jar:1.4:compile
| | +- javax.jms:jms:jar:1.1:compile
| | +- com.sun.jdmk:jmxtools:jar:1.2.1:compile
| | \- com.sun.jmx:jmxri:jar:1.2.1:compile
| +- commons-math:commons-math:jar:20040218.045431:compile
| +- commons-io:commons-io:jar:1.4:compile
| +- net.sourceforge.collections:collections-generic:jar:4.01:compile
| +- org.springframework:org.springframework.context.support:jar:2.5.6:c
ompile
| | +- org.apache.commons:com.springsource.org.apache.commons.logging:j
ar:1.1.1:compile
| | +- org.springframework:org.springframework.beans:jar:2.5.6:compile
| | +- org.springframework:org.springframework.context:jar:2.5.6:compil
e
| | | +- org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0:co
mpile
| | | \- org.springframework:org.springframework.aop:jar:2.5.6:compile
| | \- org.springframework:org.springframework.core:jar:2.5.6:compile
| +- javax.xml.bind:jaxb-api:jar:2.1:compile
| | \- javax.xml.stream:stax-api:jar:1.0-2:compile
| +- com.sun.xml.bind:jaxb-impl:jar:2.1.11:compile
| +- xerces:xercesImpl:jar:2.9.1:compile
| | \- xml-apis:xml-apis:jar:1.3.04:compile
| +- net.java.dev.stax-utils:stax-utils:jar:20060502:compile
| \- org.springframework:spring-aspects:jar:2.5.6:compile
| +- org.aspectj:aspectjrt:jar:1.6.1:compile
| +- org.aspectj:aspectjweaver:jar:1.6.1:compile
| \- commons-logging:commons-logging:jar:1.1.1:compile
+- edu.utah.further.core:core-data-oracle:jar:1.0.0-SNAPSHOT:compile
| +- edu.utah.further.core:core-data:jar:1.0.0-SNAPSHOT:compile
| | +- org.springframework:spring-aop:jar:2.5.6:compile
| | +- edu.utah.further.core:core-query:jar:1.0.0-SNAPSHOT:compile
| | +- javax.persistence:com.springsource.javax.persistence:jar:1.99.0:
compile
| | +- javax.transaction:com.springsource.javax.transaction:jar:1.1.0:c
ompile
| | +- org.hibernate:com.springsource.org.hibernate:jar:3.3.1.GA:compil
e
| | | +- org.apache.commons:com.springsource.org.apache.commons.collec
tions:jar:3.2.0:compile
| | | +- org.antlr:com.springsource.antlr:jar:2.7.6:compile
| | | +- org.jboss.javassist:com.springsource.javassist:jar:3.3.0.ga:c
ompile
| | | +- org.jgroups:com.springsource.org.jgroups:jar:2.2.8:compile
| | | | +- edu.oswego.cs.concurrent:com.springsource.edu.oswego.cs.dl
.util.concurrent:jar:1.3.4:compile
| | | | \- org.apache.log4j:com.springsource.org.apache.log4j:jar:1.2
.15:compile
| | | +- net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.1.3
:compile
| | | +- org.dom4j:com.springsource.org.dom4j:jar:1.6.1:compile
| | | +- org.objectweb.asm:com.springsource.org.objectweb.asm:jar:1.5.
3:compile
| | | \- org.objectweb.asm:com.springsource.org.objectweb.asm.attrs:ja
r:1.5.3:compile
| | +- org.hibernate:com.springsource.org.hibernate.annotations:jar:3.4
.0.GA:compile
| | | \- org.hibernate:com.springsource.org.hibernate.annotations.comm
on:jar:3.3.0.ga:compile
| | +- org.hibernate:com.springsource.org.hibernate.ejb:jar:3.4.0.GA:co
mpile
| | | \- org.jboss.util:com.springsource.org.jboss.util:jar:2.0.4.GA:c
ompile
| | +- org.springframework:org.springframework.orm:jar:2.5.6:compile
| | | \- org.springframework:org.springframework.transaction:jar:2.5.6
:compile
| | +- org.apache.commons:com.springsource.org.apache.commons.dbcp:jar:
1.2.2.osgi:compile
| | | \- org.apache.commons:com.springsource.org.apache.commons.pool:j
ar:1.3.0:compile
| | +- jcs:jcs:jar:20030822.182132:compile
| | \- org.springframework:org.springframework.jdbc:jar:2.5.6:compile
| +- com.oracle:ojdbc6:jar:11.1.0.7.0:compile
| +- com.oracle:xdb:jar:11.1.0.7.0:compile
| +- com.oracle:xmlparserv2:jar:11.1.0.7.0:compile
| \- com.mchange.c3p0:com.springsource.com.mchange.v2.c3p0:jar:0.9.1.2:c
ompile
+- edu.utah.further.mdr:mdr-api:jar:1.0.0-SNAPSHOT:compile
| +- edu.utah.further.core:core-metadata:jar:1.0.0-SNAPSHOT:compile
| +- edu.utah.further.dts:dts-api:jar:1.0.0-SNAPSHOT:compile
| \- org.basex:basex-xqj:jar:5.0:compile
+- net.sf.saxon:saxon:jar:9.2-noxpath:runtime
+- edu.utah.further.dts:dts-impl:jar:1.0.0-SNAPSHOT:runtime
| +- org.aspectj:com.springsource.org.aspectj.runtime:jar:1.6.2.RELEASE:
runtime
| +- org.aspectj:com.springsource.org.aspectj.weaver:jar:1.6.2.RELEASE:r
untime
| +- org.springframework.osgi:spring-osgi-core:jar:1.1.3:runtime
| | \- org.springframework.osgi:spring-osgi-io:jar:1.1.3:runtime
| +- org.springframework:spring-context:jar:2.5.6:runtime
| +- edu.utah.further.party3:party3-apelon:jar:1.0.0-SNAPSHOT:runtime
| | +- com.apelon:apelon-beans:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-message:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-server:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-soap:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-classifier:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-common:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dag:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-graph:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-matchpack:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-selext:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-wizard:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dtsapps:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dtscore:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dtsmc:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dtswfclient:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-dtswfserver:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-wrapper:jar:3.4.1.122:runtime
| | +- com.apelon:apelon-tqlutil:jar:3.4.1.122:runtime
| | +- com.apelon:jaxb-libs:jar:3.4.1.122:runtime
| | +- javax.xml:jax-qname:jar:1.1:runtime
| | +- xalan:xalan:jar:2.7.1:runtime
| | | \- xalan:serializer:jar:2.7.1:runtime
| | +- xpp3:xpp3:jar:1.1.4c:runtime
| | +- com.thoughtworks.xstream:xstream:jar:1.3:runtime
| | | \- xpp3:xpp3_min:jar:1.1.4c:runtime
| | +- activemq:xsdlib:jar:20050407:runtime
| | +- relaxngDatatype:relaxngDatatype:jar:20020414:runtime
| | \- mseries:mdateselector:jar:3.4.1.122:runtime
| +- cglib:cglib:jar:rc2-1.0:runtime
| \- cglib:cglib-nodep:jar:2.1_3:runtime
+- commons-logging:commons-logging-api:jar:1.1:compile
+- org.hamcrest:hamcrest-core:jar:1.1:test
+- org.hamcrest:hamcrest-library:jar:1.1:test
\- org.springframework:spring-test:jar:2.5.6:test
Finished at: Tue Sep 01 15:12:57 MDT 2009
oren@BMI-FURTHER-SE1 /cygdrive/c/further/app/mdr/mdr-impl
Thanks so much in advance.
-
pom.xml 6.2 KB