Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mª Luz Mateo
MultiVMPool problem
January 19, 2011 1:35 AM
Answer

Mª Luz Mateo

Rank: Junior Member

Posts: 36

Join Date: September 22, 2010

Recent Posts

Hello everybody,

I am having some problems with MultiVMPool. I'm trying to deploy many liferay portals in the same app server, jboss. I created a war file for each portal. After many changes I got three portals running properly, two of them are LR 5.2.3 and the other one is LR 6.0.5.

But I can't get two LR 6.0.5 running because I get this error:

  1
  211:04:11,708 ERROR [ContextLoader] Context initialization failed
  3org.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]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
  4    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
  5    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
  6    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
  7    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
  8    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  9    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 10    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 11    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 12    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 13    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 14    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
 15    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 16    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 17    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 18    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 19    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 20    at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:47)
 21    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
 22    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
 23    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
 24    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
 25    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
 26    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
 27    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
 28    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 29    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 30    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 31    at java.lang.reflect.Method.invoke(Method.java:597)
 32    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
 33    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
 34    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 35    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 36    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
 37    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
 38    at $Proxy38.start(Unknown Source)
 39    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
 40    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
 41    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
 42    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
 43    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
 44    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 45    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
 46    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 47    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 48    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 49    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 50    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 51    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 52    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
 53    at org.jboss.system.ServiceController.start(ServiceController.java:460)
 54    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
 55    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
 56    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
 57    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
 58    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
 59    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
 60    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
 61    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
 62    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
 63    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
 64    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 65    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 66    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 67    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 68    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 69    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 70    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 71    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
 72    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
 73    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
 74    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
 75    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
 76    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
 77    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 78    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 79    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 80    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 81    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 82    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 83    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 84    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
 85    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
 86    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
 87    at org.jboss.Main.boot(Main.java:221)
 88    at org.jboss.Main$1.run(Main.java:556)
 89    at java.lang.Thread.run(Thread.java:662)
 90Caused by: 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]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
 91    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
 92    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
 93    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 94    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 95    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 96    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 97    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 98    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 99    ... 85 more
