Foros de discusión

Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

B C, modificado hace 10 años.

Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 11 Fecha de incorporación: 18/06/13 Mensajes recientes
Hi all,

Is it possible to deploy an Ext Plugin with Maven and see changes without restarting Liferay ?

I'm able to deploy my ext plugin with "mvn liferay:deploy", but I need to restart Liferay each time I make a single change in my custom code (very painful).

I tried to use "mvn liferay:direct-deploy" after a first sucessfull deployment.

But it seems that it's stopping current Liferay context and trying to restart it, and crashing each time with this error :


16:08:48,618 WARN  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ActiveManagementCoordinator:68] A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.
16:08:49,463 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][DialectDetector:119] Determine dialect for PostgreSQL 9
16:08:49,511 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][DialectDetector:119] Found dialect org.hibernate.dialect.PostgreSQLDialect
16:08:55,630 ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ContextLoader:94] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:227)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1270)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
	... 30 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
	... 36 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
	... 40 more
Caused by: java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68)
	at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69)
	at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
	... 42 more
Caused by: java.lang.ClassCastException: com.liferay.portal.xml.NamespaceImpl cannot be cast to com.liferay.portal.xml.NamespaceImpl
	at com.liferay.portal.xml.SAXReaderImpl.createQName(SAXReaderImpl.java:302)
	at com.liferay.portal.kernel.xml.SAXReaderUtil.createQName(SAXReaderUtil.java:95)
	at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71)
	at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51)
	... 57 more
mars 25, 2014 4:08:55 PM org.apache.catalina.core.StandardContext listenerStart
Grave: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) Ã&nbsp; l'instance de classe d'écoute (listener) com.liferay.portal.spring.context.PortalContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:227)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1270)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#5aac91d6' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
	... 30 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#f042b25' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
	... 36 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
	... 40 more
Caused by: java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68)
	at com.liferay.portal.webdav.methods.MethodFactoryImpl.addMethod(MethodFactoryImpl.java:69)
	at com.liferay.portal.webdav.methods.MethodFactoryImpl.<init>(MethodFactoryImpl.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
	... 42 more
Caused by: java.lang.ClassCastException: com.liferay.portal.xml.NamespaceImpl cannot be cast to com.liferay.portal.xml.NamespaceImpl
	at com.liferay.portal.xml.SAXReaderImpl.createQName(SAXReaderImpl.java:302)
	at com.liferay.portal.kernel.xml.SAXReaderUtil.createQName(SAXReaderUtil.java:95)
	at com.liferay.portal.webdav.methods.BasePropMethodImpl.createQName(BasePropMethodImpl.java:71)
	at com.liferay.portal.webdav.methods.BasePropMethodImpl.<clinit>(BasePropMethodImpl.java:51)
	... 57 more

mars 25, 2014 4:08:55 PM org.apache.catalina.core.StandardContext startInternal
Grave: Error listenerStart
mars 25, 2014 4:08:55 PM org.apache.catalina.core.StandardContext startInternal
Grave: Erreur de démarrage du contexte [] suite aux erreurs précédentes
mars 25, 2014 4:08:56 PM org.apache.catalina.core.ApplicationContext log
Infos: Closing Spring root WebApplicationContext
mars 25, 2014 4:08:56 PM org.apache.catalina.core.StandardContext reload
Infos: Le rechargement de ce contexte est terminé</clinit></init></clinit></init>


Thanks,
Lorina Grosu, modificado hace 10 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 2 Fecha de incorporación: 11/10/13 Mensajes recientes
I have the same problem when I am trying to do side by side deploy in Weblogic.
Does anyone have any idea how to solve this?

Thanks


####<15.04.2014 19:25:16 EEST> <Warning> <HTTP> <rdc0625> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <6ca0e51329000115:-aafafa6:145663071ab:-8000-0000000000000002> <1397579116771> <BEA-101162> <User defined listener com.liferay.portal.spring.context.PortalContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#3324c93f' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#3324c93f' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#3324ca36' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#3324ca36' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError.
Miro Szpyro, modificado hace 9 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 19 Fecha de incorporación: 7/05/14 Mensajes recientes
I have te same problem!

https://www.liferay.com/community/forums/-/message_boards/message/37532686

How you resolve that problem ?
Miro Szpyro, modificado hace 9 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 19 Fecha de incorporación: 7/05/14 Mensajes recientes
The problem is very easy.

The problem is with closed connections. When closing the server are not closed all the connections and when starting have open connections and can't open new. But all files is upload to server. The problem is only with restart server.

Resolve :
push the direct deploy and when we have a errors manualy shutdown and startup server. It's all.... ;-)
Holden Shao, modificado hace 9 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 11 Fecha de incorporación: 20/12/13 Mensajes recientes
shutdown and restart server is not a good solution, if there are other applications deployed on the server, it will impact others and let other applications not available, it should be only shutdown liferay and restart liferay. But if only stop liferay, can not do the restart liferay well, got the above exceptions.

My env is weblogic.
Miro Szpyro, modificado hace 9 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 19 Fecha de incorporación: 7/05/14 Mensajes recientes
if direct deploy working fine, before version. The direct deploy working that :
1. delete/ copy files
2. shutdown
3. startup

Here we see the tomcat 6.2 or liferay not closed all connections and we have to manual restart.
Reddeppa Kollu, modificado hace 7 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

New Member Mensajes: 4 Fecha de incorporación: 9/07/16 Mensajes recientes
I am having problem with Liferay on Weblogic 12.1.3

We have deployed Liferay 6.2 GA6 CE Version , configured for the first time. then i have deployed my hooks, and tried to use, but no luck
then i tried to redeploy it since then it is throwing Errors and not coming up. i tried to clean restart but same Error any help would really appreciate.

Originial Error is below
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Caused By: java.lang.ClassCastException: com.liferay.portal.xml.NamespaceImpl cannot be cast to com.liferay.portal.xml.NamespaceImpl


Begins with below Error



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#154e4578' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#154e4578' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#71c9da02' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryImpl#71c9da02' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.webdav.methods.MethodFactoryImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
thumbnail
Andy Wu, modificado hace 7 años.

RE: Direct Deploy with Maven for an Ext Plugin (6.2-CE-GA2)

Regular Member Mensajes: 195 Fecha de incorporación: 5/05/15 Mensajes recientes
hey Reddeppa Kollu , are you using liferay-ide to develop ? can your describe your steps to reproduce the error and we can try to reproduce.
also , if you are using ide , can you try to just use sdk to develop and deploy and see if it still has this error ?