org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in class path resource [resources/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sf.ehcache.CacheManager]: Constructor threw exception; nested exception is net.sf.ehcache.CacheException: When not using standalone deployment, you need to use full install of Terracotta in order to use Terracotta Clustered Caches.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Terracotta by alseddnm, 5 months ago
[net.sf.ehcache.CacheManager]: Constructor threw exception; nested exception is net.sf.ehcache.CacheException: When not using standalone deployment, you need to use full install of Terracotta in order to use Terracotta Clustered Caches.
via terracotta.org by Unknown author, 2 years ago
[net.sf.ehcache.CacheManager]: Constructor threw exception; nested exception is net.sf.ehcache.CacheException: When not using standalone deployment, you need to use full install of Terracotta in order to use Terracotta Clustered Caches.
via Terracotta by alseddnm, 1 year ago
[net.sf.ehcache.CacheManager]: Constructor threw exception; nested exception is net.sf.ehcache.CacheException: When not using standalone deployment, you need to use full install of Terracotta in order to use Terracotta Clustered Caches.
via Stack Overflow by Majid Hussain
, 1 year ago
Error creating bean with name 'displayMessage' defined in class path resource [springbeans.xml]: 3 constructor arguments specified but no matching constructor found in bean 'displayMessage' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
via coderanch.com by Unknown author, 2 years ago
Error creating bean with name 'jdbcTemplate' defined in class path resource [spring-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
via Coderanch by Vish Joshi, 10 months ago
Error creating bean with name 'jdbcTemplate' defined in class path resource [spring-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in class path resource [resources/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sf.ehcache.CacheManager]: Constructor threw exception; nested exception is net.sf.ehcache.CacheException: When not using standalone deployment, you need to use full install of Terracotta in order to use Terracotta Clustered Caches.
at net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.assertCustom(TerracottaClusteredInstanceHelper.java:191)
at net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:166)
at net.sf.ehcache.terracotta.TerracottaClient.createNewClusteredInstanceFactory(TerracottaClient.java:186)
at net.sf.ehcache.terracotta.TerracottaClient.createClusteredInstanceFactory(TerracottaClient.java:138)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:432)
at net.sf.ehcache.CacheManager.init(CacheManager.java:377)
at net.sf.ehcache.CacheManager.(CacheManager.java:317)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at com.sensorlogic.cache.CacheTest.main(CacheTest.java:12)

Users with the same issue

280 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.