ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » setting mqsiprofile in ANT on Linux

Post new topic  Reply to topic
 setting mqsiprofile in ANT on Linux « View previous topic :: View next topic » 
Author Message
sumit
PostPosted: Mon Mar 09, 2015 4:29 pm    Post subject: setting mqsiprofile in ANT on Linux Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

Hi,

IIBv9.0.0.2
OS- Linux

Another problem for which I need suggestions.
To achieve continuous integration, I've created an ANT script to execute mqsiapplybaroverride, mqsideploy and mqsichangeflowmonitoring (mqsideploybaroverride was added in the last after testing that other 2 commands were working fine).
I am running this ant script with a user id which has mqsiprofile set. However, when I am executing the script, I am getting this error
Code:
[exec] Error: Could not find or load main class com.ibm.broker.config.util.ApplyBarOverride


I have checked that I can run mqsiapplybaroverride command directly through command prompt.

I've checked some suggestion given in this site. Have also checked this and modified the script to look like-
Code:
<exec executable=". ${mqsi.dir}/mqsiprofile;mqsiapplybaroverride" failonerror="true" logError="true" vmlauncher="false" append="true">
         <arg value="-b"/>
         <arg value="${barfile}"/>
         <arg value="-k"/>
         <arg value="${project}"/>
         <arg value="-p"/>
         <arg value="${bar.update.properties}"/>
         <arg value="chan-o"/>
         <arg value="${updated.barfile}"/>
         <arg value="-v"/>
         <arg value="${overridetrace.file.name}"/>
      </exec>

Yet, no success. What am I missing?
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
sumit
PostPosted: Mon Mar 09, 2015 4:35 pm    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

I am rather inclined towards a fix that can be done in ANT script itself, instead of calling a shell script.
Using a shell script for it would probably be the last option that I am keeping.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
sumit
PostPosted: Tue Mar 10, 2015 7:58 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

This is working for us now. For any user facing similar problem, this is what we did-
1. Referred this link
2. Updated exec of ANT to look like=
Code:
<exec executable="/bin/sh">
         <arg value="-c"/>
         <arg value="source <mqsiprofilepath>/mqsiprofile;mqsiapplybaroverride .... <parameters>
</exec>


I am still not sure why ANT is not inherriting the mqsiprofile at the userid level.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » setting mqsiprofile in ANT on Linux
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.