异常描述:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException at org.springframework.aop.support.RegexpMethodPointcutAdvisor.createPointcut(RegexpMethodPointcutAdvisor.java:167) at org.springframework.aop.support.RegexpMethodPointcutAdvisor.getPointcut(RegexpMethodPointcutAdvisor.java:149) at org.springframework.aop.framework.AdvisorChainFactoryUtils.calculateInterceptorsAndDynamicInterceptionAdvice(AdvisorChainFactoryUtils.java:76) at org.springframework.aop.framework.HashMapCachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(HashMapCachingAdvisorChainFactory.java:47) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:156) at $Proxy0.doAuditing(Unknown Source) at com.gc.test.TestHelloWorld.main(TestHelloWorld.java:29)
|
异常分析:
因为在.xml中要使用正规表达式
.*doAuditing.*,
所以要吧spring-framework-2.0-ml\lib\oro目录下的jakarta-oro-2.0.8.jar加入到ClassPath下
阅读(600) | 评论(0) | 转发(0) |