100Caused by: net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
101    at net.sf.ehcache.management.ManagementService.init(ManagementService.java:167)
102    at com.liferay.portal.cache.ehcache.EhcachePortalCacheManager.afterPropertiesSet(EhcachePortalCacheManager.java:57)
103    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
104    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
105    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
106    at java.lang.reflect.Method.invoke(Method.java:597)
107    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
108    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
109    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
110    ... 92 more
111Caused by: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
112    at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:756)
113    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:233)
114    at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
115    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
116    at java.lang.reflect.Method.invoke(Method.java:597)
117    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
118    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
119    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
120    at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
121    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
122    at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
123    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
124    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
125    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
126    at java.security.AccessController.doPrivileged(Native Method)
127    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
128    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
129    at com.liferay.portal.kernel.jmx.MBeanRegistry.register(MBeanRegistry.java:63)
130    at com.liferay.portal.kernel.jmx.RegistryAwareMBeanServer.registerMBean(RegistryAwareMBeanServer.java:279)
131    at net.sf.ehcache.management.ManagementService.registerCacheManager(ManagementService.java:176)
132    at net.sf.ehcache.management.ManagementService.init(ManagementService.java:157)
133    ... 100 more
13411:04:11,713 ERROR [[/myportal2]] Excepción enviando evento inicializado de contexto a instancia de escuchador de clase com.liferay.portal.spring.context.PortalContextLoaderListener
135org.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]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
136    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
137    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
138    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
139    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
140    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
141    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
142    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
143    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
144    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
145    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
146    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
147    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
148    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
149    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
150    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
151    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
152    at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:47)
153    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
154    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
155    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
156    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
157    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
158    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
159    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
160    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
161    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
162    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
163    at java.lang.reflect.Method.invoke(Method.java:597)
164    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
165    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
166    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
167    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
168    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
169    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
170    at $Proxy38.start(Unknown Source)
171    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
172    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
173    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
174    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
175    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
176    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
177    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
178    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
179    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
180    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
181    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
182    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
183    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
184    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
185    at org.jboss.system.ServiceController.start(ServiceController.java:460)
186    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
187    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
188    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
189    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
190    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
191    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
192    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
193    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
194    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
195    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
196    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
197    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
198    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
199    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
200    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
201    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
202    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
203    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
204    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
205    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
206    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
207    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
208    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
209    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
210    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
211    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
212    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
213    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
214    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
215    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
216    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
217    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
218    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
219    at org.jboss.Main.boot(Main.java:221)
220    at org.jboss.Main$1.run(Main.java:556)
221    at java.lang.Thread.run(Thread.java:662)
222Caused by: 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]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
223    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
224    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
225    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
226    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
227    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
228    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
229    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
230    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
231    ... 85 more
232Caused by: net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
233    at net.sf.ehcache.management.ManagementService.init(ManagementService.java:167)
234    at com.liferay.portal.cache.ehcache.EhcachePortalCacheManager.afterPropertiesSet(EhcachePortalCacheManager.java:57)
235    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
236    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
237    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
238    at java.lang.reflect.Method.invoke(Method.java:597)
239    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
240    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
241    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
242    ... 92 more
243Caused by: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=liferay-multi-vm already registered.
244    at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:756)
245    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:233)
246    at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
247    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
248    at java.lang.reflect.Method.invoke(Method.java:597)
249    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
250    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
251    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
252    at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
253    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
254    at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
255    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
256    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
257    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
258    at java.security.AccessController.doPrivileged(Native Method)
259    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
260    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
261    at com.liferay.portal.kernel.jmx.MBeanRegistry.register(MBeanRegistry.java:63)
262    at com.liferay.portal.kernel.jmx.RegistryAwareMBeanServer.registerMBean(RegistryAwareMBeanServer.java:279)
263    at net.sf.ehcache.management.ManagementService.registerCacheManager(ManagementService.java:176)
264    at net.sf.ehcache.management.ManagementService.init(ManagementService.java:157)
265    ... 100 more
26611:04:11,736 ERROR [StandardContext] Error listenerStart
26711:04:11,736 ERROR [StandardContext] Falló en arranque del Contexto [/myportal2] debido a errores previos
26811:04:11,737 INFO  [[/myportal2]] Closing Spring root WebApplicationContext
26911:04:11,747 INFO  [HotDeployUtil] Initializing hot deploy manager 8734348
27011:04:11,747 INFO  [HotDeployUtil] Initializing hot deploy manager 31105012
27111:04:11,813 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/myportal2 state=Create mode=Manual requiredState=Installed
272org.jboss.deployers.spi.DeploymentException: URL file:/home/mlmateo/dev/war/jboss-5.1.0.GA/server/default/deploy/myportal2.war/ deployment failed
273    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
274    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
275    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
276    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
277    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
278    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
279    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
280    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
281    at java.lang.reflect.Method.invoke(Method.java:597)
282    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
283    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
284    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
285    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
286    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
287    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
288    at $Proxy38.start(Unknown Source)
289    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
290    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
291    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
292    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
293    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
294    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
295    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
296    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
297    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
298    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
299    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
300    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
301    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
302    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
303    at org.jboss.system.ServiceController.start(ServiceController.java:460)
304    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
305    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
306    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
307    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
308    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
309    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
310    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
311    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
312    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
313    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
314    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
315    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
316    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
317    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
318    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
319    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
320    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
321    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
322    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
323    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
324    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
325    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
326    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
327    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
328    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
329    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
330    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
331    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
332    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
333    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
334    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
335    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
336    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
337    at org.jboss.Main.boot(Main.java:221)
338    at org.jboss.Main$1.run(Main.java:556)
339    at java.lang.Thread.run(Thread.java:662)
34011:04:11,822 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/home/mlmateo/dev/war/jboss-5.1.0.GA/server/default/deploy/myportal2.war/ state=PreReal mode=Manual requiredState=Real
341org.jboss.deployers.spi.DeploymentException: URL file:/home/mlmateo/dev/war/jboss-5.1.0.GA/server/default/deploy/myportal2.war/ deployment failed
342    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
343    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
344    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
345    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
346    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
347    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
348    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
349    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
350    at java.lang.reflect.Method.invoke(Method.java:597)
351    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
352    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
353    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
354    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
355    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
356    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
357    at $Proxy38.start(Unknown Source)
358    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
359    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
360    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
361    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
362    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
363    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
364    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
365    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
366    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
367    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
368    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
369    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
370    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
371    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
372    at org.jboss.system.ServiceController.start(ServiceController.java:460)
373    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
374    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
375    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
376    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
377    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
378    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
379    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
380    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
381    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
382    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
383    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
384    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
385    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
386    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
387    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
388    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
389    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
390    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
391    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
392    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
393    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
394    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
395    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
396    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
397    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
398    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
399    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
400    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
401    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
402    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
403    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
404    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
405    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
406    at org.jboss.Main.boot(Main.java:221)
407    at org.jboss.Main$1.run(Main.java:556)
408    at java.lang.Thread.run(Thread.java:662)
40911:04:11,921 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
410
411DEPLOYMENTS IN ERROR:
412  Deployment "vfsfile:/home/mlmateo/dev/war/jboss-5.1.0.GA/server/default/deploy/myportal2.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/home/mlmateo/dev/war/jboss-5.1.0.GA/server/default/deploy/myportal2.war/ deployment failed


I really need to get more than one LR 6.0.5 working. Any idea?? I would apreciate any kind of help, because I don't know how to solve the problem.
Thanks in advance.
Mika Koivisto
RE: MultiVMPool problem
January 18, 2011 4:45 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1505

Join Date: August 7, 2006

Recent Posts

Try setting following property in you portal-ext.properties
1ehcache.portal.cache.manager.jmx.enabled=false


It looks like it's trying to register the same JXM bean twice.
Mª Luz Mateo
RE: MultiVMPool problem
January 19, 2011 1:21 AM
Answer

Mª Luz Mateo

Rank: Junior Member

Posts: 36

Join Date: September 22, 2010

Recent Posts

That's it. You hit the nail on the head.
I'd never have worked it out without your help.
Thanks a milion Mika!!
Chris A
RE: MultiVMPool problem
February 6, 2012 6:21 AM
Answer

Chris A

Rank: New Member

Posts: 2

Join Date: January 23, 2012

Recent Posts

Is there anything else that could fix this? I'm having the same problem. I tried adding that setting to portal-ext.properties and it didn't change anything.

This error is appearing when trying to create a Web Service, it appears in the command prompt after "ant build-service" or "ant build-wsdd"

Thanks