The solution of my problem was so easy. And I was not understanding the way you was talking. As I said, I am a beginner in ajaxswing.
Below, It is the solution of my problem.
I was benning the service from tomcat I installed in the windows server. The setups of the service from tomcat that I intalled was not setup to ajaxswing.
I realized I did not need to install tomcat, I did not need to use their defaults configurations and I did not need to start the service from tomcat installed outside the folder of ajaxswing.
. When I start the service from ajaxswing, I could access from anywhere. I just needed to chance the localhost to my ip and I opened the 8040 door in AWS.
That was the problem. I was starting the wrong service and the door 8040 was closed, in AWS.
I still can not beleive that is so simple.
Thanks, anyway.