Basic Widgetset Compilation (for Liferay) Problem

Hi everyone,

I’m in the middle of a migration from vaadin 6 to 7. Our application runs within liferay and we’re at the point where we need to recompile our widgetset. We used handle this via the liferay control panel but the functionality does not currently exist for vaadin 7 (I have tried the latest version of the project and it’s not working well) so I’m attempting to compile from the command line.

This is what I’m using:

java -Dgwt.usearchives=false -Djava.awt.headless=true -Xss8M -Xmx512M -XX:MaxPermSize=512M
-classpath […]
/vaadin-client-compiler-7.0.3.jar
:[…]
/vaadin-client-compiled-7.0.3.jar
:[…]
/vaadin-client-7.0.3.jar
:[…]
/vaadin-shared-deps-1.0.2.jar
:[…]
/vaadin-themes-7.0.3.jar
:[…]
/vaadin-theme-compiler-7.0.3.jar
:[…]
ant.jar
:[…]
widgetset
com.google.gwt.dev.Compiler -workDir ./tmp -logLevel DEBUG -war […output…]
/widgetset -localWorkers 8 com.vaadin.portal.gwt.PortalDefaultWidgetSet

My module xml file looks like this:

The commented widgetsets above are the components we need to compile. All of which support Vaadin 7. When running this, I get the following types of errors:


Compiling…
Compilation completed in 0.00 seconds
Added 0 units to cache since last cleanup.
Validating units:
Errors in ‘com/google/gwt/canvas/client/Canvas.java’
Line 32: The hierarchy of the type Canvas is inconsistent
Errors in ‘com/google/gwt/cell/client/AbstractCell.java’
Line 22: The import com.google.gwt.safehtml.shared.SafeHtmlBuilder cannot be resolved
Line 120: SafeHtmlBuilder cannot be resolved to a type
Line 136: SafeHtmlBuilder cannot be resolved to a type
Line 136: SafeHtmlBuilder cannot be resolved to a type

Followed by:
Compilation unit ‘com/google/gwt/aria/client/AlertdialogRole.java’ is removed due to invalid reference(s):
com.google.gwt.aria.client.AlertRole
com.google.gwt.aria.client.DialogRole
Compilation unit ‘com/google/gwt/aria/client/LandmarkRole.java’ is removed due to invalid reference(s):
com.google.gwt.aria.client.RegionRole
Compilation unit ‘com/google/gwt/aria/client/ListRole.java’ is removed due to invalid reference(s):

Followed by:
Finding entry point classes
[ERROR]
Errors in ‘com/vaadin/client/ApplicationConfiguration.java’
[ERROR]
Line 38: The import com.vaadin.shared cannot be resolved
[ERROR]
Line 39: The import com.vaadin.shared cannot be resolved
[ERROR]
Line 235: ApplicationConstants cannot be resolved
[ERROR]
Line 329: ApplicationConstants cannot be resolved
[ERROR]
Line 350: ApplicationConstants cannot be resolved
[ERROR]
Line 351: UIConstants cannot be resolved
Checked 1 dependencies for errors.
[ERROR]
Unable to find type ‘com.vaadin.client.ApplicationConfiguration’
[ERROR]
Hint: Previous compiler errors may have made this type unavailable
[ERROR]
Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

Any insight would be appreciated. I’ve spent almost 2 days on this and am seemingly no closer to success!

Thank you,

Mark

Did you find a solution? I’m currently trying to get a vaadin7 portlet working in liferay 6.2. I was able to compile the widgetsets manually w/o the control panel but when I click the button in my vaadin portlet I get “UIDL could not be read from server.”

package com.axpm.myvaadintest;

import javax.servlet.annotation.WebServlet;
import com.vaadin.addon.ipcforliferay.LiferayIPC;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings(“serial”)
@Theme(“reindeer”)
public class MyvaadintestUI extends UI {
@WebServlet(value = {“/myvaadintest/", "/VAADIN/”, “/*”}, asyncSupported = true)

@VaadinServletConfiguration(productionMode = false, ui = MyvaadintestUI.class)
public static class Servlet extends VaadinServlet {
}

@Override
protected void init(VaadinRequest request) {
	//LiferayIPC liferayipc = new LiferayIPC();
	final VerticalLayout layout = new VerticalLayout();
	layout.setMargin(true);
	setContent(layout);
	//layout.addComponent(new Label("Thank you for clicking"));
	Button button = new Button("Click me test");
	button.addClickListener(new Button.ClickListener() {
		public void buttonClick(ClickEvent event) {
			//Label label = new Label("Hello World!");
			layout.addComponent(new Label("Thank you for clicking"));
		}
	});
	layout.addComponent(button);
}

}