2014-11-06 77 views
0

我可以通過這個命令java.lang.IllegalArgumentException異常:WASX7122E:預期 「 - 」 沒有找到

AdminApp.update('CUSWS', 'app', 'the options below') 

手動更新應用程序,但是當我從Jython腳本更新

appName = '\'' +appName+ '\'' 
updatetype = '\'app\'' 
appOptions = \'' +options+ '\'' 
AdminApp.update(appName, updatetype, appOptions) 

我下面的錯誤。

java.lang.IllegalArgumentException: WASX7122E: Expected "-" not found. 

'[ -operation update -contents /data/CUSWS-uat-20141106.war -nopreCompileJSPs -installed.ear.destination $(APP_INSTALL_ROOT)/cusws1cell01 -distributeApp -nouseMetaDataFromBinary -nodeployejb -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -noenableClientModule -clientMode isolated -novalidateSchema -contextroot /CUSWS -MapModulesToServers [[ "Apache-Axis" CUSWS-uat-20141106.war,WEB-INF/web.xml WebSphere:cell=cusws1cell01,cluster=cuswsGWCluster+WebSphere:cell=cusws1cell01,node=cuswsIHSnode1,server=webserver1 ]] -MapWebModToVH [[ "Apache-Axis" CUSWS-uat-20141106.war,WEB-INF/web.xml default_host ]] -CtxRootForWebMod [[ "Apache-Axis" CUSWS-uat-20141106.war,WEB-INF/web.xml /CUSWS ]]]' 

我試着解決這個問題2天,但找不到錯誤。
我錯過了什麼? 請幫助,謝謝..

回答

0

清除wsadmin.traceout日誌。然後手動運行並通過腳本和比較日誌。它應該給你一些更多的提示腳本什麼是錯的。

0

在更新選項的開頭和結尾處刪除括號[和]可以解決我的問題。

相關問題