I even monitor number of processes when I start server, and no more is added (unlike when I start James by command prompt).
The number of processes wouldn't change, because it runs inside the JVM (which is just one process).
The connection to the server has failed. Account: '127.0.0.1', Server: '127.0.0.1', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E
Not sure what that's trying to tell us, but it sure doesn't look good. But "Account: '127.0.0.1'" looks particularly strange, as if the code were using "127.0.0.1" for the username.
In my application lib-folder, I store only phoenix-xxx.jar, jar files and mx4j-tools.jar. If I include all from JAMES_HOME/lib, and JAMES_HOME/tools, and JAMES_HOME/bin/lib, I continuously receive an exception and failed deployment of application...
I'd expect all jar files to be needed; if there are exceptions I'd start by tracking those down. It's possible that there are version conflicts with other jar files your code -or the servlet engine- uses.
You could also make this a separate web app, independent of the one that runs your other application code.