java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

05-11-16 magicboy
java.lang.ClassLoader.defineClass1(Native Method)

java.lang.ClassLoader.defineClass(Unknown Source)

java.security.SecureClassLoader.defineClass(Unknown Source)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

com.jdon.container.builder.ContainerRegistry.createClass(ContainerRegistry.java:101)

com.jdon.container.builder.ContainerRegistry.registerComponentMetaDef(ContainerRegistry.java:71)

com.jdon.container.builder.ContainerRegistry.registerAspectComponentMetaDef(ContainerRegistry.java:93)

com.jdon.container.builder.DefaultContainerBuilder.registerAspectComponents(DefaultContainerBuilder.java:127)

com.jdon.container.builder.ContainerDirector.startup(ContainerDirector.java:61)

com.jdon.container.startup.ContainerSetupScript.startup(ContainerSetupScript.java:86)

com.jdon.container.finder.ServletContainerFinder.findContainer(ServletContainerFinder.java:55)

com.jdon.container.finder.ServletContainerFinder.findContainer(ServletContainerFinder.java:39)

com.jdon.controller.WebAppUtil.getComponentInstance(WebAppUtil.java:93)

app.RegisterAction.execute(RegisterAction.java:15)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

我用的是AllMethod allmethod = (AllMethod) WebAppUtil.getComponentInstance("allmethod",req);来获得组件实例的

搞了很久,郁闷啊

banq
2005-11-17 12:22
Jdon框架需要一个aopalliance.jar辅助包,这个包你没有和jdonframework.jar包一起部署到tomcat下。建议你将Jdon框架的所有驱动包拷贝tomcat/common/lib下

SpeedVan
2010-10-14 18:28
allMethod?行为类?

banq大哥,我没有aopalliance.jar包,也一样可以获得,是新旧版本的问题么?我倒是怀疑他没有在XML中声明组件,或者他声明了,忘了载入到struts-config中

猜你喜欢