Monday, March 23, 2009

Command line deployment war file on Oracle Application Server 10.1.2

It is possible to deploy an war or ear file from the command line with an Oracle Application server 10.1.2.

Deploy war file:

$ORACLE_HOME/dcm/bin/dcmctl deployApplication -f filename.war -a "application name" -co oc4j_container -rc /contextroot


Deploy ear file:

$ORACLE_HOME/dcm/bin/dcmctl deployApplication -f filename.ear -a "application name" -co oc4j_container


The application will not be visible in the em console. An restart of the em console solves the problem.

emctl stop iasconsole
emctl start iasconsole

1 comment:

  1. Thanks for the post. this helped me script my deployments.

    ReplyDelete

comment