Java.lang.NoClassDefFoundError when using spring security in google engine

I am using Spring kernel version 4.1.6.RELEASE and Spring security version 4.0.0.RELEASE in my google application. But when I try to run it in local appservere I see the following log

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: java.lang.reflect.Parameter is a restricted class. Please see the Google  App Engine developer guide for more details.

      

Then I checked which jdk version this class java.lang.reflect.Parameter

was introduced in and found that it has been around since 1.8. But application engine only supports java 1.7. How can I find Spring framework versions that are built on the 1.7 JDK. Please suggest

+3


source to share


1 answer


You need to download JDK7 and it will work. I had the same problem.



+5


source







All Articles