在Weblogic群集上使用Weblogic.deployer部署Webapp

时间:2019-05-06 20:24:13

标签: jenkins weblogic pipeline

我正在尝试将webapp sample.war文件部署到在基于docker的环境中运行的weblogic群集(12C),但出现以下错误:

java.io.FileNotFoundException: class path resource [properties/ssl/ssl.properties] cannot be opened because it does not exist.

以下是我正在使用的命令:     docker exec -it wlsadmin /u01/oracle/deploy.sh CHGXXXX weblogic weblogic1!

下面是我的deploy.sh代码:

#!/bin/bash
set -x
CHANGE=$1
WL_USER=$2
WL_PASS=$3
source ~/.bash_profile
WL_PATH="/u01/oracle"
TARGET=DockerCluster
cd $WL_PATH/$CHANGE
for FILE in `find *.war`
do
java -cp $CLASSPATH weblogic.Deployer -adminurl http://XXXX:XXXX -username 
$WL_USER - password $WL_PASS -deploy $FILE -targets DockerCluster
done

0 个答案:

没有答案