Embedded embedded = ... ... embedded.createConnector((InetAddress)null, 8080, false); This last call logs this message : Couldn't create connector. It seems that the method : public Connector createConnector(String address, int port, String protocol) return always null when the protocol is "http".
I Have fixed the bug like this : .... if (protocol.equals("ajp")) { connector = new Connector("org.apache.jk.server.JkCoyoteHandler"); } else if (protocol.equals("memory")) { connector = new Connector ("org.apache.coyote.memory.MemoryProtocolHandler"); } else { connector = new Connector(); if (protocol.equals("https")) { connector.setScheme("https"); connector.setSecure(true); // FIXME !!!! SET SSL PROPERTIES } } ....
Those calls are not very useful IMO, but it's now fixed.