java - Spring Boot (Legacy) with GAE - Autowiring -
i'm trying make spring-boot-legacy:1.0.1.release & spring-boot-starter-parent:1.1.8.release gae 1.9.19. however, upon running via mvn appengine:devserver, following error prevents app running:
[info] java.lang.noclassdeffounderror: java.lang.reflect.parameter restricted class. please see google app engine developer's guide more details. [info] @ com.google.appengine.tools.development.agent.runtime.runtime.reject(runtime.java:52) [info] @ org.springframework.core.standardreflectionparameternamediscoverer.getparameternames(standardreflectionparameternamediscoverer.java:53) [info] @ org.springframework.core.prioritizedparameternamediscoverer.getparameternames(prioritizedparameternamediscoverer.java:65) [info] @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:182) [info] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1115) [info] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1018) [info] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504) [info] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:475) [info] @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:302) [info] @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:228) [info] @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:298) [info] @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) [info] @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:706) [info] @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:762) [info] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:482) [info] @ org.springframework.boot.springapplication.refresh(springapplication.java:691) [info] @ org.springframework.boot.springapplication.run(springapplication.java:320)
from understand, spring uses reflection auto-wire dependencies seems classes in java.lang.reflect package restricted. ideas on how make work?
java.lang.reflect.parameter
used spring under java 8. have downgrade java 7 avoid it. reason google appengine doesn't have support java 8, java 7. need anyway.
Comments
Post a Comment