aspose file tools*
The moose likes Aspect Oriented Programming and the fly likes Problem while starting  Spring AOP application on Java 7 and Tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Problem while starting  Spring AOP application on Java 7 and Tomcat 7" Watch "Problem while starting  Spring AOP application on Java 7 and Tomcat 7" New topic
Author

Problem while starting Spring AOP application on Java 7 and Tomcat 7

Yehia El Hady
Greenhorn

Joined: Feb 20, 2013
Posts: 1

Dear All,

i'm kinda stuck here and don't know what to do . i'm trying to run Spring AOP on Java 7 and tomcat 7. i added new AspectJ libraries which are: aspectjtools-1.6.1.jar,aspectjrt-1.6.1.jar and aspectjweaver-1.6.12.jar. and the application compiles with no errors. however when i try to deploy it on tomcat 7 and start the application i get the below exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in ServletContext resource [/WEB-INF/context/general.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
any clue how to solve this issue ??

Thanks in Advance.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while starting Spring AOP application on Java 7 and Tomcat 7
 
Similar Threads
AOP logging throws exception
Spring AOP and AspectJ Integration with EJB3
Spring AOP HELP needed
Problem with Spring AOP
Spring AOP issue