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


Solutions on the web

Solution icon of coderanch
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

Solution icon of web
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

Solution icon of web
via deepakgaikwad.net by Unknown author, 1 year ago
Error creating bean with name ‘/hellovisitor.htm’ defined in ServletContext resource [/WEB-INF/SpringMVCTutorial-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property ‘commandName’ of bean class [controller.HelloWorldController]: No property ‘commandName’ found

Solution icon of web
via epseelon.com by Unknown author, 1 year ago
Error creating bean with name ‘_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘_messageBroker': Invocation of init

Solution icon of spring
via Spring JIRA by Manasa T M, 1 year ago
Error creating bean with name 'queueConnectionFactory': Initialization of bean failed; nested exception is java.lang.NullPointerException

Solution icon of spring
via Spring JIRA by Manasa T M, 1 year ago
Error creating bean with name 'queueConnectionFactory': Initialization of bean failed; nested exception is java.lang.NullPointerException

Solution icon of web
Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.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

Solution icon of web
Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.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

Solution icon of web
Error creating bean with name defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the pointcut expression is only supported at Java compliance level or above

Solution icon of github
Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': 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

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
67 more bugmates