ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

CSM/MSM: After applying LU02264 jdbc/SWMgrDataSource not found in your tomcat/conf/Context.xml

book

Article ID: 237175

calendar_today

Updated On:

Products

CHORUS SOFTWARE MANAGER

Issue/Introduction

After applying LU02264 to upgrade Apache Tomcat to version 8.5.69 getting jdbc/SWMgrDataSource not found in your tomcat/conf/Context.xml at startup:

 nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'msmDataSource': Invocation of init method failed; nested exception is com.ca.mf20.errors.BaseError: JNDI reference for datasource jdbc/SWMgrDataSource not found in your tomcat/conf/Context.xml
 There is no diagnostic data attached.

Environment

Release : 6.0

Component : Chorus Software Manager

Resolution

The context.xml at /yourparentpath/msm/MSMDeployLog/CEG1JAR/tomcat/conf/context.xml and also at /yourparentpath/msmruntime/tomcat/conf/context.xml seems to have gotten corrupted. In this file there is this resource tag:

<Resource driverClassName="ca.datacom.jdbc.DatacomJdbcDriver"  maxTotal="30" maxIdle="3" maxWaitMillis="5000" name="jdbc/SWMgrDataSource" password="" type="javax.sql.DataSource" url="jdbc:datacom:/ServerName=MSMR5SRX,SystemID=A31SENF,ApplicationID=MSMR5SRX,HostPort=1202,ConnectType=CCI,HostName=nnn.nnn.nn.nn,UserID=SWMGRQA" username=""/>  

The exception is saying that the name parm name="jdbc/SWMgrDataSource" is missing or corrupted.

You could simply verify that it is spelled correctly and that there are no extra spaces then recycle MSMTC.