Where have you configured ThreadPool? Wherever it's used it has used up all the threads.
What made you change the logger xml? How did you determine the threadpool warning is related to the logger?
Why do you want to change the max in ThreadPool.java when the constructor allows it to be configured? You basically need to figure out where the ThreadPool is configured and configure it correctly.
As an example you can refer to the jpos programmers manual section on QServer where a threadpool is configured using the min and max session.
<server name="my-server" class="org.jpos.q2.iso.QServer" logger="Q2">
<attr name="port" type="java.lang.Integer">44444</attr>
<attr name="minSessions" type="java.lang.Integer">10</attr>
<attr name="maxSessions" type="java.lang.Integer">250</attr>
...
...
..
</server>
-chhil