Carousel add-on


Carousel
is a type of component container for Vaadin 7 that allows you to slide between its children with a nice scroll animation. The animation is powered by a CSS3 transition but there’s also a fallback mechanism for browsers not supporting it.

The Carousel itself is circular or infinite in nature which means the child container will by default loop from the beginning when you reach the end and vice versa. Touch or mouse dragging can be used to give the carousel a push and let the animation handle the rest.

Both the server and the client side counterparts are written in
Xtend
, a high-level programming language by Eclipse. Xtend compiles to Java source code so Carousel will function seamlessly in any Vaadin application.


See the Carousel add-on at Vaadin Directory

Hi,
thank you for possibility to use this add-on. In demo it looks very nice. Although I have serious problems with installation. I can’t compile the widgetset with this addon. I am getting the following error:

Loading inherited module 'com.example.grafikmaker.UI.widgetset.GrafikmakerWidgetset'
   Loading inherited module 'org.vaadin.virkki.carousel.CarouselWidgetSet'
      Loading inherited module 'com.google.common.collect.Collect'
         [ERROR]
 Unable to find 'com/google/common/collect/Collect.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
      [ERROR]
 Line 5: Unexpected exception while processing element 'inherits'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:304)
	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
      [ERROR]
 Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:58)
	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:240)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
      [ERROR]
 Unexpected error while processing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:371)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
   [ERROR]
 Line 42: Unexpected exception while processing element 'inherits'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:325)
	at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
   [ERROR]
 Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:58)
	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
	at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
	at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:240)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
   [ERROR]
 Unexpected error while processing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:371)
	at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
	at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
	at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:322)
	at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:242)
	at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:192)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:169)
	at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:141)
	at com.google.gwt.dev.Compiler.run(Compiler.java:196)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:80)
	at java.lang.Thread.run(Unknown Source)
Widgetset compilation failed

I can add here that I am using Eclipse with Vaadin plugin. Vaadin in version 7.02.

Can anyone tell me if It is the problem with jar, or mayby I should configure eclipse somehow ?

Thank you in advance.
MR

Hi Michal
com.google.common.collect.Collect is a Guava module that’s automatically added to the classpath as a transient dependency in maven projects. If you’re not using maven in your project you’ll have to make sure you have the following libraries in the classpath:
guava-gwt
,
Xtext gwt
and
Xtext

Tomi

Hi Tomi,

as you said, adding followin jars:

a) guava-gwt-14.0.1.jar
b) org.eclipse.xtext.xbase.lib.gwt-2.4.0.jar
c) org.eclipse.xtext.xbase.lib-2.4.0.jar

resolved the widgetset compilation problem. Thank you very much.

Unfortunately the other problem shew up, when I try to open the page with the implemented carousel.
The error is as below:


AM com.vaadin.server.DefaultErrorHandler doDefault
SEVERE: 
java.lang.NoClassDefFoundError: com/google/common/collect/Lists
	at org.eclipse.xtext.xbase.lib.CollectionLiterals.newArrayList(CollectionLiterals.java:145)
	at org.vaadin.virkki.carousel.AbstractCarousel$1.apply(AbstractCarousel.java:33)
	at org.vaadin.virkki.carousel.AbstractCarousel.<init>(AbstractCarousel.java:31)
	at org.vaadin.virkki.carousel.HorizontalCarousel.<init>(HorizontalCarousel.java:6)
	at com.example.grafikmaker.UI.view.admin.CompaniesListView.initUI(CompaniesListView.java:85)
	at com.example.grafikmaker.UI.view.admin.CompaniesListView.<init>(CompaniesListView.java:29)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.vaadin.appfoundation.view.DefaultViewFactory.initView(DefaultViewFactory.java:22)
	at org.vaadin.appfoundation.view.ViewItem.getView(ViewItem.java:67)
	at org.vaadin.appfoundation.view.ViewHandler.activateView(ViewHandler.java:227)
	at org.vaadin.appfoundation.view.ViewHandler.activateView(ViewHandler.java:186)
	at com.example.grafikmaker.UI.Menu$5.menuSelected(Menu.java:113)
	at com.vaadin.ui.MenuBar.changeVariables(MenuBar.java:178)
	at com.vaadin.server.AbstractCommunicationManager.changeVariables(AbstractCommunicationManager.java:1887)
	at com.vaadin.server.AbstractCommunicationManager.handleBurst(AbstractCommunicationManager.java:1691)
	at com.vaadin.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1564)
	at com.vaadin.server.AbstractCommunicationManager.handleUidlRequest(AbstractCommunicationManager.java:582)
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:315)
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:201)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
	... 41 more

