Thursday, January 13, 2011

Jrockit Oracle' Java seems to work well with Weblogic.

I tried my weblogic.Deployment through sun java which threw nullpointer error.

so i pointed to jrockit java which seems to have worked,

$export JAVA_HOME=/scratch/test/Oracle/sriram/jrockit_160_22_D1.1.1-3/

To check if weblogic.deployer works with below classpath:

 $java -classpath /scratch/aime1/Oracle/sriram/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -help
Usage: java weblogic.Deployer [options] [action] [Deployment units(s)]

where options include:
    -help             Print the standard usage message.
    -version          Print version information.
    -adminurl <<protocol>://<server>:<port>> [option] Administration
                      server URL: default t3://localhost:7001
    -username <username> [option] user name
    -password <password> [option] password for the user
    -userconfigfile <userconfigfile> [option] The user config file
                      contains the user security credentials; it
                      is administered by the weblogic.Admin tool
    -userkeyfile <keyConfigFile> [option] The users key file; it is
                      administered by the weblogic.Admin tool.
    -distribute       [action] Distribute application to the
                      targets.
    -start            [action] Makes an already distributed
                      application available on a target.
    -stop             [action] Makes an application unavailable on
                      targets.
    -redeploy         [action] Replace a running application
                      partially or entirely.
    -undeploy         [action] Take an application out of service.
    -deploy           [action] Make an application available for
                      service.
    -update           [action] Update an application configuration
                      in place.
    -examples         [option] Displays example usage of this tool.
    -name <application name> [option] Defaults to the basename of the
                      deployment file or directory.
    -targets <<target(s)>> [option] A comma separated list of targets
                      for the current operation. If not specified,
                      all configured targets are used. For a new
                      application, the default target is the
                      administration server.
    -plan <Deployment plan path> [option] Specifies location of
                      deployment plan
    -library          [option] Indicates that the unit being
                      deployed is a library. This option is
                      required when the application is a library.
    -advanced         Print advanced usage options.

The optional trailing arguments are deployment units and may
represent the archive being deployed, the name of a previously
deployed application or a list of files for a partial redeploy operation.

No comments:

Post a Comment