search cancel

Error initializing Spring for saml-portlet message in the portal.log file

book

Article ID: 187448

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

We did not observed any problem on the Dashboard/Portal, but why we see the following error in portal.log file:

10 fev 2020 13:09:55,481 ERROR [HotDeployImpl:217] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for saml-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for saml-portlet
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate dialect class
Caused by: org.hibernate.HibernateException: Could not instantiate dialect class
Caused by: java.lang.ClassCastException: org.hibernate.dialect.SQLServerDialect cannot be cast to org.hibernate.dialect.Dialect

Environment

Release : 9.2.0

Component : UIM - UMP_DASHBOARD

Resolution

As the customer is not using saml, it can be disabled in the wasp.cfg file.


Commenting/removing below section in wasp.cfg and restart wasp:

    <saml-portlet>
        reloadable = true
        cross_context = true
        load_on_startup = true
        unpack_war = true
        path = /saml-portlet
    </saml-portlet>