Probably it is the problem with missing next jar. My question is which jar is still missing ? The other question is: Is there more dependencies which should be resolved, to manage carousel to work ?

Additionaly I can say here that I implemented the carousel in the way you have shown it on addon description site. It is:

		final HorizontalCarousel carousel = new HorizontalCarousel();

		carousel.setArrowKeysMode(ArrowKeysMode.FOCUS);
		// Fetch children lazily
		carousel.setLoadMode(CarouselLoadMode.LAZY);
		// Transition animations between the children run 500 milliseconds
		carousel.setTransitionDuration(500);

		// Add the child Components
		carousel.addComponent(new Button("First child"));
		carousel.addComponent(new Label("Second child"));
		carousel.addComponent(new TextField("Third child"));

		
		mainPanel.addComponent(carousel);

Thank you in advance.

You’ll need to have Guava on your runtime classpath too. It comes bundled in vaadin-shared-deps package that’s included for example in https://vaadin.com/download “all in one package”. Surely you can download Guava directly from
https://code.google.com/p/guava-libraries/
as well. I’m talking about Guava here, not Guava gwt, the gwt-version is needed for widgetset compilation only :slight_smile:

Tomi

I downloaded the fourth jar and now everything is good. So I am starting to get the fun with the carousel implementation in my webapp. Thanks

Hi I’m getting a similar error when running the maven plugin with netbeans.


[vaadin:compile]

auto discovered modules [com.onevue.quin.AppWidgetSet]

