Question

J'essaie de faire fonctionner Spring Boot avec GAE, mais lorsque je lance appengine:devserver l'application lance :

[INFO] Jun 03, 2014 11:43:26 AM com.google.apphosting.utils.jetty.JettyLogger warn
[INFO] WARNING: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'endpointMBeanExporter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/EndpointMBeanExportAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax.management.MBeanServerFactory is a restricted class. Please see the Google  App Engine developer's guide for more details.:
[INFO] java.lang.NoClassDefFoundError: javax.management.MBeanServerFactory is a restricted class. Please see the Google  App Engine developer's guide for more details.
[INFO]  at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
[INFO]  at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:106)
[INFO]  at org.springframework.jmx.support.JmxUtils.locateMBeanServer(JmxUtils.java:86)
[INFO]  at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:413)
[INFO]  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$6.run(AbstractAutowireCapableBeanFactory.java:1602)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1599)
[INFO]  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
[INFO]  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
[INFO]  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
[INFO]  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
[INFO]  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
[INFO]  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
[INFO]  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
[INFO]  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)

Comment puis-je contourner ce problème ?

Était-ce utile?

La solution

j'ai déployé cette application hier à GAE (du maître) et tout fonctionne bien (aucun signe même du problème d'enregistreur que vous rencontriez).Alors quelle est la différence ?J'ai également dû apporter quelques modifications au Boot Master, mais je n'ai jamais vu les problèmes de classe introuvable que vous faites.

Autres conseils

La ligne "java.lang.NoClassDefFoundError: javax.management.MBeanServerFactory is a restricted class. Please see the Google App Engine developer's guide for more details." dans votre message d'erreur est dû à la restriction du moteur d'application Google.

Référence

Le moteur d'application ne permet pas à votre application d'accéder javax.management.* .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top