000037002 - Backoffice Deployment failing in Weblogic in RSA Adaptive Authentication (OnPrem)

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

Article Content

Article Number000037002
Applies ToRSA Product Set: Adaptive Authentication (OnPrem)
RSA Product/Service Type: Adaptive Authentication (OnPrem)
RSA Version/Condition: 7.2
Platform: Weblogic wls-10.3.6.0_181016
IssueAn error was reported during deployment of Adaptive Authentication (on Premise) 7.2 in Weblogic 10.3.6.0 application server as shown in the example below:
 

ERROR [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [] [] [org.springframework.web.context.ContextLoader]
- <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factDao': Injection of persistence dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory-PassmarkToolPU'
defined in URL
[zip:/apps/web/weblogic/brsabpd_svc/wls-10.3.6.0/managed1/servers/managed1/stage/backoffice/backoffice/WEB-INF/lib/bo-auth-services-1.3.1_3.jar!
/configs/be/bo_base/entity-manager.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)


 
CauseAn important prerequisite step required to deploy RSA Adaptive Authentication and other apps in the Weblogic application server was missed.
ResolutionBefore you deploy the web applications, do the following:
  1. In the artifacts/webapps directory, from any <WebApp>/WEB-INF/lib location, copy javax.persistence_1.1.0.0_2-0.jar to <App-Server-Location>/Middleware/Oracle_Home/oracle_common/modules.
  2. Edit the WebLogic startup script file as follows:
    • In Windows, locate the startWebLogic.cmd file.
    • In Linux or UNIX, locate the startWebLogic.sh file.
  3. Locate the “set CLASSPATH” statement.
  4. Verify that the javax.persistence_1.0.0.0_2-0-0.jar is listed first in the classpath. For example, if WebLogic is installed in the c:\Oracle\Middleware directory, the entry should appear as follows: set CLASSPATH=c:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_2-0-0.jar;%SAVE_CLASSPATH%

Attachments

    Outcomes