I do want to run a main class which deploys a jetty server with the content of my vaadin application.
final Server server = new Server();
final Connector connector = new ServerConnector( server );
(( AbstractNetworkConnector ) connector).setPort( 3131 );
server.setConnectors( new Connector[] { connector } ); //
final WebAppContext webappcontext = new WebAppContext();
final File warFile = new File( "target/avx-gcms-1.0.war" );
webappcontext.setClassLoader( Thread.currentThread().getContextClassLoader() );
webappcontext.setContextPath( "/" );
webappcontext.setWar( warFile.getAbsolutePath() );
server.setHandler( webappcontext );
server.start();
System.out.println( "Jetty started, please go to http://localhost:" + 3131 + "/" );
Here is my code for the main method but when I do run this, it works without an error but I do get this in m localhost.
This is my workspace
I have seen some related questions to this yet they were not very helpful. Thank you if you help in advance.