Ashwin Bn
Ashwin Bn

Reputation: 41

Which version of spring supports open jdk or vice versa please confirm

current version of spring we are using is 3.2 .Is it compatible with open jdk 7

we are getting the following error after replacing the jre and jdk to open 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

This is the full stack trace

[main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@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.springframework.beans.factory.support.DefaultListableBeanFactory@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)

Below this is the stack trace which is shared earlier

Upvotes: 0

Views: 2945

Answers (1)

omajid
omajid

Reputation: 15203

Spring 3.2 supports OpenJDK 7.

It's also worth noting that OpenJDK 7 is the reference implementation of Java 7. If a project doesn't work with OpenJDK 7, it's really not Java 7 compatible!

Please also note that OpenJDK 7 u111 u121 is the latest security update. u79, that you are using, contains known security vulnerabilities.

Upvotes: 1

Related Questions