Archive

Posts Tagged ‘Websphere’

Websphere class loaders

09/09/2009 mynotes Comments off
  1. Bootstrap
    • jre/lib
    • jre/lib/ext
    • CLASSPATH environment variable
  2. Extension
    • ws.ext.dirs system property to determine the path that is used to load classes.
  3. Application module classloaders
    • shared libraries
  4. Web module classloaders
    • WEB-INF/classes
    • WEB-INF/lib

Updating ejb deployment descriptor in installed applications with the wsadmin tool

open wsadmin shell


ksh ./wsadmin.sh -lang jython -conntype SOAP -host yourhost.com -port 8879 -user userid -password password

print AdminApp.update('MyAppName', 'file', '[-operation update -contents /home/users/sg/1.xml -contenturi MyEJB.jar/META-INF/ejb-jar.xml]')

where

  • ‘MyAppName’ is display name of my application, deployed with .ear file
  • /home/users/sg/1.xml ejb deployment descriptor that I want to update in my application
  • MyEJB.jar/META-INF/ejb-jar.xml MyEJB.jar is the ejb deployed with in enterprise application (EAP), I want to update deployment descriptor of this ejb.
  • NOTE that -contenturi is
    MyEJB.jar/META-INF/ejb-jar.xml
    NOT
    MyEJB.jar,META-INF/ejb-jar.xml
    if you put , instead of / you will get
    com.ibm.websphere.management.exception.AdminException: ERROR: File does not exist for update operation

    P.S always look in dmgr logs for errors in deployment.

    Websphere Core Group

    Core group is a physical grouping of JVMs in a cell that are candidates to host singleton services. It can contain stand-alone servers, cluster members, Node Agents or the Deployment Manager, each of these run in a JVM.
    Read more…