1 Reply Latest reply on Oct 8, 2015 2:21 AM by Jean-Frederic Clere

    TJWS - Maven command to run

    JOHN EDWARD ARANDA Newbie

      Hi

       

      I am implementing a testcase about Tiny Java Web server that is based on Jboss.

       

      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>tjws</artifactId>
         <version>3.0.9.Final</version>

      </dependency>

       

      I have execute the mvn clean install command succesfully. But I can not run the Tiny Server.

       

      The code of the EmbeddedServer.java :

       

        import org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer;

        import org.jboss.resteasy.plugins.server.tjws.TJWSEmbeddedJaxrsServer;

        import org.jboss.resteasy.plugins.server.embedded.SecurityDomain;

        import org.jboss.resteasy.plugins.server.tjws.TJWSServletServer;

      public final class EmbeddedServer {

        private static final int SERVER_PORT = 8080;

        private EmbeddedServer() {

        }

        public static void main(String[] args) throws Exception {

            System.out.println("Starting the TJWS Server");

           TJWSEmbeddedJaxrsServer tjws = new TJWSEmbeddedJaxrsServer();

            tjws.setPort(8080);

            tjws.start();

      }

       

      Can you tell me how can I execute the mini server?

      Is there any specific command to run?

       

      Regards