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).

output_html_33ea165b.png

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" (output_html_6c1134ce.png).

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 ».

output_html_f0eff0c.png

Figure 2 : Server selection

Now you provide the server’s parameters (see Figure 3):

  • Name,
  • Tomcat installation directory,
  • The JRE to use.

output_html_m7ae655f5.png

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.


BLU AGE is a registered trademark of NETFECTIVE TECHNOLOGY S.A. - Trademarks are property of their respective owners
Do not copy or divulge without written permission