geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Krishna Korrapati" <harikrishna.korrap...@gmail.com>
Subject Problem with cglib jar
Date Wed, 05 Dec 2007 11:18:23 GMT
Hi,

I am facing a problem with cglib jar.
When i am trying to deploy my ear, i am getting an exception saying

16:44:28,862 ERROR [[/sample]] StandardWrapper.Throwable
java.lang.NoClassDefFoundError: net/sf/cglib/KeyFactory
    at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(
SessionFactoryImpl.java:297)
    at net.sf.hibernate.cfg.Configuration.buildSessionFactory(
Configuration.java:627)
    at com.xyz.sample.util.ServiceLocator.getDataSource(ServiceLocator.java
:190)
    at com.xyz.sample.web.servlet.ReportServlet.initializeResourceLookups(
ReportServlet.java:912)
    at com.xyz.sample.web.servlet.ReportServlet.init(ReportServlet.java:668)
    at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1105)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java
:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3915)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4176)
    at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(
GeronimoStandardContext.java:67)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(
GeronimoStandardContext.java:337)
    at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
GeronimoBeforeAfterValve.java:31)
    at org.apache.geronimo.tomcat.GeronimoStandardContext.start(
GeronimoStandardContext.java:192)
    at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.geronimo.tomcat.TomcatContainer.addContext(
TomcatContainer.java:313)
    at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:122)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:817)
    at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java
:57)
    at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
    at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$647beb0c.addContext
(<generated>)
    at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(
TomcatWebAppContext.java:438)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(
GBeanInstance.java:981)
    at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
(GBeanInstanceState.java:267)
    at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
GBeanInstanceState.java:102)
    at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(
GBeanInstanceState.java:124)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(
GBeanInstance.java:540)
    at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(
BasicKernel.java:379)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans
(ConfigurationUtil.java:374)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans
(ConfigurationUtil.java:411)
    at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(
KernelConfigurationManager.java:187)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
(SimpleConfigurationManager.java:527)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
(SimpleConfigurationManager.java:508)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke
(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:122)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:817)
    at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java
:57)
    at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)
    at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$4ac69885.startConfiguration
(<generated>)
    at org.apache.geronimo.deployment.plugin.local.StartCommand.run(
StartCommand.java:67)
    at java.lang.Thread.run(Thread.java:595)


when i googled it i didnt get exact solution but came to know there is some
problem with hibernate and cglib jars.
My ear has hibernate-2.0.3.jar and cglib-asm-1.0.jar.


*System environment is:*
Application Server: Geronimo 1.1.1, JDK 1.5
Build using Maven 2.0.4
Eclipse 3.2.1


Please advice me how to proceed.


Thanks and Regards,
Hari

Mime
View raw message