Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Arthur Grohe
Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 7, 2013 6:24 AM
Answer

Arthur Grohe

Rank: Junior Member

Posts: 49

Join Date: November 5, 2012

Recent Posts

Happy new year!

I have developed a Portlet with 6.1.1 SDK but now a customer wants it for a 6.1.0 Liferay.
Is this in some way possible?

I rebuilt the portlet with SDK 6.1.0 but that didnt work(got several errors).
I also set the version propery to 6.1.0+ in liferay-plugin-package.properties with no effect.

The customer is trying to upgrade to 6.1.1 for almost a year now... so to wait until he finishes this is not the right strategy.

Has someone a good idea?
David H Nebinger
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 7, 2013 8:49 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5749

Join Date: September 1, 2006

Recent Posts

So what are the errors? They will indicate where things may have changed between 6.1.0 and 6.1.1 that you've targeted.

Fixing those errors should give you a working version...
Arthur Grohe
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 7, 2013 9:02 AM
Answer

Arthur Grohe

Rank: Junior Member

Posts: 49

Join Date: November 5, 2012

Recent Posts

the errors are:
 1ortal.servlet.[b]FriendlyURLServlet[/b].service(FriendlyURLServlet.java:138)
 2    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 3    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 4    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 5    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 6    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 7    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 8    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 9    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
10...


1Caused by: com.sun.faces.mgbean.[b]ManagedBeanCreationException[/b]: An error occurred performing resource injection on managed ...


and
1com.liferay.portal.kernel.bean.[b]BeanLocatorException[/b]: BeanLocator has not been set for servlet context xyz...
David H Nebinger
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 7, 2013 10:00 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5749

Join Date: September 1, 2006

Recent Posts

BeanLocator has not been set is a rather common exception, actually. There's a number of posts on the forum for how to resolve these issues...
Hitoshi Ozawa
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 7, 2013 2:07 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Have you checked the following thread?

http://www.liferay.com/community/forums/-/message_boards/message/11195275
Arthur Grohe
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 8, 2013 3:06 AM
Answer

Arthur Grohe

Rank: Junior Member

Posts: 49

Join Date: November 5, 2012

Recent Posts

Ok folks, I solved the beanlocator exception(Problem was that I renamed my Project in Eclipse, because I copied it before to not disturb the running 6.1.1 version...),
but now, when I'm trying to add the portlet to the page, I get one last exception:

 110:58:20,142 INFO  [PortalImpl:4873] [b]Current URL /poller/receive generates exception: null[/b]
 210:58:25,979 INFO  [PortalImpl:4873] Current URL /poller/receive generates exception: null
 310:58:28,426 ERROR [render_portlet_jsp:154] j[b]ava.lang.ClassNotFoundException: com.liferay.portal.service.BaseLocalService[/b]
 4    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
 5    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
 6    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
 7    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 8    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
 9    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2823)
10    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
11    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
12    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
13    at de.acocon.liferay.service.service.bean.IdeaListController.getList(IdeaListController.java:149)
14    at de.acocon.liferay.service.service.bean.IdeaListController.init(IdeaListController.java:62)
15    at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:117)
16    at com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:99)
17    at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
18    at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
19    at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
20    at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
21    at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
22    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
23    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)


Any ideas?
Arthur Grohe
RE: Get a 6.1.1 Portlet running on a 6.1.0 Liferay
January 11, 2013 2:54 AM
Answer

Arthur Grohe

Rank: Junior Member

Posts: 49

Join Date: November 5, 2012

Recent Posts

hm... no ideas yet?

Could it be that the Liferay 6.1.0 doesn't contain com.liferay.portal.service.BaseLocalService and therefore I get this error?
Or does Liferay 6.1.0 load this class other then 6.1.1 does? Or is this class in another package/location in the different versions?

Another more general question: What is the best way to get a Portlet with higher version running in a Portal with lower version?
I can think of two possibilities:
1. Download the SDK of the desired Portal-Version and replace it in the eclipse project, then rebuild and solve all erorrs.(what I did so far)
2. Just try to install the Portlet in the desired Portal and resolve all errors.(tried first of course, but got same errors)

P.S. See stackoverflow for latest infos