Hi I am using jetty servlets. I have the following structure.
war/web-inf/web.xml
war/classes/servlet.class (servlet I want to call)
war/*.html
Problem:
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
context.addServlet(new ServletHolder(new GreetingServiceImpl()), "/*");
server.setHandler(context);
try {
server.start();
Can someone please tell me what is the contextPath supposed to be? I get http error 404: problem accesing ./
I need help. Thank you