Restoring the sample server
You can restore the 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, all the deployed
applications are deleted. Before restoring the server, make sure that
you have done a backup of the existing profile and databases.
Restoring the server has the following effects:
- Stops the server.
- Deletes the profile and all its files, including its 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.