Tutorial 2: Step 4 – Testing and Checking In a DC

You are in the J2EE perspective in the J2EE DC Explorer view.

DC Build


       1.      Select the node of the Enterprise Application Project (...~appl~taxappl~...).

       2.      From the context menu choose Development Component ® Build.

A message box appears that shows the affected DCs.

       3.      Select the DCs to be built (if necessary) and choose OK.

The Enterprise Application is built together with all components on which it depends. You should see a new entry example.org~appl~tax.earin your Enterprise Application Project.



       1.      Under the node of the Enterprise Application Project (...~appl~taxappl~...) select the EAR file example.org~appl~taxappl.ear.

       2.      From the context menu, choose Deploy to J2EE engine.

This will deploy the library to the configured runtime system.

       3.      Monitor the ongoing process in the Deploy Output and General User Output views.

You see the message Successfully deployed file… .

If there are problems during the deployment, double.click in the file application.xml in your application project to open it, select the Source tab in the editor and replace the entry in the TAG ContextRoot by a new value.

Rebuild your DC to make the change effective.

Executing the Application


You are in the J2EE perspective.

       1.      To launch the tax.jsp file in a web browser you have to create a so-called run configuration. To do this, from the menu choose Run  ® Run…

The Run wizard appears.

       2.      In the Configurations box, select J2EE Application and choose New.

       3.      Under Enterprise Application Project, choose Browse.

A dialog box appears.

       4.      Now select the Enterprise Application Project (...~appl~taxappl~...) to which the JSP file belongs and confirm with OK.

       5.      To select the JSP file tax.jsp, enable the radio button named “JSP”.

       6.      Choose Browse, navigate to your JSP file, select it and choose OK.

That’s all you have to enter in tab “Web Objects”. Regarding tab “J2EE engine” the settings from Window ® Preferences ®SAP J2EE Engine are taken automatically.

       7.      Enter taxservlet as the name for the newly created run configuration and choose Apply to save the run configuration settings.

       8.      To start the JSP page using the newly created run configuration taxservlet, choose Run.

Your application runs in the browser.

       9.      Enter your income and press the button.

Your application is launched in the browser.



       1.      In the Open Activities view, select your activity New J2EE Application and in the context menu, choose Check-In.

       2.      Enter a description of your changes if you like and choose OK.

A dialog window Activation appears.

       3.      To build your DC at a later time in the CBS, choose Cancel.


Your application is tested and available on the server in the DTR workspace Inactive. The next step is the central build in the Component Build Service – the activation.