Patrick56
(Patrick Lange)
September 11, 2015, 7:56pm
1
Hallo,
i use Windows 7, Eclipse Luna 64Bit and Vaadin 7.5.4.
What I do:
Insert int iv<.xml
Insert into ivysettings.xml
Download the Licensefile vaadin.charts.developer.license and copy this file into folder C:\Users\patrick.lange
Insert -D vaadin.charts.developer.license=c13ab84f-xxxx-xxxx-xxxxx-xxxxxxx Segment in Eclipse → Preferences → Java →
Installed JREs
Compile Widgetset
Start Application in JBOSS 7
And then: Error: main class vaadin.charts.developer.license = c13ab84f -xxxx-xxxx-xxxxx-xxxxxxx could not be found or loaded
What can I do?
Thanks
Patrick56
(Patrick Lange)
September 13, 2015, 7:18am
2
Hallo,
I could specify the problem.
I crate a Vaddin 7.5.5 Project on Tomcat 8. I copy the license file into source folder and create the widgetset. The application is running.
the line of code has been generated:
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = ChartUI.class, widgetset = "com.example.chart.widgetset.ChartWidgetset")
public static class Servlet extends VaadinServlet {
}
In my JBOSS 7 Project i use CDI
Here my Code:
@CDIUI("")
@SuppressWarnings("serial")
@Theme("khsim_web")
@Title("KRANKENHAUSVERSORGUNGSSIMULATOR")
@Push
@PreserveOnRefresh
/**
* Einstiegsklasse / Hauptprogramm
*
*
* @author Patrick Lange Datagroup BGS Gmbh
* @version 1.0
*/
public class Khsimwebui extends UI {
private final Logger log = LoggerFactory.getLogger(Khsimwebui.class);
@Inject
private javax.enterprise.event.Event<NavigationEvent> navigationEvent;
Navigator navigator;
@Override
/*
* Hauptprogramm
*
* @param VaadinRequest
*/
protected void init(VaadinRequest request) {
log.info("Anwendung gestartet!");
navigationEvent.fire(new NavigationEvent("startseite"));
}
}
what can I do so that it loads the widgetset?
My I chrete a Line in the web.xml
Please help
Patrick Lange
Thomas
(Thomas Mattsson)
September 16, 2015, 1:33pm
3
You shouldn’t use both @WebServlet and @CDIUI ; CDI uses its own servlet. Try adding a @Widgetset annotation to the UI class instead.
Patrick56
(Patrick Lange)
September 17, 2015, 6:20am
4
Hallo Thomas,
Thanks for your answer.
I solved this Problem with this codeline
@Widgetset("de.gkvsv.khsim.widgetset.Khsim_webWidgetset")
in the main class.
Is this the corect way?
Patrick
Thomas
(Thomas Mattsson)
September 17, 2015, 6:24am
5
Yes, removing the servlet class and adding that to the UI class is the correct solution.