Details

    • Type: New Feature
    • Status: Closed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 3.1
    • Fix Version/s: 4.0.0
    • Component/s: core
    • Labels:
    • Environment:

      Eclipse Java EE IDE for Web Developers.

      Version: Indigo Service Release 1
      Build id: 20110916-0149

      Description

      i try to create a portlet using 3.1 Spring and zk pe but when i deploy on liferay portal i got this error
      Failed to load /index.zul

      Cause: Error reading 'allAccount' on type com.accounts.controller.AccountController
      org.zkoss.zel.ELException: Error reading 'allAccount' on type com.accounts.controller.AccountController
      at org.zkoss.zel.BeanELResolver.getValue(BeanELResolver.java:93)
      at org.zkoss.zel.CompositeELResolver.getValue(CompositeELResolver.java:67)
      at org.zkoss.xel.zel.XelELResolver.getValue(XelELResolver.java:71)
      at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:179)
      at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
      ...

      The project can be download from
      http://www.disprotec.com.co/files/AccountsZK.zip

        Activity

        Hide
        liferay2012 liferay2012 added a comment -

        i also got this error

        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.accounts.util.CustomHibernateDaoSupport.setSession(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)

        10:01:38,990 ERROR [SerializableSessionAttributeListener:39] org.zkoss.zk.ui.http.SimpleSession is not serializable and will prevent this session from being replicated

        Show
        liferay2012 liferay2012 added a comment - i also got this error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.accounts.util.CustomHibernateDaoSupport.setSession(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml] : Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) 10:01:38,990 ERROR [SerializableSessionAttributeListener:39] org.zkoss.zk.ui.http.SimpleSession is not serializable and will prevent this session from being replicated
        Hide
        jimmyshiau jimmyshiau added a comment - - edited

        It seems that you have misspell some package names in your applicationContext.xml file which caused the error:
        1.com.account.daoimpl.AccountDAOImpl
        2.com.account.serviceimpl.AccountServiceImpl
        3.com.account.cotroller.AccountController

        For example, it should be "com.accounts" rather than "com.account", and "cotroller" should be "controller"... you should fix all these errors and similar errors other classes.

        Show
        jimmyshiau jimmyshiau added a comment - - edited It seems that you have misspell some package names in your applicationContext.xml file which caused the error: 1.com.account.daoimpl.AccountDAOImpl 2.com.account.serviceimpl.AccountServiceImpl 3.com.account.cotroller.AccountController For example, it should be "com.accounts" rather than "com.account", and "cotroller" should be "controller"... you should fix all these errors and similar errors other classes.
        Hide
        liferay2012 liferay2012 added a comment -

        Ok yes i found the class missing but now i get this error
        10:01:38,990 ERROR [SerializableSessionAttributeListener:39] org.zkoss.zk.ui.http.SimpleSession is not serializable and will prevent this session from being replicated
        On every portlet i get that on log, i already follow this manual: http://books.zkoss.org/wiki/ZK_Installation_Guide/Setting_up_Servers/Liferay#Running_ZK_5_with_Liferay_6
        But i still get that error.
        Please help me.

        Show
        liferay2012 liferay2012 added a comment - Ok yes i found the class missing but now i get this error 10:01:38,990 ERROR [SerializableSessionAttributeListener:39] org.zkoss.zk.ui.http.SimpleSession is not serializable and will prevent this session from being replicated On every portlet i get that on log, i already follow this manual: http://books.zkoss.org/wiki/ZK_Installation_Guide/Setting_up_Servers/Liferay#Running_ZK_5_with_Liferay_6 But i still get that error. Please help me.
        Hide
        jimmyshiau jimmyshiau added a comment -

        You can add the following settings to zk.xml
        <system-config>
        <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
        </system-config>

        Show
        jimmyshiau jimmyshiau added a comment - You can add the following settings to zk.xml <system-config> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class> </system-config>
        Hide
        cor3000 cor3000 added a comment -

        obsolete: non serializable UiFactory was removed in 4.0.0

        Show
        cor3000 cor3000 added a comment - obsolete: non serializable UiFactory was removed in 4.0.0

          People

          • Assignee:
            hawk hawk
            Reporter:
            liferay2012 liferay2012
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: