Author |
Message
|
ShubhP |
Posted: Tue Aug 13, 2019 8:42 pm Post subject: mqsicreatebar success But no META-INF/broker.xml generated |
|
|
Novice
Joined: 03 Jul 2019 Posts: 15
|
Hi
Trying to use mqsicreatebar command to create bar file, which needs to be use in deployment automation of bar using ANT.
mqsicreatebar returns success But cannot generate the broker.xml in the META-INF folder of the generated bar.
Using following cmd :
mqsicreatebar -data C:\WorkSpace -b C:\TestTest.bar -cleanBuild -p test1.mf\com\test\f7\test\txn\test.msgflow common.mf\test_ExceptionReply.subflow -l common.msLIB common.tds.msLIB
Please suggest.
Thanks
SHubhP |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 14, 2019 4:53 am Post subject: Re: mqsicreatebar success But no META-INF/broker.xml generat |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ShubhP wrote: |
mqsicreatebar returns success But cannot generate the broker.xml in the META-INF folder of the generated bar. |
Why not? You say it returns success but does it return any additional messages?
How do you know the broker.xml is missing? Do you look? If so, why? What happens when you try to deploy the resulting "incomplete" bar?
What happens if you run this command manually and not inside the environment Ant is using?
What version of the product are you using?
Better information, better advice. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ShubhP |
Posted: Wed Aug 14, 2019 4:59 pm Post subject: Re: mqsicreatebar success But no META-INF/broker.xml generat |
|
|
Novice
Joined: 03 Jul 2019 Posts: 15
|
Vitor wrote: |
ShubhP wrote: |
mqsicreatebar returns success But cannot generate the broker.xml in the META-INF folder of the generated bar. |
Why not? You say it returns success but does it return any additional messages?
How do you know the broker.xml is missing? Do you look? If so, why? What happens when you try to deploy the resulting "incomplete" bar?
What happens if you run this command manually and not inside the environment Ant is using?
What version of the product are you using?
Better information, better advice. |
Thanks for your reply Vitor
Yes It returns some additinal warning messages.
Right now I am using IIB cmd console to run mqsicreatebar command which return the success, and bar file created in the corresponding directory. But when I check the generated bar file, broker.xml file is missing (not generated) in META-INF folder.
Fyi Below is logs
*C:\Program Files\IBM\IIB\10.0.0.16>mqsicreatebar -data C:\ShubhPWorkSpace -b C:\TestTest.bar -cleanBuild -a TestService.mf -p TestService.mf\com\TEST\TEST\TEST\Servicetx
n\TestService.msgflow TEST.TEST.common.mf\com\TEST\TEST\common\TestService_ErrReply.subflow TEST.TEST.common.mf\com\TEST\TEST\common\_errorhandle.subflow
-l TEST.TEST.common.msLIB TEST.TEST.common.arm.msLIB TestService.msLIB
Warning: NLS unused message: DFDLXSDResourceBuilder_errorSchemaInAppImportSchemaInSharedLib in: com.ibm.etools.msg.builder.messages
Warning: NLS unused message: DFDLXSDResourceBuilder_errorProjectReferenceIsMissing in: com.ibm.etools.msg.builder.messages
Warning: NLS missing message: Messages_EnumValue_testElement_empty in: com.ibm.etools.msg.coremodel.utilities.messages
BIP0986I Command completed successfully.*
Please suggest
Thank You
ShubhP |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 14, 2019 7:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
well you did not supply the -ignoreErrorsInWorkspace flag so indeed it does give a few errors and a few warnings.
You need to supply that flag so that errors in the workspace not concerning the flows you want to build will be ignored.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ShubhP |
Posted: Wed Aug 14, 2019 8:05 pm Post subject: |
|
|
Novice
Joined: 03 Jul 2019 Posts: 15
|
fjb_saper wrote: |
well you did not supply the -ignoreErrorsInWorkspace flag so indeed it does give a few errors and a few warnings.
You need to supply that flag so that errors in the workspace not concerning the flows you want to build will be ignored.
Have fun  |
STill the broker.xml is not generated in the the META-INF folder of created bar. |
|
Back to top |
|
 |
abhi_thri |
Posted: Wed Aug 14, 2019 11:48 pm Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
ShubhP wrote: |
STill the broker.xml is not generated in the the META-INF folder of created bar. |
hi...where exactly in the Bar file are you checking for the broker.xml...for application bar file the broker.xml should come under the .appzip folder not directly under the root folder, eg:-
-- Application1.bar
-- META-INF (no broker.xml here)
-- Application1.appzip
-- META-INF (should be able to find the broker.xml) here |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 15, 2019 5:06 am Post subject: Re: mqsicreatebar success But no META-INF/broker.xml generat |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ShubhP wrote: |
But when I check the generated bar file, broker.xml file is missing (not generated) in META-INF folder. |
Vitor wrote: |
What happens when you try to deploy the resulting "incomplete" bar? |
So what happens?
And I repeat my question - what has led you to look in the bar file in the first place? What happened that made you suddenly decide to look for this file? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ShubhP |
Posted: Fri Aug 16, 2019 3:44 am Post subject: |
|
|
Novice
Joined: 03 Jul 2019 Posts: 15
|
abhi_thri wrote: |
ShubhP wrote: |
STill the broker.xml is not generated in the the META-INF folder of created bar. |
hi...where exactly in the Bar file are you checking for the broker.xml...for application bar file the broker.xml should come under the .appzip folder not directly under the root folder, eg:-
-- Application1.bar
-- META-INF (no broker.xml here)
-- Application1.appzip
-- META-INF (should be able to find the broker.xml) here |
Thanks A lot ABhi, i can see the broker xml there !! |
|
Back to top |
|
 |
|