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
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
While configuring Sharepoint integration following this documentation, we are facing the following HTTP 500 internal server error, and found that we have multiple versions of the connector installed.
[http-nio-8080-exec-3][code_jsp:163] {code="500", msg="", uri=/c/document_library/sharepoint/oauth2}
javax.servlet.ServletException: java.lang.ClassCastException: class com.liferay.sharepoint.rest.repository.internal.document.library.repository.authorization.oauth2.SharepointRepositoryRequestState cannot be cast to class com.liferay.sharepoint.rest.repo
sitory.internal.document.library.repository.authorization.oauth2.SharepointRepositoryRequestState (com.liferay.sharepoint.rest.repository.internal.document.library.repository.authorization.oauth2.SharepointRepositoryRequestState is in unnamed module of l
oader org.eclipse.osgi.internal.loader.EquinoxClassLoader; com.liferay.sharepoint.rest.repository.internal.document.library.repository.authorization.oauth2.SharepointRepositoryRequestState is in unnamed module of loader org.eclipse.osgi.interna
l.loader.EquinoxClassLoader)
Environment
Liferay Quarterly releases
Resolution
The documentation describes how to install the connector when it is not available out of the box in the used Liferay version, which is a mandatory step before starting to configure it.
If the connector is already available in the Liferay version used, this part need to be skipped.
To confirm the availability of the connector, you can check liferay/osgi/marketplace folder if it contains Liferay REST Connector for SharePoint or run lb | grep Sharepoint in Gogo Shell.