Compiling module com.onevue.quin.AppWidgetSet
   Validating units:
      [ERROR]
 Errors in 'org/eclipse/xtext/xbase/lib/IteratorExtensions.java'
         [ERROR]
 Line 308: The method filter(Iterator<T>, Predicate<? super T>) in the type Iterators is not applicable for the arguments (Iterator<capture#12-of ?>, Class<T>)
      [ERROR]
 Errors in 'org/eclipse/xtext/xbase/lib/util/ReflectExtensions.java'
         [ERROR]
 Line 39: No source code is available for type java.lang.SecurityException; did you forget to inherit a required module?
         [ERROR]
 Line 39: No source code is available for type java.lang.NoSuchFieldException; did you forget to inherit a required module?
 ...
...

I also noticed that the libraries being used from the archive are not 2.4.0 but 2.4.1-snapshot (2.4.1-20130402.090407-2) and 2.4.1-20130402.090416-2 for the gwt version of the lib.

Other than that (Thank you, thank you, thank you for putting this plugin together)…

Just published an update to the
Carousel add-on
. Version 0.5.1 fixes issues with child component collection modifications and I also updated the maven dependencies (Xtext if now fixed to version to 2.4.0 and the redundant guava-gwt dependency was dropped) Thanks for the feedback everyone :slight_smile:

The maturity remains “experimental” as there still are some minor issues that need to be handled and I’ll possibly add some more features to Carousel later on (optional infinity/circularity, number of simultaneously visible components as a property…)

Hi,

I am trying to get your awesome component to work using ivy and get this error:


Some projects fail to be resolved
unresolved dependency: 
            org.eclipse.xtend#org.eclipse.xtend.lib.gwt;2.4.0: not found
unresolved dependency: 
            org.eclipse.xtext#org.eclipse.xtext.xbase.lib.gwt;2.4.0: not found

Both lines of the ivy depencies are in my ivy.xml/ivysettings.xml. I am using vaddin 7.0.4

Any idea what to do to resolve this?

Regards, Rob.

Hi Rob
Apparently Ivy doesn’t know where to look for the Xtend dependencies. Adding the following line

<ibiblio name="eclipse-xtend" m2compatible="true" root="http://build.eclipse.org/common/xtend/maven" />

to ivysettings.xml (and then refreshing ivy.xml) should help.

Tomi

Yes. That solves the ivy dependency problem. Alas I have another one. See below.

After succesfull resolving the dependies, compiling widgetset (seemingly succesfull) and starting tomcat, I get this message in my browser:

Widgetset does not contain implementation for org.vaadin.virkki.carousel.HorizontalCarousel. 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.

Something is not working, looking at the widgetset compilation with logging level on DEBUG I see these dependencies being loaded, guave version is 10 not 14, is that correct?:


Loading inherited module 'org.vaadin.virkki.carousel.CarouselWidgetSet'
      Module location: jar:file:/C:/Users/rob/.ivy2/cache/org.vaadin.virkki/carousel/jars/carousel-0.5.1.jar!/org/vaadin/virkki/carousel/CarouselWidgetSet.gwt.xml
      Loading inherited module 'com.google.common.collect.Collect'
         Module location: jar:file:/C:/Users/rob/.ivy2/cache/com.google.guava/guava-gwt/jars/guava-gwt-10.0.1.jar!/com/google/common/collect/Collect.gwt.xml
         Loading inherited module 'com.google.common.annotations.Annotations'
            Module location: jar:file:/C:/Users/rob/.ivy2/cache/com.google.guava/guava-gwt/jars/guava-gwt-10.0.1.jar!/com/google/common/annotations/Annotations.gwt.xml
         Loading inherited module 'com.google.common.base.Base'
            Module location: jar:file:/C:/Users/rob/.ivy2/cache/com.google.guava/guava-gwt/jars/guava-gwt-10.0.1.jar!/com/google/common/base/Base.gwt.xml
            Loading inherited module 'java.util.Util'
               Module location: jar:file:/C:/Users/rob/.ivy2/cache/com.google.guava/guava-gwt/jars/guava-gwt-10.0.1.jar!/java/util/Util.gwt.xml
         Loading inherited module 'com.google.common.primitives.Primitives'
            Module location: jar:file:/C:/Users/rob/.ivy2/cache/com.google.guava/guava-gwt/jars/guava-gwt-10.0.1.jar!/com/google/common/primitives/Primitives.gwt.xml
      Loading inherited module 'org.eclipse.xtext.xbase.lib.Lib'
         Module location: jar:file:/C:/Users/rob/.ivy2/cache/org.eclipse.xtext/org.eclipse.xtext.xbase.lib.gwt/jars/org.eclipse.xtext.xbase.lib.gwt-2.4.0.jar!/org/eclipse/xtext/xbase/lib/Lib.gwt.xml

underneath it are these errors which might point to a wrong version:


Validating units:
      Errors in 'jar:file:/C:/Users/rob/.ivy2/cache/org.eclipse.xtext/org.eclipse.xtext.xbase.lib.gwt/jars/org.eclipse.xtext.xbase.lib.gwt-2.4.0.jar!/org/eclipse/xtext/xbase/lib/IteratorExtensions.java'
         Line 308: The method filter(Iterator<T>, Predicate<? super T>) in the type Iterators is not applicable for the arguments (Iterator<capture#12-of ?>, Class<T>)
      Errors in 'org/eclipse/xtext/xbase/lib/util/ReflectExtensions.java'
         Line 39: No source code is available for type java.lang.SecurityException; did you forget to inherit a required module?
         Line 39: No source code is available for type java.lang.NoSuchFieldException; did you forget to inherit a required module?
         Line 39: No source code is available for type java.lang.IllegalAccessException; did you forget to inherit a required module?
         Line 43: No source code is available for type java.lang.reflect.Field; did you forget to inherit a required module?
         Line 78: The method getDeclaredField(String) is undefined for the type Class<capture#8-of ?>
         Line 105: No source code is available for type java.lang.reflect.InvocationTargetException; did you forget to inherit a required module?
         Line 111: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
         Line 113: The method getDeclaredMethods() is undefined for the type Class<capture#13-of ? extends Object>
         Line 131: The method getMethod(String, Class<?>[]) is undefined for the type Class<capture#17-of ? extends Object>
         Line 145: The method isInstance(Object) is undefined for the type Class<capture#23-of ?>
 Errors in 'jar:file:/C:/Users/rob/.ivy2/cache/org.eclipse.xtext/org.eclipse.xtext.xbase.lib.gwt/jars/org.eclipse.xtext.xbase.lib.gwt-2.4.0.jar!/org/eclipse/xtext/xbase/lib/util/ToStringHelper.java'
         Line 72: No source code is available for type java.lang.ThreadLocal<T>; did you forget to inherit a required module?
         Line 106: No source code is available for type java.lang.reflect.Field; did you forget to inherit a required module?
etc

Guava 10 is fine. I tested this issue by following these steps:

  1. created a new Vaadin 7 project with Vaadin Eclipse plugin
  2. included the eclipse-xtend repository in ivysettings.xml
  3. added Carousel 0.5.1 to ivy.xml
  4. compiled the widgetset

This resulted in a successful compilation with Carousel included. Can you confirm that by following the exact steps you’re still getting the same error?

I have done this and it works. So probably I have some other depencies which is conflicting in my project.
I will sort out what it is and will let you know when I have found it.

Carousel works beautifully BTW. Thumbs up for your work!

Thanks, Rob.

Ok, I found what went wrong: my web.xml was missing the init param which references to the widgetset:

<init-param> <description>Application widgetset</description> <param-name>widgetset</param-name> <param-value>...Widgetsetfilename...</param-value> </init-param> Changing over from Vaadin 6 to Vaadin 7 this did not make it into my web.xml. Works like a charm now.

Hi Jason. Have you solved this problem??

To reproude I have only created a new project with Maven, and added the plugin dependency on pom.xml

Hi, Sorry but no joy still. I have re-created the project with just the carousel dependency and I still can’t compile it in Netbeans…

When I take the dependency out for the carousel it compiles fine (Without the carousel). Same issue as before. I’m not sure what to try here. If there’s a template system behind it are you able to put a diamond operator on anonymous references…

i.e.


Class<?> c; 
... 
Class c;

Just a stab in the dark…

Hmm… I’ve done the same thing here. With a clean project, created from vaadin maven archetype and only this plugin, I cant compile the widgetset. I dont know if theres some missed dependencies, or wrong versions, etc…

Hi Jason! I think that there are some conflict with libraries that are already present on the Maven Build Classpath, because the compilation error is about that. A method with different signature. But looking on the API’s and source code of this methods (xtend base invoking google guava API), the “inexistent” signature that throws the compilation exception EXISTS.

Anyway, I have disable the GWT “strict” mode compilation, and the addon is working. Maybe the Vaadin Widgetset compilation from Eclipse IDE Plugin is not using the strict mode? Or it only uses another classpath different for Maven?

Works like a charm, thank you for that. So it looks like the default for the Maven Archetype vaadin-maven-plugin is to use strict compilation which isn’t compatible with this component. I’m not sure if this can be fixed up for the next release or if it needs to but I’m just glad I can implement this now.

Cheers

Hello,
I have seen your addon and want to add it in my existing projekt. I am not that much versant with maven.
I added the following dependencies to my pom.xml. But I get an error while compiling the widgetset. Please can you tell me the steps I have to do to integrate the addon in my project.


<dependency>
  <groupId>org.eclipse.xtend</groupId>
  <artifactId>org.eclipse.xtend.lib.gwt</artifactId>
  <version>2.4.0</version>
  <scope>provided</scope>
</dependency>
<dependency>
  <groupId>org.eclipse.xtext</groupId>
  <artifactId>org.eclipse.xtext.xbase.lib.gwt</artifactId>
  <version>2.4.0</version>
  <scope>compile</scope>
</dependency>
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava-gwt</artifactId>
    <version>14.0.1</version>
</dependency>
<dependency>
   <groupId>org.vaadin.virkki</groupId>
   <artifactId>carousel</artifactId>
   <version>0.5.2</version>
</dependency>

Thanks in advance!

Eike