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 » mqsicreatebar and ant error

Post new topic  Reply to topic
 mqsicreatebar and ant error « View previous topic :: View next topic » 
Author Message
kumarm5
PostPosted: Mon Mar 31, 2008 9:44 pm    Post subject: mqsicreatebar and ant error Reply with quote

Newbie

Joined: 30 Mar 2008
Posts: 3

Am doing a very simple thing .... and it not working

here is the build file, which I copied from http://www.ibm.com/developerworks/websphere/library/techarticles/0706_spriet/0706_spriet.html


<?xml version="1.0"?>
<project name="project" default="run">
<target name="run" description="">
<property name="toolkit.home" value="D:\IBM\MessageBrokersToolkit\6.0" />
<antcall target="mqsicreatebar.buildbar" />
</target>

<target name="mqsicreatebar.buildbar">
<echo message="Building Broker Archive file: ${bar.name} " />
<exec executable="${toolkit.home}\eclipse\mqsicreatebar.exe" spawn="false" failonerror="true">
<arg value="--help" />
</exec>
</target>
</project>


------
And my running this from the dos command prompt. Later I also tired running it after mqsiprofile.cmd. Still not luck.

Can someone pl help me this ?
Back to top
View user's profile Send private message
AJStar
PostPosted: Mon Mar 31, 2008 10:14 pm    Post subject: Re: mqsicreatebar and ant error Reply with quote

Acolyte

Joined: 27 Jun 2007
Posts: 64

What is the error that you get??

Try using the other slash...

kumarm5 wrote:
<property name="toolkit.home" value="D:/IBM/MessageBrokersToolkit/6.0" />
.
.
<exec executable="${toolkit.home}/eclipse/mqsicreatebar.exe" spawn="false" failonerror="true">
.

_________________
Regards
AJ
Back to top
View user's profile Send private message
kumarm5
PostPosted: Tue Apr 01, 2008 12:29 am    Post subject: Reply with quote

Newbie

Joined: 30 Mar 2008
Posts: 3

Tired with forward slash, still the same.

ant version -> Apache Ant version 1.7.0 compiled on December 13 2006
mb -> 6.0.2


following is the output of the ant
----
mqsicreatebar.buildbar:
[echo] Building Broker Archive file
[exec] Current OS is Windows XP
[exec] Executing 'D:\IBM\MessageBrokersToolkit\6.0\eclipse\mqsicreatebar.exe' with arguments:
[exec] '--help'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'D:\IBM\MessageBrokersToolkit\6.0\eclipse\mqsicreatebar.exe
' with arguments:
'--help'

The ' characters around the executable and arguments are
not part of the command.
[antcall] Exiting D:\test-build.xml.

BUILD FAILED
D:\test-build.xml:5: The following error occurred while executing this line:
D:\test-build.xml:10: exec returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: D:\test-build.xml:10: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3

at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
... 18 more
--- Nested Exception ---
D:\test-build.xml:10: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3

at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 9 seconds
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 01, 2008 1:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

mqsiprofile.cmd doesn't apply for Toolkit commands.

The error is telling you that the exec did not end successfully - maybe --help causes mqsicreatebar to end with a non-zero rc. What happens if you set failonerror to false?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kumarm5
PostPosted: Tue Apr 01, 2008 3:07 am    Post subject: Reply with quote

Newbie

Joined: 30 Mar 2008
Posts: 3

Right. mqsiprofile.cmd does not apply here, but in desparate thought it might do the trick

i dont think mqsicreatbar --help returns non-zero.

At the end of the day, am trying to build bar file. Since it's giving exception, i thought of running --help.

As mentioned earlier, am doing exactly like what's mentioned in the

http://www.ibm.com/developerworks/websphere/library/techarticles/0706_spriet/0706_spriet.html

Any help would be greatly appreciated ..
Back to top
View user's profile Send private message
AJStar
PostPosted: Tue Apr 01, 2008 7:42 pm    Post subject: Reply with quote

Acolyte

Joined: 27 Jun 2007
Posts: 64

Your script seems fine.
What is the JRE version your ANT uses? You might want to use V1.5 or above if you use ANT V1.7.
_________________
Regards
AJ
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsicreatebar and ant error
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.