Remove lxml dependency, make errors work on tomcat