Pokuri
Pokuri

Reputation: 3082

java.lang.NoClassDefFoundError on using spring security on google app engine

I am using Spring Core framework version 4.1.6.RELEASE and Spring Security version 4.0.0.RELEASE in my google app. But when I try to run it in local appservere I see 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's guide for more details.

Then I checked that in which jdk version this java.lang.reflect.Parameter class was introduced and found that it is there since 1.8. But app engine supports java 1.7 only. How could I find the spring framework versions which are build on 1.7 JDK. Please suggest

Upvotes: 3

Views: 1613

Answers (1)

reos
reos

Reputation: 8324

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

Upvotes: 5

Related Questions