Spring context initialization failed with java.lang.IllegalArgumentException while deploying to Apache 7.0.54 and java 8

前端 未结 4 1791
予麋鹿
予麋鹿 2021-01-01 09:00

Environment: Applciation server: Apache 7.0.54 Java: \"1.8.0_05\" OS: Mac OS X 10.9.3

Libraries: Spring 3.2 REST application

Following is the error I receive

相关标签:
4条回答
  • 2021-01-01 09:04

    You need to upgrade to spring 4 release to support java 1.8 byte code format

    0 讨论(0)
  • 2021-01-01 09:04

    If you can't go Spring 4 just upgrade to 3.2.16 will solved the problem.

    Thanks to Tom Saleeba

    0 讨论(0)
  • 2021-01-01 09:14

    In my case my application runs with java8 and jetty, uses spring 3.1.4 and can't not be upgraded.

    The problem appeared after the use of a lambda function inside a bean definition. Removing it solved my problem.

    0 讨论(0)
  • 2021-01-01 09:30

    Upgrading to spring 3.2.16 resolved the problem. Looks like older version of spring does not like java 1.8.xxx

    0 讨论(0)
提交回复
热议问题