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_addressort I get the following message:

HTTP ERROR: 404
Problem accessing /. Reason:

Not Found


Powered by Jetty://
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Can you share your code as easier to check.
 
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: 253
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

Remote Device Folder (containing js, css, html files)

B4J Bridge (started as sudo!)

Webapp
 
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…