B4J Question Debug webapp by B4J bridge

uniplan

Active Member
Licensed User
Longtime User
I'm trying to debug a webapp using B4J-bridge. I connect properly to the remote device, but I can not start the web page.
Is there anything special I have to do?
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Check this out:
The B4J-Bridge creates a folder called Tempjars on the remote device.
The server app (when connections are made) is looking for the www folder (and file index.html), which by default is not created by the B4J-Bridge.
To remediate:
  • Logon to your remote device
  • Select the Tempjars folder
  • Copy the www folder from the B4J project folder Objects/www to Tempjars/www
  • Start B4J, reconnect to the B4J-Bridge, start your app and connect via browser ip : port
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
Hi,
I followed exactly the steps that you have shown me but when I try to connect with a browser using IP_address:port I get the following message:

HTTP ERROR: 404
Problem accessing /. Reason:

Not Found


Powered by Jetty://
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
I used the Hello World application. I attach it.
 

Attachments

  • WebAppHelloWorld.zip
    25.4 KB · Views: 186
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

have tested on a Pi and is running fine in both debug and release mode. here some screenshots that might help.
B4J IDE
upload_2015-9-25_11-13-52.png

Remote Device Folder (containing js, css, html files)
upload_2015-9-25_11-11-46.png

B4J Bridge (started as sudo!)
upload_2015-9-25_11-12-20.png

Webapp
upload_2015-9-25_11-29-52.png
 
Last edited:
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
I solved the problem. The path where copy the folder www was /home/pi/tempjars instead of /home/pi/b4j/tempjars.

Thanks.
 
Upvote 0
Top