orctom / was-maven-plugin

Deploy artifact to one or more, local or remote WebSphere Application Server
Apache License 2.0
47 stars 29 forks source link

No restart of application (restartAfterDeploy=false) #11

Closed FJGL closed 8 years ago

FJGL commented 8 years ago

WASX7017E: Exception received while running file "...\was-maven-plugin\py\deploy-localhost-APP-8.1-SNAPSHOT-20151112-182325-345.py"; exception information: javax.management.MBeanException javax.management.ServiceNotFoundException: Operation startApplication not in ModelMBeanInfo

It works changing to type=ApplicationManager instead of type=Server in websphere.py

       if "" != cluster:
            appManager = AdminControl.queryNames('type=ApplicationManager,process=' + server + ',*')
        elif "" != node:
            appManager = AdminControl.queryNames('node=' + node + ',type=ApplicationManager,process=' + server + ',*')
        else:
            appManager = AdminControl.queryNames('type=ApplicationManager,process=' + server + ',*')

Regards

orctom commented 8 years ago

Good catch! Thank!

orctom commented 8 years ago

Fixed in version 1.1.1