I have created a restful client to call restful webservice. I am using com.sun.jersey.api.client.Client for this. My code works as perfectly on windows and JBOSS 5.1 but it hangs on Red Hat Linux and JBOSS 5.1.It hangs on following line. I am using jdk1.6. There is no port or environmental related issue. I have tested the environment and ports.