• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Yehia El Hady
Posts: 1
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!