English 中文(简体)
grails Portlet 闪Scope
原标题:grails portlet FlashScope

I am using def liferay_portlet_private_session_attributes = false in grails portlet for liferay . This i was using to share session values with other portlet .

session.getAttribute("orgid", PortletSession.APPLICATION_SCOPE) 

我在建筑时正在发现这一错误,每次重新修饰。

Caused by: java.lang.ClassCastException: org.codehaus.groovy.grails.web.servlet.GrailsFlashScope cannot be cast to org.codehaus.groovy.grails.web.servlet.FlashScope

如果一对.和 log,它就好。 但是,我无法理解如何保持同一环境。

请允许我告诉我是否有任何固定办法。

最佳回答

正如通过电子邮件讨论的那样,我认为这是一个“洛纳德”问题。 一架GrailsFlashScope型物体(载在一艘港口)正试图投向闪Scope(载在第二号港口)。

即便是铁路公司 闪电 范围 闪光Scope,由两个不同类别装载器装载的闪光Scope级不被视为平等,将扔下CCE。

我认为,确定这种档案的唯一途径是将铁路——*.jar档案(例如,铁路——网关)移至某种共享的垃圾箱(而不是确定在生命线内),并将这些档案从动物粪便档案中删除。

che

Lee

问题回答

暂无回答




相关问题
grails + gwt request handling via controllers

I am new to gwt. I am trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really thankful if ...

Error loading the grails gwt module xml

I ve installed the plugin from this article by Peter http://www.cacoethes.co.uk/blog/groovyandgrails/the-command-pattern-w.... While compile time its not able to find the module file which is present ...

Sorting Objects Based on Custom Domain Class Methods

I have a domain class, in which I ve defined some methods which give the object a score based on different algorithms (eg. popularity). I now want to retrieve a list of these objects sorted by one of ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

Hibernate/GORM: collection was not processed by flush()

I have an integration test in my Grails application that fails when I try to save an entity of type Member invitingMember.save(flush: true) This raises the following exception org.hibernate....

热门标签