Issue
- After upgrading from the previous fixpack to the latest fixpack, the server is not getting started or the below error is thrown while starting the server.
SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.liferay.portal.spring.context.PortalContextLoaderListener]
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing storage.
Environment
- Liferay DXP 7.0
- Tomcat Application Server
- Wildfly Application Server
Resolution
-
Clearing the state, temp, work folder resolved the error.
-
For Tomcat Application Server
1. Delete "$Liferay-home/osgi/state”,
2. Delete “$Liferay-home/work”,
3. Delete “$Tomcat-home/temp”,
4. Delete “$Tomcat-home/work” folders
-
For Wildfly Application Server
1. Delete "$JBoss-home/standalone/tmp" folder
2. Delete “$Liferay-home/work” folder
- After deleting these folders, the server started successfully.