Running the project
Now that the project has been created, the bare web framework can be started.
Running from the command line
The bare web framework can be started by open a terminal and running bin\web.bat (in windows) or bin/web.sh
from the project root.
Note: the command is bin\web.bat not web.bat or running web.bat directly
(double clicking). The current directory is taken to be the root, and so startup must be bin\web.bat (or bin/web.sh).
This might change in a future release.
The project then sparks up. It creates a database in the database/ directory and initializes various aspects of the system. When
ready to go, it will spit out the url to connect to, as shown
That url (http://localhost:8080) can now be accessed in a browser.
You will be prompted for a new administrator password. Enter a new password, and now the web framework can be played with.
To stop the service, hit ctrl-c in the terminal or close the terminal.
Running within Eclipse
The web framework can be started in Eclipse by choosing Run->Run Configurations and creating a new Java Application.
The Project should be musicdemo (in this case) and the Main Class is org.benow.web.WebService:
Hit Run and the web service will start, as it did from the command line. Running from within Eclipse has many advantages including
the ability to modify code at runtime and to be able to set breakpoints and debug code. To run in debug mode launch the service from
Run->Debug Configurations. When in debug mode, breakpoints will suspend the run and run-time debugging can be done. Building
web applications with Eclipse works quite well.