Install stand-alone Java archive and Web archive files with the wsadmin tool

Overview

Use the AdminApp object commands to install Java archive (JAR) and Web archive (WAR) files. The archive file must end in .jar or .war for the wsadmin tool to install. The wsadmin tool uses these extensions to figure out the archive type.

  1. Invoke the AdminApp object commands interactively, in a script, or use wsadmin -c from an operating system command prompt.

  2. Issue one of the following commands:

    The following command uses the EAR file and the command option information to install the application:

    Using Jacl:

    $AdminApp install c:/MyStuff/mymodule1.jar {-server serv2}

    [V5.1 and later]Using Jython list:

    AdminApp.install('c:/MyStuff/mymodule1.jar', '[-server serv2]')

    [V5.1 and later]Using Jython string:

    AdminApp.install('c:/MyStuff/mymodule1.jar', ['-server' 'serv2'])

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object supporting application management
    install is an AdminApp command
    c:/MyStuff/mymodule1.jar/MyStuff/mymodule1.jar is the name of the application that will be installed
    server is an installation option
    serv2 is the value of the server option


    The following command allows you to change the application information by prompting you through a series of installation tasks:

    Using Jacl:

    $AdminApp installInteractive c:/MyStuff/mymodule1.jar

    [V5.1 and later]Using Jython:

    AdminApp.installInteractive('c:/MyStuff/mymodule1.jar')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object allowing application objects to be managed
    installInteractive is an AdminApp command
    c:/MyStuff/mymodule1.jar/MyStuff/mymodule1.jar is the name of the application that will be installed


  3. Save the configuration changes with the following command:

    Using Jacl:

    $AdminConfig save

    [V5.1 and later]Using Jython:

    AdminConfig.save()

    Use the reset command of the AdminConfig object to undo changes that you made to your workspace since your last save.