Victor
Victor

Reputation: 17107

App hangs on --> 'Initializing Spring root WebApplicationContext' on websphere

When I try to deploy the app ear through RSA on websphere, the deployment hangs on the following line:

Initializing Spring root WebApplicationContext. Initialization successful.

And then server times out. How can I troubleshoot this problem? Which log should I see? The logs folder is rather confusing with too many files.
When I deploy the app through the admin console by building .ear first, it deploys fine.

Upvotes: 3

Views: 4219

Answers (1)

Manglu
Manglu

Reputation: 11374

I assume you are referring to publish the application within RSA/RAD. The logs are the same whether you deploy through this or via the admin console.

SystemOut, SystemErr and trace.logs would be my first points of check.

I am assuming your application spits out this info line: Initializing Spring root WebApplicationContext. Initialization successful

When does it do this? This would likely occur after the application has been deployed and the application is in its starting phase.

I would check this location

/profiles//installedApps/

Replace all the <...> with the respective values in your environment.

Once deployment is successful you should see a directory with the name of your application eg.

This tells you that the application is installed in your Test environment server.

Publishing effectively does two activities - Install and Start the application.

Once you see the EAR here you know that your problem lies in your application start up activities.

Try and see if you can narrow down from there.

HTH Manglu

Upvotes: 1

Related Questions