Menu

CSS is missing in 2.0.4

Arthur
2013-10-28
2013-10-30
  • Arthur

    Arthur - 2013-10-28

    Hello!
    I'm tryig to start my vaadin app after clean installing it and I get following messages:

    10:19:43,116 INFO [com.vaadin.server.VaadinServlet] (http-localhost-127.0.0.1-8080-6) Requested resource [/VAADIN/widgetsets/WidgetSet/MessageBox/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
    10:19:43,117 INFO [com.vaadin.server.VaadinServlet] (http-localhost-127.0.0.1-8080-5) Requested resource [/VAADIN/widgetsets/WidgetSet/406C355AA0BABFDA0894DF6692C0AFB6.cache.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

    I use maven to build the app.
    vaadin.version: 7.1.0
    messagebox: 2.0.4

    Can you please help me? If I look into folder target/my-app/VAADIN/widgetsets/WidgetSet I see folders with css for other addons (like filtertable), but don't see it for messagebox.
    It seems to be a bug in the current version!

     
  • Dieter Steinwedel

    Hello Arthur,

    I can produce a similar message, if I use the goal "vaadin:update-widgetset". But currently, I have no idea, what the problem is. Using it as simple lib, it works fine for. Something is going wrong, if you build a custom widgetset with maven.

     
  • Arthur

    Arthur - 2013-10-29

    Ok. I think the source of this warning is the following...
    In the file WidgetSet.gwt.xml there is a reference to styles.css defined:

    <stylesheet src="MessageBox/styles.css"></stylesheet>

    But the file styles.css itself is not there.
    So, either delete this reference, or create the styles.css file.

     
  • Dieter Steinwedel

    The WidgetSet.gwt.xml was added automatically by the archetype from maven. The addon does not require this file. I have removed it and published version 2.0.5. Can you tell me, if it works for you or not. Thanks.

     
  • Arthur

    Arthur - 2013-10-30

    2.0.5 doesn't work.
    If I try to build it with maven i get the following build error:

    Failed to execute goal com.vaadin:vaadin-maven-plugin:7.1.7:compile (default) ...:
    GWT Module de.steinwedel.messagebox.WidgetSet not found in project sources or resources.

    Since the styles.css file is not needed, I would ask you to remove only the reference to it in the file WidgetSet.gwt.xml.
    The file WidgetSet.gwt.xml itself is needed! Thank you very much!

     

    Last edit: Arthur 2013-10-30
  • Dieter Steinwedel

    I have added the "WidgetSet.gwt.xml" to version 2.0.6. Maven seems to have some magic, that it automatically adds addons to the "AppWidgetSet.gwt.xml" of your web application. I have no idea, how to avoid it. It is not necessary to add it to the widgetset, because it not a new widget but some "simple classes". Otherwise it becomes winter and calculating of widgetsets causes the computer keeping me warm ;-).

     

Anonymous
Anonymous

Add attachments
Cancel