2016-12-12 2 views
0

version actuelle du printemps, nous utilisons est de 3,2 .est compatible avec jdk ouvert 7Quelle est la version du printemps soutient jdk ouverte ou vice versa s'il vous plaît confirmer

nous obtenons l'erreur suivante après avoir remplacé le jre et jdk pour ouvrir jdk

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'applicationContext-main' is defined 
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:504) 
     at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1041) 
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273) 
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) 
     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1008) 
     at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(Singlet 

Ceci est la pleine trace de la pile

[main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing 
org[email protected]3f9a23f5: startup date [Mon Dec 12 05:35:37 IST 2016]; root of context hierarchy 
[main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]1ec73967: defining beans []; root of factory hierarchy 
Application context could not be created. Will now exit 
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [applicationContext-main], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'applicationContext-main' is defined 
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409) 

en dessous est la trace de la pile qui est partagée plus tôt

+1

Publiez la trace de pile complète au lieu d'un extrait. Sauf si vous utilisez des classes de soleil internes, rien ne devrait vous empêcher d'utiliser OpenJDK. –

+0

Merci pour votre réponse denim pouvez-vous vérifier la dernière trace de pile et nous aider ?? –

+2

Apparemment, il ne trouve pas vos ressources là où il les attend. Donc, soit cela a fonctionné avant par chance de cisaillement ou il y a un problème avec la résolution des chemins avec OpenJDK. Vous passez uniquement à OpenJDK vous ne passez pas de la version 6 à la version 7? –

Répondre

1

Ressort 3.2 supports OpenJDK 7.

Il est également à noter que OpenJDK 7 is the reference implementation of Java 7. Si un projet ne fonctionne pas avec OpenJDK 7, ce n'est vraiment pas compatible avec Java 7!

Veuillez également noter que OpenJDK 7 u111 u121 est la dernière mise à jour de sécurité. u79, que vous utilisez, contient des failles de sécurité connues.

+0

Quelqu'un peut-il donner avec un lien réel d'où je peux télécharger les fichiers officiels ouverts jdk 7 tar dernière. Je ne peux pas utiliser les commandes Yum ou app .get en raison de restrictions réseau. Votre aide est très appréciée –

+0

Prenez la dernière mise à jour OpenJDK 7 d'ici: https://java.net/projects/openjdk7/downloads?field=date&order=desc – omajid

+0

J'ai également arrangé https://wiki.openjdk.java.net/display/jdk7u/Main pour pointer vers les sources. – omajid