in org.apache.catalina.startup.Embedded there is no direct API to create an NIO connector. This would be very helpful for all applications which use tomcat in embedded mode and require the CometProcessor.
Fixed, just call createConnector with "org.apache.coyote.http11.http11NioProtocol" as your protocol parameter