错误信息:
2013-09-01 14:00:56 Class [com.ibm.websphere.management.AdminServiceFactory] or one of its dependencies is not present: java.lang.ClassNotFoundException: com.ibm.websphere.management.AdminServiceFactory
iException in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot define both 'pointcut' and 'pointcut-ref' on <advisor> tag.
Offending resource: class path resource [applicationContext.xml]
Aspect: id='asp'
-> Advice (before)
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
at org.springframework.aop.config.ConfigBeanDefinitionParser.parsePointcutProperty(ConfigBeanDefinitionParser.java:502)
at org.springframework.aop.config.ConfigBeanDefinitionParser.createAdviceDefinition(ConfigBeanDefinitionParser.java:420)
at org.springframework.aop.config.ConfigBeanDefinitionParser.parseAdvice(ConfigBeanDefinitionParser.java:363)
at org.springframework.aop.config.ConfigBeanDefinitionParser.parseAspect(ConfigBeanDefinitionParser.java:258)
at org.springframework.aop.config.ConfigBeanDefinitionParser.parse(ConfigBeanDefinitionParser.java:148)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253
解决方案:
错误原因是因为配置AOP时,通知里面引入了切入点,如果在配置一个切入点就会发生以上错误.
比如:
<aop:beforepointcut-ref="mycut"method="doAccessCheck" pointcut="execution(* com.java.spring..*.*(..))"/>
正确的应该是:
<aop:beforepointcut-ref="mycut"method="doAccessCheck" />
或者
<aop:before pointcut="execution(* com.java.spring..*.*(..))“ method="doAccessCheck" />
相关推荐
Report Machine 2.6<br>===================<br><br>这是一个报表控件包,For Borland Delphi Versions 3,4,5,6,7.100% 源码.<br><br>最后更新日期:2002.10.11<br><br>目录<br>-----<br> 说明<br> 特点<br> 最后...
onto the form also.<END><br>3 , noclose.zip<br>This demonstrates how to remove the "X" located on the top of your form, while keeping the maximize and minimize buttons visible.<END><br>4 , dos-menu....
- `<name>`、`<expression>`等用尖括号`<>`包围的词汇表示变量名、表达式等,用于泛指某些内容。 - 示例:`<name>=<expression>`可以表示`x=5`或`name="John"+"Stewman"`。 2. **语句**: - `<statement>`可以是...
-H263CbrTolerance=<value> Define H.263 CBR tolerance of [value] (default: 10 %) -hint[=<track-id>] Create hint track, also -H -interleave Use interleaved audio payload format, also -I -list List ...
Date Format, Day Name, Month Name...<END><br>2 , netstuff.zip<br>This program queries the network and shows the Domains/Servers/Workstations structure. It also shows the users of each Server or ...
on left and right side of a text box.<END><br>40,Assist.zip<br>A simple application with source code which shows how to save the contents of a rich text box without the help of common dialog box.<END>...
:hammer: 锤子 ... hammer bundle <src> <dest> [--minify] [--define=<K>=<V>...] [--sourcemap=<external>] [--extract-css] [--css-modules] hammer trace <src> [--flat|--orphans] [--json] hammer -h
Software Testing and Continuous Quality Improvement<br><br>SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1<br>1 Quality Assurance Framework. . . . . . . . . . . . . . . . . ....
UML Applied: A .NET Perspective 第一部分<br>Table of Contents <br> UML Applied—A .NET Perspective <br> Foreword <br> Introduction <br> Part One - UML and Five-Step UML: It's all About Communication ...
16.zip<br>Comment / Uncomment macros<br>命令/反命令宏(5KB)<END><br>17,17.zip<br>Custom built files<br>自定义生成的文件(5KB)<END><br>18,18.zip<br>Define Method<br>定义方法(5KB)<END><br>19,19.zip<br>...
...<br> </httpHandlers><br> ...<br> </system.web><br> ...<br><configuration><br>Making client-side JavaScript code<br>Let us take a look at the default.aspx file that was automatically created in our ...
<solid android:color="#FF0000" /> <!-- 默认填充颜色 --> <corners android:radius="5dp" /> <!-- 圆角 --> <stroke android:width="2dp" android:color="#00FF00" /> <!-- 边框宽度和颜色 --> </shape> ``...
#include<bits/stdc++.h>#include<stdio.h>#include<windows.h>#include<conio.h>#include<stdlib.h>#include<time.h>#define LEN 30#define WID 25#include<bits/stdc++.h>#include<iostream>#include<fstream>#...
- `<shared_ptr>`,`<unique_ptr>` 和 `<weak_ptr>`:智能指针,自动管理内存。 - `<tuple>`:元组类型,存储多个不同类型的数据。 - `<forward_list>`:单向链表容器。 5. **预处理器指令**: - `#include`:...
Team LiB<br>Summary:<br>"Requirements" are essential for creating successful software because they let users and developers agree on what features will be delivered in new systems. Karl Wiegers's ...
COLUMN_NORESIZE 0x00200000L<br>//列头(第0行)是否显示ABCDE标识<br>#define GS_COLHEAD_CUSTOM 0x00400000L<br>//行头(第0列)是否显示12345标识<br>#define GS_ROWHEAD_CUSTOM 0x00800000L<br><br><br><br>...
<property name="dataSource" ref="dataSource" /> <property name="configLocation" value="/WEB-INF/conf/sqlMapConfig.xml" /> </bean> ``` 在`sqlMapConfig.xml`中,你需要引用SQL映射文件(如`.xml`文件...
- Improvement: TPolyline -> added Icon property to define the line of polyline. - Improvement: TGMRectangle -> modified all Set and ShowElements methods to use the new method ChangeProperties ...
Version 2.5<br>Attention : This version is not compatible with releases before FCKeditor 2.5.1.<br><br>New Features and Improvements:<br><br>[#1548] Compatible with Safari 3.0+ and Opera 9.50+. <br>...
#define N 200<br>#include <graphics.h><br>#include <stdlib.h><br>#include <dos.h><br>#define LEFT 0x4b00<br>#define RIGHT 0x4d00<br>#define DOWN 0x5000<br>#define UP 0x4800<br>#define ESC 0x011b<br>...