cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rice Yeh" <rice...@gmail.com>
Subject Error creating bean with name 'javax.servlet.http.HttpServletRequest/callstack'
Date Tue, 06 Feb 2007 08:55:33 GMT
Hi,
  Running the latest code from trunk, I get an error as the title described.

The following is the exception stack:

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'javax.servlet.http.HttpServletRequest/callstack':
Initializat
ion of bean failed; nested exception is
org.springframework.aop.framework.AopCon
figException: Couldn't generate CGLIB subclass of class [interface
javax.servlet
.http.HttpServletRequest]: Common causes of this problem include using a
final c
lass or a non-visible class; nested exception is
net.sf.cglib.core.CodeGeneratio
nException: java.lang.reflect.InvocationTargetException-->null
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:452)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:250)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:141)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:247)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:161)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:270)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:346)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at
org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at
org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at
org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.cocoon.servlet.ReloadingListener.invoke
(ReloadingListener.
java:148)
        ... 38 more
Caused by: org.springframework.aop.framework.AopConfigException: Couldn't
genera
te CGLIB subclass of class [interface javax.servlet.http.HttpServletRequest]:
Co
mmon causes of this problem include using a final class or a non-visible
class;
nested exception is net.sf.cglib.core.CodeGenerationException:
java.lang.reflect
.InvocationTargetException-->null
        at org.springframework.aop.framework.Cglib2AopProxy.getProxy
(Cglib2AopPr
oxy.java:206)
        at org.springframework.aop.framework.Cglib2AopProxy.getProxy
(Cglib2AopPr
oxy.java:145)
        at org.springframework.aop.framework.ProxyFactory.getProxy
(ProxyFactory.
java:72)
        at
org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(S
copedProxyFactoryBean.java:103)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1076)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:429)
        ... 49 more
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.aop.framework.Cglib2AopProxy.getProxy
(Cglib2AopPr
oxy.java:200)
        ... 54 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
        at net.sf.cglib.core.AbstractClassGenerator.create
(AbstractClassGenerato
r.java:219)
        ... 57 more
Caused by: java.lang.NoClassDefFoundError:
org/springframework/aop/scope/ScopedO
bject
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        ... 63 more

Rice

Mime
View raw message