AjaxSwing = AWS = beginner

108 views
Skip to first unread message

Rael Gonçalves

unread,
Aug 12, 2020, 4:49:46 PM8/12/20
to AjaxSwing Community Support

I have a desktop java program that works inside a main folder and uses the javas files already embedded in a subfolder also inside the main folder. I use the derby database that it is also inside that main folder. I managed to make this work in the browser with Ajaxswing (Program that converts from desktop to web instantly). I realized that there is a localhost name in the address. I can only open it here in my pc's browser. How to make this work on a cloud server like Amazon servers and make it possible for any user to access this program from their browsers? I don't know how to create the war file and I don´t know how to upload it to the virtual server.


Server OS: <unknown>
AjaxSwing version: <AjaxSwing4.4.3>
JDK version: <jdk1.8.0_261>

Yevhen Badorov

unread,
Aug 13, 2020, 10:57:54 AM8/13/20
to AjaxSwing Community Support
Hi Rael,

You can simply move the same setup of AjaxSwing that you have to the AWS server.
Also, you will probably want to set up SSL on Tomcat for that (it's optional but more secure).

Best regards,
AjaxSwing team

Rael Gonçalves

unread,
Aug 13, 2020, 2:18:48 PM8/13/20
to AjaxSwing Community Support
I´ve never worked with AWS.

 So, Let me see if I understood. 

To make my desktop java program works, all I have to do is put my folders on the AWS, install the AjaxSwing on AWS and run AjaxSwing on ASW. Doing this, AjaxSwing will create a address that can be acessed by anyone. Is it that?

Yevhen Badorov

unread,
Aug 15, 2020, 3:12:33 AM8/15/20
to AjaxSwing Community Support
In general, moving your current AjaxSwing setup to an AWS instance should work. Everything else depends on details (OS, AWS instance settings, DNS settings etc.)

Rael Gonçalves

unread,
Aug 15, 2020, 2:15:50 PM8/15/20
to AjaxSwing Community Support
As I said befor, I am a beginner and I´m waiting the AWS to validade my access. So, What do you mean.... moving your current AjaxSwing setup to an AWS..? Is It installing AjaxSwing  in AWS?

Rael Gonçalves

unread,
Aug 15, 2020, 9:02:35 PM8/15/20
to AjaxSwing Community Support
I already have AjaxSwing working on my AWS. In AWS, I can create an adress that works when I put in the browser. But there is the name localhost in the address.

How can I make it to be accessed by anyone if the address I only generated It is with localhost in the address????

How can I make this what you posted....

...........moving your current AjaxSwing setup to an AWS instance should work. Everything else depends on details (OS, AWS instance settings, DNS settings etc.)



Em sábado, 15 de agosto de 2020 04:12:33 UTC-3, Yevhen Badorov escreveu:

Rael Gonçalves

unread,
Aug 16, 2020, 5:14:26 PM8/16/20
to AjaxSwing Community Support
How can I set up SSL on Tomcat?


Em quinta-feira, 13 de agosto de 2020 11:57:54 UTC-3, Yevhen Badorov escreveu:

Rael Gonçalves

unread,
Aug 16, 2020, 5:15:35 PM8/16/20
to AjaxSwing Community Support
Could you help me with this???


Em sábado, 15 de agosto de 2020 04:12:33 UTC-3, Yevhen Badorov escreveu:

Rael Gonçalves

unread,
Aug 17, 2020, 4:37:54 PM8/17/20
to AjaxSwing Community Support
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.

Em sábado, 15 de agosto de 2020 04:12:33 UTC-3, Yevhen Badorov escreveu:

Murthy Gandikota

unread,
Oct 20, 2020, 11:44:59 AM10/20/20
to AjaxSwing Community Support
Can we run AjaxSwing within a PCF (Pivotal Cloud Foundry) on AWS ? From what I understand there is some configuration to be done (setEnv.bat). I don't know if PCF allows adding a file to TOMCAT_HOME\bin folder. I can try it out, but wanted to hear your feedback as trying out requires the support of DevOps which is hard to get in my organization.

Thank you

Yevhen Badorov

unread,
Oct 21, 2020, 4:14:54 AM10/21/20
to AjaxSwing Community Support
Hi Murthy,

AjaxSwing hasn't been tested on PCF. If you can run other servlet apps there, then AjaxSwing should also work.

I don't know if PCF allows adding a file to TOMCAT_HOME\bin folder
There is no need to add anything to the Tomcat's bin folder. The setEnv.bat[sh] file you mentioned is related to AjaxSwing. All it does is setting environment variables. You can set the same env variables manually without executing the script. Here you can find instructions on setting up AjaxSwing with different application servers http://www.creamtec.com/products/ajaxswing/doc/setup.html#aswebapplication

Let me know if you have any questions

Best regards,
AjaxSwing team

Maria Constantin

unread,
May 24, 2023, 10:09:23 AM5/24/23
to AjaxSwing Community Support
Hello Rael,

I have the same problem as you had before. My application is running on a AWS instance, but I don't know how to make it be accessible from any browser using the public ipv4 address. I added a new inbound rule to the security groups that has 80 as port range, but nothing changed. Did you remember the steps that you did to make this work?

Thank you!

Reply all
Reply to author
Forward
0 new messages