File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yehia El Hady
Greenhorn
Posts: 1
Java Spring Tomcat Server
  • 0
  • 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.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic