Foren

6.2 Installation on Tomcat 7 hibernate error

Timo Kurowski, geändert vor 9 Jahren.

6.2 Installation on Tomcat 7 hibernate error

Regular Member Beiträge: 240 Beitrittsdatum: 24.06.13 Neueste Beiträge
Hello everyone,

i have installed liferay 6.2 GA2 on an existing Tomcat7 Server using the guide from Liferay. After deploying the .war file, i get the following error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.cache.MultiVMPool' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.kernel.cache.MultiVMPortalCacheManager' while setting bean property 'portalCacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.cache.MultiVMPortalCacheManager' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#1acdfd33' of type [com.liferay.portal.cache.ehcache.EhcachePortalCacheManager] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#1acdfd33' defined in class path resource [META-INF/util-spring.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm-clustered
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)



Updated. Why do i get InstanceAlreadyExistsException when i only have on instance installed?
thumbnail
Meera Prince, geändert vor 9 Jahren.

RE: 6.2 Installation on Tomcat 7 hibernate error

Liferay Legend Beiträge: 1111 Beitrittsdatum: 08.02.11 Neueste Beiträge
HI
you may missed some jar files in the class path..

Make sure you need to place all liferay dependecy jar files in the global class path.

tip to do this:

Download liferay tomcat bundle and extract it.
go to tomcat7/lib/ext

now same create ext directory in your existed tomacat in lib existedTomcat/lib/ext then copy all jar files from bundle ext and place in your exitedTomcat/lib/ext

Now copy all jar files from bundleTomcat/lib to existedTomcat/lib

Now open bundleTomcat/conf/catalina.properties file have look into some proeprties like
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext,${catalina.home}/lib/ext/*.jar

LIke same replicate in your existedTomcat/conf/catalina.properties file.

Same you can find any other server configuration missing in your existed Tomcat when compare with liferay bundled tomcat

Regards,
Meera Prince