Here I have some problems with the TCP server program, I created a jar that has the TCP server code, and it needs to be run continuously, and I need to deploy this jar on the Apache server ... this jar will work fine when we execute jar from the ans command line will not accept incoming connections when starting apache tomcat, in apache I already have several jars, so they are completely independent of this jar.
while (true) {
Socket client = serverSocket.accept();
System.out.println("S: Receiving...");
----------
source
share