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

Classes are not loaded as after Hot Deployment in WAS

  • 1.  Classes are not loaded as after Hot Deployment in WAS

    Posted Sun July 12, 2020 10:22 PM
    Hi Team,

    I have manually copied few of the application jars to application(ear) installation location and restarted the Application Server.

    I dont see those jars are loaded in the classloader viewer and nothing dispalyed in the SystemOut.log

    I copied the log4j-api-version.jar, log4j-core-version.jar files to below location and restarted the AppServer.

    <ProfileRoot>/installedApps/CellName/App_Name.ear/

    How to troubleshoot the same?  Do i need to deploy any jars using admin console? or manually copying them to server directly and restarting would work?

    Please suggest. Thank you.

    ------------------------------
    Mallikarjuna Reddy K Systems Consultant
    Websphere Middleware Administrator
    Encora Technologies Pte Ltd
    ------------------------------


  • 2.  RE: Classes are not loaded as after Hot Deployment in WAS

    Posted Mon July 13, 2020 10:05 AM
    Do you have those jars in a class path of any sort (like, in a module jar's MANIFEST.MF)? Jar files in the root of the EAR are not automatically added to application's class paths - they need to be specified in a manifest class path in order to get picked up. If you want them to be automatically visible to the application, you could use a /lib directory in the EAR or the WEB-INF/lib directory in a WAR, assuming your application has a web module.

    ------------------------------
    Jarid Kvale
    ------------------------------