Q1) Is there only the entry under the /opt/IBM/WebSphere/.../installedApps/... directory listed in all the class loaders in the Class Loader Viewer for your WAR module? There is no entry for the shared library that contains a classpath entry /opt/WebSphere/CustomerService?
Ans: Yes, there is an entry for /opt/WebSphere/CustomerService and that can be viewed from the class loader view.
2) Is the DataSourceConfiguration.xml also packaged in the .WAR file as well as being in /opt/WebSphere/Customer Service? It looks like it is packaged in the WAR file and if so, that would need "CustomerService" prepended to the name to find it, since the classpath root is ../WEB-INF/classes in the WAR, similar to how it set for the applicationContext.xml. Your import of just "DataSourceConfiguration.xml" will not find it.
Ans: Nope, DataSourceConfiguration.xml is not packaged as part of war file. It is kept in the location of shared library, just it is referenced from war file to load it.
3) There should be an entry in the class loader viewer for the /opt/WebSphere/CustomerService classpath entry in the shared library if the library is bound to the WAR file. Did you bind the WAR module to the shared library in the console ?
Ans: Yes, I could see the entry for /opt/WebSphere/CustomerService in class loader view.
Since you re unable to view the screen print images, I just copied pathos of some libraries from class loader view below:
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/spring-web-5.0.16.RELEASE.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/spring-webmvc-5.0.16.RELEASE.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/spring-xml-3.0.7.RELEASE.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/sqljdbc4-SUPPLIED.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/unijdbc-AWDCS.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/validation-api-1.1.0.Final.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/lib/xml-apis-1.0.b2.jar
file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war
file:/opt/IBM/WebSphere/CustomerService
Any idea now?
#Support#SupportMigration#WebSphereApplicationServer(WAS)