Restoring the sample server
You can restore the sample server to its initial state. Restoring the sample server re-creates the profile and the databases.
Symptoms
The server does not start, or the applications that run on the sample server do not run as expected.Environment
To run the following commands, you must define the ANT_HOME variable. For more information, see Setting up your environment to use Ant.
Important: When you restore the sample server, you delete all the deployed applications.
If you want to keep the existing profile and databases, back them up before you restore the
server.
Restoring the server works as follows:
- Stops the server.
- Deletes the profile and its files, including the databases. Note:
On Linux®, you might get a message indicating that the profile was removed but that some errors occurred. These errors are in fact warnings about Linux services, and you can ignore them.
- Restarts the server, and creates a profile for the sample server.
Resolving the problem
- Open a command prompt, and go to <InstallDir>/shared/bin/.
- Type ant recreateserver, and press Enter.