WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to tell the Websphere server that you should look for specific directory and make it available in the classpath?

  • 1.  How to tell the Websphere server that you should look for specific directory and make it available in the classpath?

    Posted Fri October 16, 2020 08:22 AM

    I am using Websphere application server 9. I have some external files that are not supposed to be packaged as part of war file, but those files should be available for Websphere application server in its classpath. i.e the external files should be available in the classpath.

    1. Can anyone tell which directory of Websphere will be available in classpath by default so that I can keep all those files there?
    2. If the above option is not available, I will keep my external files in some location of Websphere server, but how to tell the server that "hey! you should look for specific directory and make it available in your classpath"?



    #Support
    #SupportMigration
    #WebSphereApplicationServer(WAS)


  • 2.  RE: How to tell the Websphere server that you should look for specific directory and make it available in the classpath?

    Posted Fri October 16, 2020 10:04 AM

    You could try to create a shared library

    https://www.ibm.com/support/knowledgecenter/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/tcws_sharedlib.html



    #Support
    #SupportMigration
    #WebSphereApplicationServer(WAS)


  • 3.  RE: How to tell the Websphere server that you should look for specific directory and make it available in the classpath?

    Posted Fri October 16, 2020 12:05 PM

    yuri3, Thanks for the response. I have configured as mentioned in the document, but getting java.io.FileNotFoundException with (No such file or directory). The application is looking at the location : /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Cell01/awdcs_war.ear/awdcs.war/WEB-INF/classes/CustomerService/DataSourceConfiguration.xml . Could you please tell me with what path and name the shared library be created for my scenario? 



    #Support
    #SupportMigration
    #WebSphereApplicationServer(WAS)