Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
User Commandsasadmin-deploydir(1AS)


NAME

 asadmin-deploydir, deploydir - deploys the J2EE component that is in the directory located on the server machine

SYNOPSIS

 deploydir --user admin_user[ --password admin_password ][ --host localhost ] [ --port 4848 ][ --passwordfile filename ][ --secure|-s ][ --virtualservers virtual_servers ] [ --type application|ejb|web|connector ][ --contextroot context_root ][ --force=true ] [ --precompilejsp=false ][ --verify=false ][ --name component_name ] [ --instance instance_name ]dirpath

DESCRIPTION

 

Use the deploydir command to deploy the J2EE component that is in the directory located on the server machine. The --force option makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists. Set --force to false for a first deployment. If the application with that name is running, and force is set to false, the command fails.


OPTIONS

 
--user
administrative user associated for the instance.
--password
administrative password corresponding to the administrative user.
--host
host name of the machine hosting the administrative instance.
--port
administrative port number associated with the administrative host.
--passwordfile
file containing passwords appropriate for the command (e.g., administrative instance).
--secure
if true, uses SSL/TLS tocommunicate with the administrative instance.
--virtualservers
comma separated list of virtual server IDs.
--type
identifies the type of component to be deployed; defaults to the type application.
--contextroot
valid only if the archive is a web module. It is ignored for other archive types; defaults to filename without extension.
--force
makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists.
--precompilejsp
by default is set to false which does not allow the JSP to pre-compile during deployment. Instead JSPs are compiled during runtime.
--verify
the syntax and semantics of the deployment descriptor is verified if set to true.
--name
name of the deployable component.
--instance
name of the instance.

OPERANDS

 
dirpath
path to the directory containing the exploded format of the deployable archive.

EXAMPLES

 Example 1. Using deploydir
 
 
asadmin> deploydir --user admin --passwordfile passwords.txt --host localhost --port 4848 --force --precompilejsp --verify --name fortune --type application --instance server1 /export/samples/fortune
Deployed the application:fortune

Where: the fortune application is deployed to the directory specified.


EXIT STATUS

 
0
command executed successfully
1
error in executing the command

INTERFACE EQUIVALENT

 

Applications folder, Module interface


SEE ALSO

 

asadmin-deploy(1AS), asadmin-undeploy(1AS), asadmin- enable(1as), asadmin-disable(1AS), asadmin-list-components(1)



Sun ONE Application ServerGo To TopLast Changed 9 Sep 2002


Updated: 2003-06-13, 20:30