Vaadin 7 control panel problem with Liferay 6.2

I just downloaded the Vaadin Control Panel for Liferay from the Liferay marketplace because as i read in this page https://vaadin.com/blog/-/blogs/vaadin-control-panel-for-liferay this should be the easiest way to get Liferay 6.2 or previous to support Vaadin 7, but when i drop the .war in the liferay deploy directory i receive this log:

11:30:35,567 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]
[AutoDeployDir:204]
Processing liferay-vaadin-plugin-web-1.1.0.0.war
11:30:35,574 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]
[PortletAutoDeployListener:79]
Copying portlets for C:\Program Files\Java\liferay\project\hospice\liferay-portal-6.2.0-ce-ga1\deploy\liferay-vaadin-plugin-web-1.1.0.0.war
11:30:35,628 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]
[BaseDeployer:859]
Deploying liferay-vaadin-plugin-web-1.1.0.0.war
11:30:35,682 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]
[AutoDeployDir:220]
com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.deploy.auto.AutoDeployException: liferay-vaadin-plugin-web-1.1.0.0.war does not support this version of Liferay
com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.deploy.auto.AutoDeployException: liferay-vaadin-plugin-web-1.1.0.0.war does not support this version of Liferay
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:212)
at com.liferay.portal.deploy.auto.ThreadSafeAutoDeployer.autoDeploy(ThreadSafeAutoDeployer.java:36)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:88)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:211)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:275)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:58)
Caused by: com.liferay.portal.kernel.deploy.auto.AutoDeployException: liferay-vaadin-plugin-web-1.1.0.0.war does not support this version of Liferay
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:898)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:209)
… 6 more
11:30:35,703 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]
[AutoDeployDir:224]
Add liferay-vaadin-plugin-web-1.1.0.0.war to the blacklist

How can i fix this and get a right version of Vaadin control panel for Liferay 6.2? Can i have some help please?

I fixed the control panel problem with liferay 6.2 downloading another version of the plugin suggested in one of the comments here:

https://vaadin.com/blog/-/blogs/vaadin-control-panel-for-liferay?_33_delta=20&_33_keywords=&_33_advancedSearch=false&_33_andOperator=true&cur=2

but now there’s another problem.

I installed the control panel and now i can use it but after i specified the additional dependencies with ipc for liferay 2.0.0 (https://vaadin.com/directory#addon/vaadin-ipc-for-liferay) and recompiled the widgeset and redeployed my portlets i still cannot see the portlet i’m trying to develop when i go for it with my browser. It seems it cannot properly visualize the layout.

If i try to work with Vaadin 7.0.7 there’s no error log, but with Vaadin 7.1.+ i receive this: (full log in the attached txt)

ERROR [http-bio-8080-exec-4]
[PortletServlet:116]
javax.portlet.PortletException: com.vaadin.server.ServiceException: java.lang.ClassCastException: com.vaadin.addon.ipcforliferay.LiferayIPC cannot be cast to com.vaadin.ui.Component
javax.portlet.PortletException: com.vaadin.server.ServiceException: java.lang.ClassCastException: com.vaadin.addon.ipcforliferay.LiferayIPC cannot be cast to com.vaadin.ui.Component

It seems the problem might be in this line

VerticalLayout layout = new VerticalLayout();
layout.addComponent(liferayipc);

wich i had to modify in

VerticalLayout layout = new VerticalLayout();
layout.addComponent((Component) liferayipc);

because of this error:

The method addComponent(Component) in the type AbstractOrderedLayout is not applicable for the
arguments (LiferayIPC)

Please someone help me.

13513.txt (26.8 KB)

I’m also stuck here. It seems the version 2.0.0 if maven dependency vaadin-ips-for-liferay is not compatible with Vaadin 7.
But it’s described to do so in chapter 12.7.2 in the book of vaadin.
So is there probably a newer version of the add-on to use with Vaadin 7?

This is a good hint:
“Vaadin 7 not supported” here: https://vaadin.com/directory#addon/liferayipc

Too bad :frowning:

So we have to use version 6?