Problem with vaadinvisualizations addon NoClassDefFoundError

Hi guys,
i have a problem with vaadinvisualizations addon, when i try to create a chart i have this exception
I have included this libraries:

VisualizationsForVaadin.jar (lastest release)
gwt-visualization.jar (1.0.2 i also tryed with 1.1.1 version)
vaadin (6.4.4)
can oanyone help me?

java.lang.NoClassDefFoundError: org/vaadin/vaadinvisualizations/ScatterChart
at it.enel.csl.gui.vaadin.TestVisualizzationGoogle.initComponents(
at it.enel.csl.gui.vaadin.WindowsController.openWindow(
at it.enel.csl.gui.vaadin.WindowsController.openWindow(
at it.enel.csl.gui.vaadin.MenuCommand.menuSelected(
at com.vaadin.ui.MenuBar.changeVariables(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.WebAppServletContext$
at Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
at weblogic.servlet.internal.WebAppServletContext.execute(

Just to double check, you have the jars in the web inf… lib dir?
Regards Phil

Yes. The jar are into WEB-INF/lib. At compilation time i don’t have any probleam but at runtime the application cannot find the class.

i solved the previous problem but when the application is compiled i see this error.

INFO: Failed to load class org.vaadin.vaadinvisualizations.OrganizationalChart. java.lang.UnsupportedClassVersionError: org/vaadin/vaadinvisualizations/OrganizationalChart : unsupported classversion 50.0
26-feb-2011 16.48.43 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer tryToAdd
INFO: Failed to load class org.vaadin.vaadinvisualizations.AnnotatedTimeLineEntry. java.lang.UnsupportedClassVersionError: org/vaadin/vaadinvisualizations/AnnotatedTimeLineEntry : unsupported classversion 50.0
26-feb-2011 16.48.43 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer tryToAdd
INFO: Failed to load class org.vaadin.vaadinvisualizations.LineChartImage. java.lang.UnsupportedClassVersionError: org/vaadin/vaadinvisualizations/LineChartImage : unsupported classversion 50.0
26-feb-2011 16.48.43 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer tryToAdd
INFO: Failed to load class org.vaadin.vaadinvisualizations.CommonVisualizationComponent. java.lang.UnsupportedClassVersionError: org/vaadin/vaadinvisualizations/CommonVisualizationComponent : unsupported classversion 50.0

Widgetset does not contain implementation for org.vaadin.vaadinvisualizations.LineChart. Check its @ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. Unrendered UIDL:
org.vaadin.vaadinvisualizations.LineChart(NO CLIENT IMPLEMENTATION FOUND

This looks like VaadinVisualizations classes have been compiled with JDK 6.0 without saying “target=1.5”, and you are trying to use them with JDK 5.0. Vaadin core and most add-ons have been compiled to be JDK 5.0 compatible, but apparently the current version of VisualizationsForVaadin is not (a third party component). Maybe Phil can recompile it if there are no real JDK 6.0 dependencies.

If this is not caused by the previous problem, check that the widgetset has been compiled (in WebContent/VAADIN/widgetsets/…) and that the widgetset compiler indicates that widget was included. Then make sure your web.xml refers to the correct widgetset. See
the instructions for using add-ons

might also be running into this problem
which seems to be some failure with the 1.1 jar which at least appears on a mac, didnt show up on windows.

Hi phil, thanks for your reply, i try the solution but during the gwt compilation the previous error are solved. But a runtime i have the same problem and i cannot see the chart.

Can you tell me what jar i must use in my application.

i have in my WEB-INF/lib

gwt-visualization.jar (1.1 i have also try with 1.0 and previous)
VisualizationsForVaadin.jar (i tryed with version 1.2, and 1.1)

Hi Marco, the best I can say is send me your eclipse project and I can take a look (email is in svn libs), otherwise I can create an eclipse project in svn that I have working and include the jars (windows only as I have to create a ticket relating to the gwt-ajaxloader issues)

regards Phil

I created this project
which works for me and displays a pie chart

Regards Phil

Thank you very much. It is very usefull for me. Great addon

When calling addComponent(pc) threw exception java.lang.IncompatibleClassChangeError

at com.vaadin.ui.AbstractComponentContainer.addComponent(
	at com.vaadin.ui.AbstractOrderedLayout.addComponent(
	at adminorg.OrgForm.paintOrgSchem(


private Panel paintOrgSchem(){
		OrgPanel = new Panel();
		VerticalLayout AL = new VerticalLayout();
		PieChart pc = new PieChart();
		pc.add("Work", 7);
		pc.add("Play", 3);
		pc.add("Eat", 1.5);
		pc.add("Sleep", 6);
		pc.add("Do Vaadin", 7);
		pc.setOption("width", 600);
		pc.setOption("height", 400);
		pc.setOption("title", "My Daily Activities");
		pc.setColors("red", "green", "#0000ff", "orange", "slategray");
		pc.setOption("legend", "right");
		return OrgPanel;		

gwt-visualization.jar (1.1.2)
vaadin (6.7.4)