[
https://jira.codehaus.org/browse/MWAS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Javier Murciego reassigned MWAS-58:
-----------------------------------
Assignee: Javier Murciego (was: David J. M. Karlsen)
> Can't use command element for wsadmin because error message says that both
> script and command elements cannot be used together
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: MWAS-58
> URL: https://jira.codehaus.org/browse/MWAS-58
> Project: Maven 2.x WebSphere 6 Plugin
> Issue Type: Bug
> Affects Versions: 1.1.1, 1.2
> Environment: Cent OS 5.3, websphere 6.1.0.27
> Reporter: Jim Solderitsch
> Assignee: Javier Murciego
>
> I tried to switch from using the script argument to the command argument for
> wsAdmin.
> I can't make this work -- I get an error:
> [INFO] [was6:wsAdmin {execution: deploy}]
> [INFO] wsAnt location: /opt/IBM/SDP/runtimes/base_v61/bin/ws_ant.sh
> [INFO] Buildfile:
> /home/jjs/netcds/netcdsPubWAS/Ear/target/was6-maven-plugin/was6plugin-build.1258435890158.xml
> [INFO]
> [INFO] wsAdmin:
> [ERROR]
> [ERROR] BUILD FAILED
> [ERROR]
> /home/jjs/netcds/netcdsPubWAS/Ear/target/was6-maven-plugin/was6plugin-build.1258435890158.xml:44:
> The command and script attributes cannot be specified at the same time.
> I removed all script elements from my pom -- I just have a command element.
> However, the referenced script file generated by the plugin has both:
> <wsAdmin wasHome="/opt/IBM/SDP/runtimes/base_v61" command="deployment =
> AdminConfig.getid('/Deployment:netcds/');appDeploy =
> AdminConfig.showAttribute(deployment, 'deployedObject');classLoad1 =
> AdminConfig.showAttribute(appDeploy,
> 'classloader');AdminConfig.create('LibraryRef', classLoad1, [['libraryName',
> 'netcdsLibLite']]);AdminConfig.save()" profileName="WTE_APPSRV61_FEP1"
> script=""null"" lang="jython" conntype="SOAP" host="jjscentos"
> user="foo" password="bar" jvmMaxMemory="256M" failonerror="true"/>
> How can I make it so only the command attribute is included?
> My POM looks like (in part):
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>was6-maven-plugin</artifactId>
> <version>1.2-SNAPSHOT</version>
> <executions>
> <execution>
> <id>deploy</id>
> <phase>validate</phase>
> <goals>
> <goal>wsDefaultBindings</goal>
> <goal>installApp</goal>
> <goal>wsAdmin</goal>
> <goal>wsStartApp</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <wasHome>/opt/IBM/SDP/runtimes/base_v61</wasHome>
> <profileName>WTE_APPSRV61_FEP1</profileName>
> <conntype>SOAP</conntype>
> <applicationName>netcds</applicationName>
>
> <earFile>${pom.basedir}/target/${project.artifactId}-${project.version}.${project.packaging}</earFile>
> <updateExisting>false</updateExisting>
> <command>deployment =
> AdminConfig.getid('/Deployment:netcds/');appDeploy =
> AdminConfig.showAttribute(deployment, 'deployedObject');classLoad1 =
> AdminConfig.showAttribute(appDeploy,
> 'classloader');AdminConfig.create('LibraryRef', classLoad1, [['libraryName',
> 'netcdsLibLite']]);AdminConfig.save()</command>
> <language>jython</language>
> <host>jjscentos</host>
> <username>foo</username>
> <user>foo</user>
> <password>bar</password>
> </configuration>
> </plugin>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email