com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for TestService-portletTestService-portlet

liferay.com | 3 months ago
  1. 0

    Could not parse mapping document from input stream - Forums | Liferay

    liferay.com | 1 year ago
    com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for TestService-portletTestService-portlet
  2. 0

    Could not parse mapping document from input stream - Forums | Liferay

    liferay.com | 8 months ago
    com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for TestService-portletTestService-portlet
  3. 0

    Could not parse mapping document from input stream - Community Forums | Liferay

    liferay.com | 3 months ago
    com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for TestService-portletTestService-portlet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [LPS-18176] Error in using Ext plugin (which is created using Plugin SDK 6.0) - Liferay Issues

    liferay.com | 12 months ago
    org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
  6. 0

    I have used Ext plugin to over ride the Document Library service Impl class and also the used Ext plugin to create customized hook, After service file changes, I have tried to deploy the ext war in the weblogic server, on Hot Deployment it prompts me to restart the server once to get the extension file work fine, but after the server restart, files which are already using *LocalserviceUtil and ServiceUtil file started throwing error like - *LocalServiceUtil.method is undefined, but there is no change in the signature. Error stackTrace: view.jsp:97:20: Error in "cast_result.jspf" at line 55: The method getToFileEntryId() is undefined for the type DLFileShortcut <%@ include file="/html/portlet/document_library/view_file_entries.jspf" %> view.jsp:97:20: Error in "folder_columns.jspf" at line 20: The method getSubfolderIds(List<Long>, long, long) in the type DLFolderServiceUtil is not applicable for the arguments (List<Long>, Long, long, boolean) <%@ include file="/html/portlet/document_library/view_file_entries.jspf" %> ...... Actually no changes were made in DLFolderServiceUtil class, but these files got moved to Ext plugin ext-service/src and Impl classes to ext-impl/src, I have never found this kind of issue with previous version (5.2.*) Ext files deployment. And also the other major error was, After deploying the Ext plugin, default portal war file throws bean initialization error, where i dont have any spring config files in the ext plugin, stack trace: 11:47:09,090 ERROR [ContextLoader:220] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceAdvice' defined in class path resource [META-INF/b ase-spring.xml]: Cannot resolve reference to bean 'asyncAdvice' while setting bean property 'nextMethodInterceptor'; nested exception is org.spri ngframework.beans.factory.BeanCreationException: Error creating bean with name 'asyncAdvice' defined in class path resource [META-INF/base-spring .xml]: Cannot resolve reference to bean 'threadLocalCacheAdvice' while setting bean property 'nextMethodInterceptor'; nested exception is org.spr ingframework.beans.factory.BeanCreationException: Error creating bean with name 'threadLocalCacheAdvice' defined in class path resource [META-INF /base-spring.xml]: Cannot resolve reference to bean 'bufferedIncrementAdvice' while setting bean property 'nextMethodInterceptor'; nested excepti on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bufferedIncrementAdvice' defined in class path reso urce [META-INF/base-spring.xml]: Cannot resolve reference to bean 'transactionAdvice' while setting bean property 'nextMethodInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionAdvice' defined in class path re source [META-INF/base-spring.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined i n class path resource [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'liferayHibernateSessionFactory' while setting constructo r argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFa ctory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.Hibern ateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.ja va:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086 ) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

    Liferay Issues | 5 years ago | saravanan vedachalam
    org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.DuplicateMappingException

      Duplicate class/entity mapping com.liferay.sample.model.PhotoDataBlobModel

      at org.hibernate.cfg.Configuration$MappingsImpl.addClass()
    2. Hibernate
      Configuration.buildMappings
      1. org.hibernate.cfg.Configuration$MappingsImpl.addClass(Configuration.java:3179)
      2. org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:178)
      3. org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4006)
      4. org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3998)
      5. org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3986)
      6. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398)
      7. org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375)
      7 frames
    3. Hibernate
      LocalSessionFactoryBean.buildSessionFactory
      1. org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)
      1 frame
    4. Liferay Portal Impl
      PortalHibernateConfiguration.buildSessionFactory
      1. com.liferay.portal.spring.hibernate.PortalHibernateConfiguration.buildSessionFactory(PortalHibernateConfiguration.java:64)
      1 frame
    5. Hibernate
      AbstractSessionFactoryBean.afterPropertiesSet
      1. org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
      1 frame
    6. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      9 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      2 frames
    8. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
      3 frames
    9. Liferay Portal Impl
      HotDeployImpl.fireDeployEvent
      1. com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:85)
      2. com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:85)
      3. com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:41)
      4. com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)
      5. com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
      5 frames
    10. Liferay Portal Service
      PluginContextListener.contextInitialized
      1. com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
      2. com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
      3. com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
      4. com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
      5. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
      6. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
      7. com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
      8. com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
      8 frames
    11. Glassfish Core
      ContainerBase$ContainerBackgroundProcessor.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
      5. org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1270)
      6. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
      7. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
      8. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      9. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      10. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
      11. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
      12. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
      13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
      13 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame