title: How do I fix 'com.vaadin.DefaultWidgetSet' does not contain implementation for com.vaadin.addon.charts.Chart
body: <p>By using "Spring Stater Project" in Eclipse/STS, I was able to have a Vaadin project up and running quickly.  I want to add charting via Vaadin-Addon to the project.  I have Googled trying to find how to properly add and use Vaadin Chart addon to the project.  But I am confused because there so many "Guides/Tutorial", but a lot are not for spring boot or they are outdated or partial.  </p>
  
  <p>So I am looking for a complete Guide/Tutorial for Vaadin-SpringBoot-VaadinChart-AddOn.</p>
  
  <p>This is what I have so far:</p>
  
  <p><strong>---- Pom file ----</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.aci&lt;/groupId&gt;
      &lt;artifactId&gt;oversight2&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;oversight2&lt;/name&gt;
      &lt;description&gt;Oversite&lt;/description&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
  &lt;!--        &lt;dependency&gt; --&gt;
  &lt;!--            &lt;groupId&gt;com.vaadin&lt;/groupId&gt; --&gt;
  &lt;!--            &lt;artifactId&gt;vaadin-spring-boot&lt;/artifactId&gt; --&gt;
  &lt;!--            &lt;version&gt;1.0.0&lt;/version&gt; --&gt;
  &lt;!--        &lt;/dependency&gt; --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.vaadin&lt;/groupId&gt;
              &lt;artifactId&gt;vaadin-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;1.0.0.beta3&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.vaadin.addon&lt;/groupId&gt;
              &lt;version&gt;2.0.0&lt;/version&gt;
              &lt;artifactId&gt;vaadin-charts&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.vaadin&lt;/groupId&gt;
                  &lt;artifactId&gt;vaadin-bom&lt;/artifactId&gt;
                  &lt;version&gt;7.4.5&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;vaadin-addons&lt;/id&gt;
              &lt;url&gt;http://maven.vaadin.com/vaadin-addons&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>---- Java code ----</strong></p>
  
  <pre><code>public class BasicBarChart extends AbstractVaadinChartExample {
  
      @Override
      public String getDescription() {
          return "Basic bar";
      }
  
      @Override
      protected Component getChart() {
          Chart chart = new Chart(ChartType.BAR);
  
          Configuration conf = chart.getConfiguration();
  
          conf.setTitle("Historic World Population by Region");
          conf.setSubTitle("Source: Wikipedia.org");
  
          XAxis x = new XAxis();
          x.setCategories("Africa", "America", "Asia", "Europe", "Oceania");
          x.setTitle((String) null);
          conf.addxAxis(x);
  
          YAxis y = new YAxis();
          y.setMin(0);
          Title title = new Title("Population (millions)");
          title.setVerticalAlign(VerticalAlign.HIGH);
          y.setTitle(title);
          conf.addyAxis(y);
  
          Tooltip tooltip = new Tooltip();
          tooltip.setFormatter("this.series.name +': '+ this.y +' millions'");
          conf.setTooltip(tooltip);
  
          PlotOptionsBar plot = new PlotOptionsBar();
          plot.setDataLabels(new Labels(true));
          conf.setPlotOptions(plot);
  
          Legend legend = new Legend();
          legend.setLayout(LayoutDirection.VERTICAL);
          legend.setHorizontalAlign(HorizontalAlign.RIGHT);
          legend.setVerticalAlign(VerticalAlign.TOP);
          legend.setX(-100);
          legend.setY(100);
          legend.setFloating(true);
          legend.setBorderWidth(1);
          legend.setBackgroundColor("#FFFFFF");
          legend.setShadow(true);
          conf.setLegend(legend);
  
          conf.disableCredits();
  
          List series = new ArrayList();
          series.add(new ListSeries("Year 1800", 107, 31, 635, 203, 2));
          series.add(new ListSeries("Year 1900", 133, 156, 947, 408, 6));
          series.add(new ListSeries("Year 2008", 973, 914, 4054, 732, 34));
          conf.setSeries(series);
  
          chart.drawChart(conf);
  
          return chart;
      }
  }
  
  @SpringUI
  @VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class)
  public class MyVaadinUI extends UI {
      @Override
      protected void init(VaadinRequest vaadinRequest) {
          setContent(new BasicBarChart());
      }
  }
  </code></pre>
  
  <p>I have create a 30 day AGPL license key </p>
  
  <p>There are some sites that say I need a gwt.xml file, or can this be done with annotations</p>
  
  <p>Some sites say I need to "re-compile your widgetset" which implies I need to have some plugin addition to my pom file. </p>
  
  <p>Other sites say I need a web.xml but with spring-boot-vaadin Vaadin app with just run.</p>
  
  <p>When I run the code, I am getting : </p>
  
  <blockquote>
    <p>Widgetset 'com.vaadin.DefaultWidgetSet' does not contain implementation for com.vaadin.addon.charts.Chart. Check its component connector's @Connect 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.</p>
  </blockquote>