Vaadin Chart dosn't deploy in JBOSS 7

Hallo,

i use Windows 7, Eclipse Luna 64Bit and Vaadin 7.5.4.

What I do:

  1. Insert int iv<.xml
  2. Insert into ivysettings.xml
  3. Download the Licensefile vaadin.charts.developer.license and copy this file into folder C:\Users\patrick.lange
  4. Insert -D vaadin.charts.developer.license=c13ab84f-xxxx-xxxx-xxxxx-xxxxxxx Segment in Eclipse → Preferences → Java →
    Installed JREs
  5. Compile Widgetset
  6. 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

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

21304.png

You shouldn’t use both @WebServlet and @CDIUI; CDI uses its own servlet. Try adding a @Widgetset annotation to the UI class instead.

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

Yes, removing the servlet class and adding that to the UI class is the correct solution.