Procees5ng Arduino serial data In Java Web Application.

Hello I am sending the LM35 sensor data to the PC using Arduino serial. In desktop application I can read and access/display data using my program. As, I m using RXTX liberarires. Now I want to display the same data in a web application using Servlet/JSP. The problem is when I m trying to call the data reading function from the Servlet it gets hung on running saying "waiting for local host" as I m using it on local host. Can any body help. Thank YOU