Details

      Description

      I'm try to implement two different Eclipse portlets sharing the same data I build using your service builder. I would like my services that I built using your service builder to be localized inside a jar file that way I can reference them in other portlets. I would like to share my data between two or more portlets I create. The only way I was able to do this is by copy and pasting a service.xml that are exactly identical. Then I run service builder on each. I then can use the same data inside the database. Unfortunately after I deploy both portlets and refresh:

      Caused by: java.lang.IllegalStateException: The com.thermalstrategies.timesheet.model.impl.TimesheetImpl Cache is not alive.
      at net.sf.ehcache.Cache.checkStatus(Cache.java:2438)
      at net.sf.ehcache.Cache.get(Cache.java:1541)
      at com.liferay.portal.cache.ehcache.ModifiableEhcacheWrapper.get(ModifiableEhcacheWrapper.java:128)
      at net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.get(EhcacheTransactionalDataRegion.java:105)
      at net.sf.ehcache.hibernate.strategy.AbstractReadWriteEhcacheAccessStrategy.putFromLoad(AbstractReadWriteEhcacheAccessStrategy.java:90)
      at net.sf.ehcache.hibernate.nonstop.NonstopAwareEntityRegionAccessStrategy.putFromLoad(NonstopAwareEntityRegionAccessStrategy.java:180)
      at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:195)
      at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982)
      at org.hibernate.loader.Loader.doQuery(Loader.java:857)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
      at org.hibernate.loader.Loader.doList(Loader.java:2542)
      at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
      at org.hibernate.loader.Loader.list(Loader.java:2271)
      at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:940)
      at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
      at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
      at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
      at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:86)

      I may be going about it the wrong way.

        Attachments

          Activity

            People

            • Assignee:
              mika.koivisto Mika Koivisto
              Reporter:
              stuartmurry93@gmail.com Stuart Murry (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 24 weeks, 2 days ago

                Packages

                Version Package
                6.1.1 CE GA2