Hello
My B4J server was up and now stopped. I tested firewall and anti-virus but could not identify the source of the problem.
I'm working on server development by following the following example: https://www.b4x.com/android/forum/t...device-desktop-and-web-reports.37254/#content
I noticed that .JAR itself has the implicit java server. So I was very confused because the message in the browser appears the answer: Not found.
Does anybody know how to solve this?
Thank you
The jetty server is running, but it can't find the resource requested by the browser (root document / usually index.html), so it's likely a routing or path configuration problem.
Jetty serves (out of box) anything in the www folder/sub-folders and the handlers you have setup up. In your program, the only two handlers you have set up are AddAnimal and Report, therefore http://localhost:51042/AddAnimal and http://localhost:51042/Report are valid "pages". If you want Jetty to serve something up when you access just http://localhost:51042, then do
1) Create a www folder in the same location of your .jar file and then put an index.html file in that folder (could also be an index.jsp).
OR
2) Create a new Server Handler class module and use
I am new to B4J.
I have created the www folder and created an index.html file in that folder in the same location as the .jar file.
I have created a new class module handler "MyNewServerHandlerClass"