3.10How to execute the generated project in the BUILD environment
3.10How to execute the generated project in the BUILD environment
3.10.1SGBD generation
Before executing the generated application, remember to parameterize your database with the information defined during the project creation (see Error: Reference source not found).
If you want the application to build the database schema within the first execution, you have to configure the workflow. You need to set the "hibernate.hbm2ddl.auto" property to "update" in the BSP hibernate.
Note that this value will be automatically reset during the next generation.
3.10.2Execution
To execute the application do a right click on the generated web project and select "Run As->Run on Server" (see Figure 1).

Figure 1 : Execution of the generated application
3.10.3Application server set up
During the first execution, you have to set up your application server. This is why Eclipse declares an error on the web project "PhoneDirectory-web" (
).
A dialog box will open asking you to select your server (see Figure 2). You can select "Apache->Tomcat v5.5 Server". Then click on « Next ».

Figure 2 : Server selection
Now you provide the server’s parameters (see Figure 3):
- Name,
- Tomcat installation directory,
- The JRE to use.

Figure 3 : Tomcat Server – specify the installation directory
Once the parameters are entered, click on Finish. Eclipse will configure the server and execute the application.
This operation of server configuration will not be necessary on next executions.