SASServer7 fails to start and returns "Could not locate cfg.xml resource...." after upgrading SAS® Business Rules Manager to 3.3_M2 on SAS® 9.4M8


When you upgrade to SAS Business Rules Manager 3.3_M2 on SAS 9.4M8 (TS1M8), SASServer7 fails to start. In this scenario, the following error appears in the SAS-configuration-directory/Lev#/Web/Logs/SASServer7_*/SASBusinessRulesManager3.3.log and SAS-configuration-directory/Lev#/Web/WebAppServer/SASServer7_*/logs/server.log files:

[main] ERROR [af3f2942-15c8-11f0-adcd-005056bde467] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Failed to initialize JPA EntityManagerFactory: Could not locate cfg.xml resource [/META-INF/hibernate.cfg.xml]

 [main] WARN  [af3f2943-15c8-11f0-adcd-005056bde467] org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/sas/brm/resources/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.internal.util.config.ConfigurationException: Could not locate cfg.xml resource [/META-INF/hibernate.cfg.xml]

 [main] ERROR [af423684-15c8-11f0-adcd-005056bde467] org.springframework.web.context.ContextLoader - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/sas/brm/resources/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.internal.util.config.ConfigurationException: Could not locate cfg.xml resource [/META-INF/hibernate.cfg.xml]

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.
initializeBean(AbstractAutowireCapableBeanFactory.java:1804) ~[spring-beans.jar:5.3.34]

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.
doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans.jar:5.3.34]

….more

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) ~[bootstrap.jar:9.0.98]

Caused by: org.hibernate.internal.util.config.ConfigurationException: Could not locate cfg.xml resource [/META-INF/hibernate.cfg.xml]

                at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(
ConfigLoader.java:53) ~[hibernate-core.jar:5.4.33.Final]