title: Java TCP server program running on Apache Tomcat
body: <p>Here i have some problem with TCP server program,
  i have created a jar which is having the TCP server code and this need to be run continuously and i need to deploy this jar in apache server...
  this jar will works fine when we execute the jar from command prompt ans will not accept the incoming connections when its running apache tomcat,in apache i have already some jars running so they are not at all dependent on this jar.</p>
  
  <pre><code>while (true) {
      Socket client = serverSocket.accept();
      System.out.println("S: Receiving...");
  
  ----------
  </code></pre>