29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.1.1 Configuration and management . . . . . . . . . . . . . . . . . . . . . . . . . . 456<br />

13.1.2 Managing test application servers. . . . . . . . . . . . . . . . . . . . . . . . . 457<br />

13.2 Using the <strong>Server</strong> tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459<br />

13.2.1 Setting preferences for the <strong>Server</strong> perspective. . . . . . . . . . . . . . . 460<br />

13.3 Defining servers and server configurations . . . . . . . . . . . . . . . . . . . . . . 462<br />

13.3.1 <strong>Server</strong> types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465<br />

13.4 Using the Express test environment . . . . . . . . . . . . . . . . . . . . . . . . . . . 465<br />

13.4.1 Creating a server and server configuration . . . . . . . . . . . . . . . . . . 466<br />

13.4.2 Publishing an application to the test environment. . . . . . . . . . . . . 468<br />

13.4.3 Updating the server configuration for the application . . . . . . . . . . 470<br />

13.4.4 Starting the test environment server . . . . . . . . . . . . . . . . . . . . . . . 471<br />

13.4.5 Running the application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472<br />

13.5 Working with an Express server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475<br />

13.5.1 Defining the server to Studio Site Developer . . . . . . . . . . . . . . . . 476<br />

13.5.2 Publishing the application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481<br />

13.5.3 Updating the server configuration for the application . . . . . . . . . . 482<br />

13.5.4 Starting the Express server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482<br />

13.5.5 Running the application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483<br />

13.6 Working with server configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483<br />

13.6.1 Classloaders and file location . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486<br />

13.7 <strong>Server</strong> operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487<br />

13.7.1 Starting the server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487<br />

13.7.2 Stopping the server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488<br />

13.7.3 Restarting the server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488<br />

13.8 Deploying applications for production . . . . . . . . . . . . . . . . . . . . . . . . . . 489<br />

13.8.1 Exporting an enterprise application to a file location. . . . . . . . . . . 489<br />

13.8.2 Exporting an enterprise application using FTP . . . . . . . . . . . . . . . 490<br />

13.9 <strong>IBM</strong> Agent Controller settings and status . . . . . . . . . . . . . . . . . . . . . . . 491<br />

13.10 For more information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492<br />

Chapter 14. Testing and debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493<br />

14.1 Debugging in the Web perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494<br />

14.1.1 Page errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494<br />

14.1.2 Project navigator view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496<br />

14.1.3 Tasks view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497<br />

14.1.4 Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498<br />

14.1.5 Console view. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499<br />

14.2 Debugging using the Debug perspective . . . . . . . . . . . . . . . . . . . . . . . 500<br />

14.2.1 Debug perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501<br />

14.3 Stepping through code using the Online Catalog sample . . . . . . . . . . . 507<br />

14.3.1 Setting breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507<br />

14.3.2 Running the application in debug mode . . . . . . . . . . . . . . . . . . . . 508<br />

14.3.3 Verifying the variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512<br />

viii <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!