Vaadin Control Panel for Liferay - Deploy Problems

Hi,

I’m trying to use the Vaadin Control Panel for Liferay but I’m having problems installing it. In my Liferay 6 installation, I install the vaadin-controlpanel-for-liferay.war. When I add the portlet to a page to begin using it, the portlet shows that some jar files are missing. Here’s the output of the “Settings” area:
[b]

Vaadin Jar Version

6.4.10
GWT Jar Locations

gwt-dev.jar NOT FOUND in /C:/Program Files/Tomcat/apache-tomcat-6.0.32/webapps/ROOT//WEB-INF/vaadin/gwt/2.0.4
gwt-user.jar NOT FOUND in /C:/Program Files/Tomcat/apache-tomcat-6.0.32/webapps/ROOT//WEB-INF/vaadin/gwt/2.0.4

Active Widget Set

com.vaadin.portal.gwt.PortalDefaultWidgetSet
Add-on Directory

/C:/Program Files/Tomcat/apache-tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/
Select Add-ons

Vaadin add-ons not found from the add-on directory.
Other Dependencies

none
[/b]

The installation instructions: http://vaadin.com/directory#addon/vaadin-control-panel-for-liferay
say that I only need to drop the war into the deploy directory, but it looks like I need to do something else (i.e. manually add the missing jars??).
Any suggestions?

What is the content of directory C:/Program Files/Tomcat/apache-tomcat-6.0.32/webapps/ROOT//WEB-INF/vaadin/gwt/ ? Is anything there?

There should be a link [Download GWT jars]
directly underneath the NOT FOUND -warnings, and clicking that should download the jars automatically to the correct folder (assuming you are using the newest version of Vaadin Control Panel for Liferay). If that doesn’t work you can also download the jars directly from
here
.

the only thing in C:/Program Files/Tomcat/apache-tomcat-6.0.32/webapps/ROOT/WEB-INF/vaadin/gwt/ was another folder “2.0.4”, which was empty.
I saw that the Vaadin version was out of date (6.4.10), so I dropped a recent 6.6.x version in C:\Program Files\Tomcat\apache-tomcat-6.0.32\webapps\ROOT\WEB-INF\lib. Then, after a server bounce, the control panel was looking for the 4 dependent jars for Vaadin 6.6.x (now it’s looking for them in “2.3.0”), so I downloaded the missing jars (thanks for the link, Anna), and now I’m able to use the control panel and compile widget sets for addons.
Thanks for the help!

I tried the link you suggested, but I kept getting connection errors (I can’t remember exactly the error message).

I think the problem is that I’m in an environment that is restricted by a proxy server and I don’t know how to setup Liferay to use the proxy instead of a direct network connection. I get these every time my server starts up:

19:07:46,583 ERROR [PluginPackageUtil:1127]
Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
19:07:56,584 ERROR [PluginPackageUtil:1127]
Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
19:08:06,584 WARN [PluginPackageUtil:312]
Unable to communicate with repository http://plugins.liferay.com/official
19:08:16,584 WARN [PluginPackageUtil:312]
Unable to communicate with repository http://plugins.liferay.com/community

Any ideas how to fix this possibly proxy-related problem?

By the way, downloading the jars directly worked just fine and fixed my problem for the control panel…thanks!

This post might do the trick for your proxy needs: http://www.liferay.com/community/forums/-/message_boards/message/1281576

thanks, I added some proxy settings and it helped, but I think there’s a bug in Liferay that is out of scope for this forum…
the error I get now is:

22:07:29,334 ERROR [PluginPackageUtil:1127]
Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to download file http://plugins.liferay.com/official/liferay-plugin-repository.xml because of response code 407
22:07:29,334 ERROR [PluginPackageUtil:1127]
Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to download file http://plugins.liferay.com/community/liferay-plugin-repository.xml because of response code 407
22:07:29,350 ERROR [PluginPackageUtil:316]
Unable to download file http://plugins.liferay.com/official/liferay-plugin-repository.xml because of response code 407
22:07:29,803 ERROR [PluginPackageUtil:316]
Unable to download file http://plugins.liferay.com/community/liferay-plugin-repository.xml because of response code 407

when I get around to it, I may post this issue on the Liferay forums…

If you want to update Vaadin version it’s not enough to update the vaadin.jar, you also need to update the themes that should be in C:\Program Files\Tomcat\apache-tomcat-6.0.32\webapps\ROOT\html\VAADIN\themes (no need to add those themes that aren’t already there, just update the ones that you already have - but don’t touch the VAADIN\ControlPanel\themes, those are for the Control Panel’s bundled Vaadin version and no other portlet uses them). And like you said, the newer version uses newer GWT, but if you already downloaded all four jars to 2.3.0 you should be safe on that account.

I don’t have any suggestions on how the fix the proxy problem, sorry.

thanks for the tip…what do I need to do to update the themes?
It looks like all the themes are in the vaadin.jar … do I just extract those to C:\Program Files\Tomcat\apache-tomcat-6.0.32\webapps\ROOT\html\VAADIN\themes ??

Yes, Vaadin 6.6.2 and later JARs contain all the necessary standard themes so you don’t need a separate package. Keep any own themes you might have in VAADIN/themes but replace standard ones with the versions in the JAR.

Then recompile the widgetset if not already done with the new Vaadin version.