legacy-knowledge-base
Publicado Sep. 25, 2010

'Invocation of 'addApplication' failed' after upgrading

written-by

Alexandra Rujzam

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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.

did-this-article-resolve-your-issue

legacy-knowledge-base