16.10.2015 Views

Getting Started with WebSphere Application Server

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

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

Chapter 11 – Troubleshooting 199<br />

Yet another cause of this problem may be that your server is using DHCP and there was a<br />

DHCP renewal. If that's the case, you can use a static IP address.<br />

11.4 Classpath and dependency<br />

Sometimes the deployment of a module such as WAR, JAR or EAR, fails <strong>with</strong> a<br />

dependency error. The reason may be an incorrect configuration of the dependencies in<br />

the deployment plan.<br />

In the deployment plan, the element is used to specify that your module<br />

depends on a package kept in the server's repository. The specified package is added to<br />

your module's classpath. Begin <strong>with</strong> the template shown in Listing 11.1 and update it<br />

appropriately.<br />

<br />

<br />

group<br />

artifact<br />

version<br />

type<br />

<br />

<br />

Listing 11.1 - Dependency template<br />

In Listing 11.1:<br />

• group is the directory or directory tree in the repository where the unique artifact<br />

directory is located.<br />

• artifact is the prefix (no version or file extension) of the library's file name<br />

• version is the version number to be appended to the file name.<br />

• type is the file extension for the file in the repository.<br />

The server will construct a path of the form<br />

/repository/group/artifact/version/file-version.type<br />

11.5 Using Community Edition log files as diagnostic tools<br />

The following log files are useful in troubleshooting situations.<br />

11.5.1 Installation and un-installation logs<br />

Both installation and un-installation logs record all the events and actions during the install<br />

and un-install process of Community Edition and are useful for analyzing problems during<br />

these operations. You can read the logs directly <strong>with</strong> a text editor.

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

Saved successfully!

Ooh no, something went wrong!