Show TOC Start of Content Area

Procedure documentation Testing and Checking In a DC  Locate the document in its SAP Library structure

Use

In this step you test the JSP file and then check it in to the Design Time Repository (DTR).

Prerequisites

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

Procedure

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.

Note

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.

Deployment

...

       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 deploys 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… .

Note

If there are problems during the deployment, open the file application.xml in your application project, select the Source tab in the editor, and replace the entry in the tag ContextRootby a new value. Rebuild your DC to make the change effective.

Executing the Application

...

You are in the J2EE Development perspective.

       1.      To launch the tax.jsp file in a Web browser, you have to create what is called a run configuration. To do this, from the menu, choose Run Run

The Run dialog 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 JSP.

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

Note

This is all you have to enter on the Web Objectstab. Regarding the J2EE Engine tab, the settings from Window   Preferences SAP J2EE Engineare 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.

Check-In

...

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

       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.

Result

Your application is tested and available on the server in the DTR workspace Inactive.

Next Step

Activation in the CBS

End of Content Area