we upgrade application to 8.4p2 after upgrading we build war using SSB and deployed the war in tomcat and try to run iiq console we are getting following error.
WARN main springframework.context.support.ClassPathXmlApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [hibernateBeans.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [hibernateBeans.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
Please double‑check that the DB schema version and the IIQ application version are aligned after the upgrade.
Also, review the DB upgrade logs to confirm that none of the update script commands failed silently — even a small mismatch can cause the kind of Hibernate mapping errors you’re seeing.
yes this error usually happens due to a Java, Tomcat, or Hibernate JAR version mismatch after the IIQ 8.4 P2 upgrade, so verify Java, Tomcat, clean old WAR/JAR files, and redeploy
Build the iiq.properties file from default file of 8.4, don’t use backup file from previous version as we have additional database: identityiqah starting from 8.4
verify the versions: IIQ 8.4p2 schema/system version details:
Security – > Users – > right click on identityiq , identityiqah (“Access History database name”) select properties → General
verify the User name, Login name and Default schema
or
Security – > Logins → right click on identityiq , identityiqah (“Access History database name”) select properties – > User Mapping and Status
Verify the User and Default Schema
make sure you have set the environment variable correctly before connecting to iiq console
for example:
set JRE_HOME=C:\Program Files\Java\jdk-17
set JAVA_HOME=C:\Program Files\Java\jdk-17
set CATALINA_HOME=C:\Software\Instance8.5\apache-tomcat-9.0.98
set PATH=C:\Program Files\Java\jdk-17\bin\