This works:
String webappDir = "...";
context = tomcat.addWebapp("/", new File(webappDir).getAbsolutePath());
This doesn't:
context = tomcat.addContext("/", new File("").getAbsolutePath());
I don't really need a webappDir
in this instance because I am not serving any JSP pages or client-side resources, I'm simply using response.getWriter().println(...);
server-side only.
There is no exception being thrown, the websocket simply does not open.
Can I assume that this is a tomcat bug?