0

IBM Websphere Application Server で Web アプリケーションを AutoDeploy する単純な Jython スクリプトを作成しようとしています。しかし、私はPythonの初心者なので、理解できません。なぜ次のようなエラーになるのですか?

WASX7209I: Connected to process "dmgr" on node was7CellManager01 using SOAP connector;  The type of process is: DeploymentManager
WASX7017E: Exception received while running file "deploy_test.py"; exception information: com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 14, in ?
TypeError: sequence subscript must be integer or slice


私のスクリプト:

appname='name'
source='app.ear'
nodeName='was7Node01'
cell='was7Cell01'
server='server1'
contextRoot='/deploymenttest'

    # 1. node
    # 2. cell
    # 3. server
    # 4. Application Name
    # 5. ContextRoot
    # 5. JNDI target name 
attrs = [
         '-node ', nodeName,
         ' -cell ', cell,
         ' -server ', server,
         ' -appname ', appname,
         ' -CtxRootForWebMod ', contextRoot,
         ' -MapResRefToEJB ', [
                               [ 
                                 appname,"",
                                 source+',WEB-INF/web.xml',
                                 'jdbc/appdb','javax.sql.DataSource',
                                 'jbdc/app22','DefaultPrincipalMapping',
                                 'was7CellManager01/db2inst1',""
                               ]
                               [
                                 appname,"",
                                 source+',WEB-INF/web.xml',
                                 'jdbc/app1db','javax.sql.DataSource',
                                 'jbdc/app22','DefaultPrincipalMapping',
                                 'was7CellManager01/db2inst1',""
                               ]
                             ] 
         ]

AdminApp.install(source, attrs)


何か案は?

事前にどうもありがとうございました。

4

1 に答える 1

2

行 27 で、両方の MapResRefToEJB 値の間にカンマがありません。

于 2012-10-08T12:12:58.193 に答える