当我通过WLST脚本部署多只耳朵时,无法激活更改。错误如下,无法激活更改。
WLSTException: Error occurred while performing activate : Error while Activating changes. : weblogic.application.ModuleException: Context path '/deployment' is already in use by the module: deployment application: my.ear
我的脚本是:
import os
import sys
import java
def connectAdmin() :
print('connecting to the url:')
try:
connect(username, password, url)
print('Successfully connected')
except:
print 'Unable to find admin server...'
exit()
def deployApplication() :
directory='D:/AMSP/VerCrossCorp/Srinivas/DOMAIN_HOME/amspv97-9709-wl12/servers/AdminServer/deployment'
for filename in os.listdir(directory):
if filename.endswith(".war") or filename.endswith(".ear"):
progress=deploy(filename,directory,targets='AdminServer')
if __name__== "main":
print 'starting the script ....'
username = 'weblogic'
password = 'weblogic'
url='t3://172.27.49.161:9709'
connectAdmin()
edit()
startEdit()
deployApplication()
activate()
disconnect()