Now works with couchdb on Tomcat.