Skip to content
Advertisement

Error creating bean with name and Singleton bean creation not allowed

I am getting the following exception when I execute the code via JUnit Test Case

org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘somarFactory’: Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

Could someone advise what might be the issues?

Advertisement

Answer

Go to this thread

I assume that you too have the same issue around there.. It got solved by setting the JAVA_HOME path And Updating your JDK to version 7 and try restarting your server..(solution)

I think that could solve your issue..

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement