Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6892055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:29:12+00:00 2026-05-27T06:29:12+00:00

I have a problem with compiling custom widgetsets for my vaadin application using Maven.

  • 0

I have a problem with compiling custom widgetsets for my vaadin application using Maven.

Among my maven modules there’s one jar module containing the custom widgets and one war module.

The compiled jar module contains the sources as well as the generated classes and basically looks like this:

com
 |-mypackage
 |  |-ui
 |  | |- VMyWidget.class
 |  | |- VMyWidget.java
 |  |- MyComponent.class
 |  |- MyComponent.java
 |  |- MyWidgetSet.gwt.xml
 |-META-INF
    |-Manifest.MF
       |-Vaadin-Widgetsets: com.mypackage.MyWidgetSet
       |-Vaadin-Package-Version: 1

In my war project the pom.xml contains the following section:

 <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.3.0</version>
        <configuration>
          <webappDirectory>${project.build.directory}/${project.build.finalName}/VAADIN/widgetsets</webappDirectory>
          <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
          <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
          <noServer>true</noServer>         
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>generateAsync</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <version>1.0.1</version>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>update-widgetset</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

The jar containing the widgets is a dependency of the war project and thus the widget set is defined.

However, the GWT compiler seems not to find the sources although they are contained in the jar artifact.

Thus, I get the following warning/error message:

[INFO] [ERROR] [WARN] Widget class com.mypackage.ui.VMyWidget was not found. The component com.mypackage.MyComponent will not be included in the widgetset.

What am I missing? Why doesn’t the GWT compiler find the sources it needs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:29:13+00:00Added an answer on May 27, 2026 at 6:29 am

    I think I found the problem. The package has to be com.mypackage.client.ui, i.e. it seems like it must contain a client subpackage next to MyWidgetSet.gwt.xml. Although this is documented I overlooked that.

    It seems to work now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey there, I have a small problem with compiling and linking with the command
I have a problem compiling Haskell programs, that import the Text.Regex.Posix module. I have
I have a problem with compiling an Oracle trigger via SQL*PLUS - I don't
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a problem compiling a program I made in BASIC. It's a DOS
I have a problem when compiling a generic class with an inner class. The
Hello I have a problem with compiling a ghostscript from ports in openbsd 4.7.
I have an ASP.NET MVC 2 application with a custom StructureMap controller factory to
Hi I have a problem compiling my Qt app with Visual studio 2008 SP1.
I have a problem with compiling a program written in ocaml, the error appears

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.