If you are using Eclipse with aspectJ plugin, you may get this exception below, because it is necessary to convert the project before running it.
See details below.
PROBLEM
Exception thrown:
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logAspecto' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: No matching factory method found: factory method 'aspectOf()'.
Check that a method with the specified name exists and that it is static.
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:528)
SOLUTION
After AspectJ plugin installation it is necessary to convert the project.
Right click the project > configure > convert to aspect project
INTALLING AspectJ plugin in Kepler
To install aspectJ plugin in Eclipse Kepler, go to menu, help, Install new software.
Point to http://download.eclipse.org/tools/ajdt/43/update .
Wait a minute to update, check all then install.
No comments:
Post a Comment