B4J Question [ABMaterial] Weird things happened in VPS Hosting

Dianzoa

Active Member
Licensed User
Regards!
I have a little testing of a web app that runs ok in my computer, but I uploaded to a VPS hosting, and runs partially ok, for example the icons does not appear. The tables cannot be "selected ", and such. I have upload the jar and the www and bin folders from Object folder after compiled in release mode.
I attached some screens
PS:Compare cargar_vps VS cargar_localhost, the icons and the combo, as well as the table interactive are gone in the VPS. Am I missing something? BTW. The login page works local and VPS

Thanks!
Diego
 

Attachments

  • enviapy_vps.png
    enviapy_vps.png
    39.2 KB · Views: 295
  • cargar_localhost.png
    cargar_localhost.png
    54.2 KB · Views: 266
  • repartidores_localhost.png
    repartidores_localhost.png
    39.3 KB · Views: 270
  • cargar_vps.png
    cargar_vps.png
    34.9 KB · Views: 307
Last edited:

Dianzoa

Active Member
Licensed User
Wow,Thanks guys! I didn't know about .needs.
I will upload that file now and test it!

Best Regards!
Diego
 
Upvote 0

Dianzoa

Active Member
Licensed User
Update: The icons and the table selection row it's now working, but I still have problems with combos, in localhost works like a charm.

The combo will not appear, and also the server stop working, none of the links works after loading the combos.
See combo-vps VS combo-localhost. I think the cliente combo is what it fails because if I comment that the other combo works well
 

Attachments

  • combo-localhost.png
    combo-localhost.png
    63.4 KB · Views: 243
  • combo-vps.png
    combo-vps.png
    34.8 KB · Views: 249
Upvote 0

Harris

Expert
Licensed User
Longtime User
Possible cause: Looks like the file copymewithjar.needs is missing. Put it in the same folder as the jar.
Let's beat this dead horse some more - cause it ain't quite dead yet....

Is there anyway to package this in the distributed jar - or some other way to remind us all that bad things will happen if you ( meaning me ) forget to update it on your server (and must post here to resolve)? How many times have we all been down this road?

Just a feature request... like you don't have enough to deal with...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Is there anyway to package this in the distributed jar
Using SLC (talking about B4A Library) you can place additional files in the Additional Folder.

If you are using SLC to build the library then you should put the macros in the "additional" folder.
It should work with the file mentioned here; or at least it is worth a try.
 
Last edited:
Upvote 0

Harris

Expert
Licensed User
Longtime User
Note that it will also be added to B4J and B4i....

So there is hope yet....
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
The .needs files are generated when you run the jar AND the B4J source code is available (the source code is parsed at that point). When you deploy, the source code isn't available anymore so it uses the analyze result in the .needs file. It's kind of the chicken and the egg thing. So easiest is just to keep it as it is and just copy the file.
 
Upvote 0
Top