Issue
The migration was seemingly successful, but upon startup the following error is appearing in the logs:
2021-05-10 08:09:13.142 ERROR [Portal Dependency Manager Component Executor--1][AbstractJAXRSFactoryBean:102] No resource classes found
2021-05-10 08:09:13.148 ERROR [Portal Dependency Manager Component Executor--1][LogService:93] [Portal Dependency Manager Component Executor--1] Invocation of 'addApplication' failed.
org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:225)
Environment
- Liferay DXP 7.0+
Resolution
This is related to JAX-RS compatibility. You will need to check if there are any REST Extender configuration left from the pre-upgrade environment in Control Panel > System Settings that are not needed anymore or it's also possible that you need to recreate them to be compatible with the upgraded environment.
Additionally, review any module containing files like com.liferay.portal.remote.rest.extender.configuration.RestExtenderConfiguration-*.properties or com.liferay.portal.remote.cxf.common.configuration.CXFEndpointPublisherConfiguration-*.properties. These files might also need to be removed or adapted to be compatible with the upgraded environment.