Witam wszystkich,
Zaczynam przygodę z Vaadin’em, mierzę się z problemem:
GWT plugin is configured to detect modules, but none were found.
No widgetsets found - generating AppWidgetset if necessary.
Updating widgetset AppWidgetset
Szukałem odpowiedzi w sieci i znalazłem różne informacje, niektórzy mówią o pliku .gwt.xml i jego modyfikacji, lecz taki plik przy tworzeniu projektu nie pojawia się (możliwe, że popełniam, w którymś miejscu błąd), a jeszcze inni mówią, że wystarczy zmodyfikować pom.xml dodając odpowiednią konfigurację. Szczerze mówiąc sam nie wiem co i gdzie mam poprawić/zmodyfikować.
W załączeniu dopinam kluczowe itemki.
Używam IDE NetBeans 8.2.
Można prosić społeczność Vaadin’a o pomoc ?
MyUI.java:
package com.mycompany.vaadin_demo;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
/**
* This UI is the application entry point. A UI may either represent a browser window
* (or tab) or some part of an HTML page where a Vaadin application is embedded.
* <p>
* The UI is initialized using {@link #init(VaadinRequest)}. This method is intended to be
* overridden to add component to the user interface and initialize non-component functionality.
*/
@Theme("mytheme")
public class MyUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
final VerticalLayout layout = new VerticalLayout();
final TextField name = new TextField();
name.setCaption("Type your name here:");
Button button = new Button("Click Me");
button.addClickListener(e -> {
layout.addComponent(new Label("Thanks " + name.getValue()
+ ", it works!"));
});
layout.addComponents(name, button);
setContent(layout);
}
@WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
public static class MyUIServlet extends VaadinServlet {
}
}
17103143.xml (5.13 KB)