replace mathematica with tomcat server.