29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2. The Console view will open automatically. Look for messages indicating that<br />

the server started properly. If you get error messages or if the server does not<br />

start, review the console messages, correct the problem, and try again.<br />

The message you want to see is <strong>Server</strong> server1 open for e-business.<br />

Note: If you have installed the Express <strong>Application</strong> <strong>Server</strong> on the same<br />

machine as your Studio Site Developer system, there will be port conflicts<br />

between the Express <strong>Application</strong> <strong>Server</strong> and the test environment. You will<br />

need to stop one server in order to run the other. To run both at the same time,<br />

you will need to alter the port numbers (for example, advance the number by<br />

1) for one of the servers. The port numbers are defined on the <strong>Server</strong><br />

Configuration Ports page.<br />

13.5.5 Running the application<br />

The last step in the process is to test the application.<br />

1. Find the Web module or individual Web resource you want to run in the<br />

Navigator view, right-click, and select Run on <strong>Server</strong>.<br />

If you haven’t set a server preference, you will be asked to select a server. If<br />

so, select the server you just created and continue.<br />

2. The application will open in a Web browser. You can exercise the application<br />

code from there.<br />

3. Now access the application from an external Web browser using the URL<br />

http://:7080//.<br />

Note: The context root is defined when you create the Web project (see<br />

Figure 4-4 on page 68). To see the context root, open the EAR deployment<br />

descriptor to the Module page and select the module.<br />

13.6 Working with server configurations<br />

In some cases, applications published to a server will run with no further<br />

intervention. However, there are usually things the server will have to be aware of<br />

that are not handled during the creation of the server and server configuration.<br />

For instance, if you are accessing a database then you will need a JDBC driver,<br />

and if the connection is a data source connection then you will need a data<br />

source definition. If you are connecting to a database using a driver manager<br />

definition, make sure the path to the driver class is included in the server class<br />

path.<br />

Chapter 13. Deploying applications 483

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

Saved successfully!

Ooh no, something went wrong!