Error with Invient Charts inside Liferay Portlets with Vaadin

Hi everyone,

I try to use Invient Charts(0.8.6) inside my Vaadin(6.7.1) portlets on Liferay (6.0.1). When i copy the demo application inside a portlet i got the following exception on browser:

Can anyone help me please ?

Thanks,
Kod



Portlet code(just the copy of invient demo)

public class ChartsVaadinApplication extends com.vaadin.Application {

    private static final long serialVersionUID = 1L;

    private static Logger logger = Logger.getLogger(ChartsVaadinApplication.class.getName());

    @Override
    public void init() {

        Window window = new Window();
        setTheme("chartdemo");
        window.setSizeFull();
        setMainWindow(window);
        InvientChartsConfig chartConfig = new InvientChartsConfig();
        chartConfig.getGeneralChartConfig().setType(InvientCharts.SeriesType.BAR);
        InvientChartsConfig.BarConfig barCfg = new InvientChartsConfig.BarConfig();
        barCfg.setDataLabel(new InvientChartsConfig.DataLabel());
        barCfg.setColor(new com.invient.vaadin.charts.Color.RGB(0, 255, 0));
        InvientCharts.XYSeries seriesData = new InvientCharts.XYSeries("Test", InvientCharts.SeriesType.BAR, barCfg);
        seriesData.addPoint(new InvientCharts.DecimalPoint(seriesData, 107));
        InvientCharts chart = new InvientCharts(chartConfig);
        chart.addSeries(seriesData);
        window.addComponent(chart);

        setMainWindow(window);

    }
}



My conf files inside WEB-INF:


liferay-display.xml

<?xml version="1.0"?>
<display>
    <category name="Orange" >
        <category name="TestArda" >
            <portlet id="charts-vaadin" />
        </category>
    </category>
</display>


liferay-portlet.xml

<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 4.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_4_2_0.dtd">
<liferay-portlet-app>
    <portlet>
        <portlet-name>charts-vaadin</portlet-name>
        <instanceable>true</instanceable>
        <ajaxable>false</ajaxable>
    </portlet>
</liferay-portlet-app>


portlet.xml

	<!-- Charts VAADIN PORTLETS -->
	<portlet>
		<portlet-name>charts-vaadin</portlet-name>
		<display-name>Manage Patients with Vaadin</display-name>
        <portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
        <init-param>
            <name>application</name>
            <value>com.obs.agnos.portlets.testarda.ChartsVaadinApplication</value>

            <!-- Must match the servlet URL mapping in web.xml.
            <value>portletexample</value>    -->
        </init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<supported-locale>en</supported-locale>
		<supported-locale>fr</supported-locale>

        <!-- Not always required but Liferay uses these. -->
        <portlet-info>
            <title>Charts Vaadin</title>
            <short-title>Charts Vaadin</short-title>
        </portlet-info>
	</portlet>


web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:web="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	version="2.4">
	<description></description>
	<display-name>Orange M2M Demo portlets with VAADIN</display-name>

    <context-param>
        <description>Vaadin production mode</description>
        <param-name>productionMode</param-name>
        <param-value>false</param-value>
    </context-param>


</web-app>

Ho can i recompile the widgetset for clientside with maven?

            <plugin>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-maven-plugin</artifactId>
                <version>1.0.2</version>
                <executions>
                    <execution>
                        <configuration>
                            <!-- if you don't specify any modules, the plugin will find them -->
                            <!-- -->
                            <modules>
                                <module>com.invient.vaadin.charts.widgetset</module>
                            </modules>

                        </configuration>
                        <goals>
                            <goal>update-widgetset</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        <dependency>
            <groupId>org.vaadin.addons</groupId>
            <artifactId>invient-charts</artifactId>
            <version>0.8.6</version>
        </dependency>

But it seems that it does nothing.

Hi,

I continue to investigate the issue. I also installed the Vaadin Control Panel portlet and recompiled the Invient Charts 0.8.6 Add-on.
But i still have the same exception on my browser.

I would be glad if someone shares his ideas,
Regards