000036219 - RSA Adaptive Authentication (on Premise) - BackOffice fails to deploy in JBoss Application Server version 6.4.19

Document created by RSA Customer Support Employee on May 9, 2018
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000036219
Applies ToRSA Product Set: Adaptive Authentication (OnPrem)
RSA Product/Service Type: Adaptive Authentication (OnPrem)
RSA Version/Condition: 7.3
Platform: JBoss 6.4
 
IssueA customer was working on some security vulnerabilities reported in JBoss and the fix was to upgrade JBoss to version 6.4.19. After JBoss upgrade BackOffice application failed to deploy with the following error.
 

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/reportviewer]] (ServerService Thread Pool -- 52) JBWEB000287:
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'genConfigParamDao' defined in class path resource [configs/d-config-configService.xml]:
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory' defined in class path resource [configs/d-config-datasource.xml]:
Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'dataSource': Post-processing of the FactoryBean's object failed;
nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException:
warning can't determine superclass of missing type org.jboss.as.connector.subsystems.datasources.WildFlyDataSource
[Xlint:cantFindType]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]


 
CauseBug
Workaround

Change the following files :
accessmanagement.war/WEB-INF/classes/configs/d-config-datasource.xml
casemanagement.war/WEB-INF/classes/configs/d-config-datasource.xml
scheduler.war/WEB-INF/classes/d-config-cre.xml
scheduler.war/WEB-INF/classes/configs/d-config-datasource.xml
wscredentialmanager.war/WEB-INF/classes/configs/d-config-datasource.xml



adding the "proxyInterface" property like this :



<bean class="org.springframework.jndi.JndiObjectFactoryBean" id="dataSource">
<property name="jndiName" value="java:comp/env/jdbc/PassMarkDB"/>
<property name="proxyInterface" value="javax.sql.DataSource" />
</bean>

Customer has to build the war file again to deploy it in JBoss after making this change.

Attachments

    Outcomes