uniplan Active Member Licensed User Longtime User Sep 24, 2015 #1 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?
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 Sep 24, 2015 #2 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
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
uniplan Active Member Licensed User Longtime User Sep 25, 2015 #3 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
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://
rwblinn Well-Known Member Licensed User Longtime User Sep 25, 2015 #4 Can you share your code as easier to check. Upvote 0
uniplan Active Member Licensed User Longtime User Sep 25, 2015 #5 I used the Hello World application. I attach it. Attachments WebAppHelloWorld.zip WebAppHelloWorld.zip 25.4 KB · Views: 337 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2015 #6 Based on the error you have copied the www folder to the wrong place. Upvote 0
uniplan Active Member Licensed User Longtime User Sep 25, 2015 #7 I have copied the www folder into this folder: /home/pi/b4j/tempjars Upvote 0
rwblinn Well-Known Member Licensed User Longtime User Sep 25, 2015 #8 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: Sep 25, 2015 Upvote 0
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
uniplan Active Member Licensed User Longtime User Sep 25, 2015 #9 Looking my folder I noticed there is not the file AsyncInput2. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2015 #10 Whenever you run a program a file named AsyncInput1 or 2 will be created on the target machine. Upvote 0
uniplan Active Member Licensed User Longtime User Sep 25, 2015 #11 I solved the problem. The path where copy the folder www was /home/pi/tempjars instead of /home/pi/b4j/tempjars. Thanks. Upvote 0
I solved the problem. The path where copy the folder www was /home/pi/tempjars instead of /home/pi/b4j/tempjars. Thanks.