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 IndexWebSphere Message Broker SupportIIB v9 MqsiPackageBar - CMP

Post new topicReply to topic
IIB v9 MqsiPackageBar - CMP View previous topic :: View next topic
Author Message
dl123z
PostPosted: Tue Oct 30, 2018 3:58 pm Post subject: IIB v9 MqsiPackageBar - CMP Reply with quote

Newbie

Joined: 25 Oct 2018
Posts: 8

Hello guys,

It's me, again
Excuse me for so many questions in a row.

Well, I generated a Bar File through 2 methods:

- Method 1:Mqsipackagebar
Code:
java -cp ConfigManagerProxy.jar com.ibm.broker.config.appdev.FlowRendererBAR -a <barName> -w <workspacePath> -k <appName>


When I uncompress the bar file, inside my project has this structure
Quote:
---APP
---LIB01


- Method 2:
Toolkit

When I uncompress the bar file, inside my project has this structure
Quote:
---APP
---LIB01
-----META-INF
--------bar-refresh.links
--------manifest.mf
--------service.log
--------user.log


I have doubt, the file generated by method 1 and the file generated by method 2, will be equal?

When I generated by method 1, my folder doesn't include META-INF file


Last edited by dl123z on Wed Oct 31, 2018 11:53 am; edited 1 time in total
Back to top
View user's profile Send private message
dl123z
PostPosted: Wed Oct 31, 2018 11:46 am Post subject: Reply with quote

Newbie

Joined: 25 Oct 2018
Posts: 8

Continuing with the topic, when I open both bar files in Toolkit, I found that the difference is in the .msgflow files.

Bar generated Toolkit:

Quote:
---NAMEFLOW01.msgflow
------Computer Node
------MQ Input
------MQ Output


Bar generated through MQSIPACKAGEBAR

Quote:
---NAMEFLOW01.msgflow
------
------
------


I found that it's related with META-INF: Source

Quote:
If you select a message flow, you can change properties for policy sets, monitoring, and the security profile. You can also expand a message flow and set properties for the nodes in that flow.
............
Properties that you define are contained in the deployment descriptor file (META-INF/broker.xml). The deployment descriptor is parsed when the BAR file is deployed.


Is there an additional step before/after the mqsipackagebar?, so both files are the same.

With this solved, I would already have a solid base to move forward with the integration with Jenkins + Maven, so I avoid that this error is present in this new flow.
Back to top
View user's profile Send private message
timber
PostPosted: Thu Nov 01, 2018 2:09 am Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 868

Quote:
Is there an additional step before/after the mqsipackagebar?
mqsiapplybaroverride is usually executed after mqsipackagebar. Not sure whether it will result in the META-INF directory appearing in the BAR file.
Back to top
View user's profile Send private message
dl123z
PostPosted: Fri Nov 02, 2018 1:19 pm Post subject: Reply with quote

Newbie

Joined: 25 Oct 2018
Posts: 8

timber wrote:
mqsiapplybaroverride is usually executed after mqsipackagebar. Not sure whether it will result in the META-INF directory appearing in the BAR file.


I realized seeing the differences between the two bar files generated by different methods.
----------------------------------------

Update:

Adding -v <traceFilePath> to the command, I realize that the components of the messageflow are not recognized: ClassNotFoundException

Quote:
2018-11-02 15:06:42.0938 main........... com.ibm.broker.config.appdev.PropertyCompiler.getNodePropertyCompilerClass() threw an exception: com.ibm.broker.config.appdev.propertycompilers.ComIbmMQInputNode. Stack trace follows.
java.lang.ClassNotFoundException: com.ibm.broker.config.appdev.propertycompilers.ComIbmMQInputNode
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.ibm.broker.config.appdev.PropertyCompiler.getNodePropertyCompilerClass(PropertyCompiler.java:314)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.addNode(FlowRendererInternalCMF.java:227)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.renderMessageFlowAsString(FlowRendererInternalCMF.java:145)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.toByteArray(FlowRendererInternalCMF.java:61)
at com.ibm.broker.config.appdev.Flow.<init>(Flow.java:51)
at com.ibm.broker.config.appdev.BARInternalZip.zipDirectory(BARInternalZip.java:121)
at com.ibm.broker.config.appdev.BARInternalZip.zipDirectory(BARInternalZip.java:118)
at com.ibm.broker.config.appdev.BARInternalZip.handleContent(BARInternalZip.java:66)
at com.ibm.broker.config.appdev.AppZip.<init>(AppZip.java:44)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.zipDirectory(FlowRendererInternalBAR.java:298)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.toByteArray(FlowRendererInternalBAR.java:184)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.toInputStream(FlowRendererInternalBAR.java:457)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.write(FlowRendererInternalBAR.java:385)
at com.ibm.broker.config.appdev.FlowRendererBAR.write(FlowRendererBAR.java:143)
at com.ibm.broker.config.appdev.CommandProcessor.packageBAR(CommandProcessor.java:368)
at com.ibm.broker.config.appdev.CommandProcessor.process(CommandProcessor.java:291)
at com.ibm.broker.config.appdev.FlowRendererBAR.main(FlowRendererBAR.java:204)


Quote:
2018-11-02 15:06:42.0959 main........... com.ibm.broker.config.appdev.PropertyCompiler.getNodePropertyCompilerClass() threw an exception: com.ibm.broker.config.appdev.propertycompilers.ComIbmTraceNode. Stack trace follows.
java.lang.ClassNotFoundException: com.ibm.broker.config.appdev.propertycompilers.ComIbmTraceNode
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.ibm.broker.config.appdev.PropertyCompiler.getNodePropertyCompilerClass(PropertyCompiler.java:314)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.addNode(FlowRendererInternalCMF.java:227)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.renderMessageFlowAsString(FlowRendererInternalCMF.java:145)
at com.ibm.broker.config.appdev.FlowRendererInternalCMF.toByteArray(FlowRendererInternalCMF.java:61)
at com.ibm.broker.config.appdev.Flow.<init>(Flow.java:51)
at com.ibm.broker.config.appdev.BARInternalZip.zipDirectory(BARInternalZip.java:121)
at com.ibm.broker.config.appdev.BARInternalZip.zipDirectory(BARInternalZip.java:118)
at com.ibm.broker.config.appdev.BARInternalZip.handleContent(BARInternalZip.java:66)
at com.ibm.broker.config.appdev.AppZip.<init>(AppZip.java:44)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.zipDirectory(FlowRendererInternalBAR.java:298)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.toByteArray(FlowRendererInternalBAR.java:184)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.toInputStream(FlowRendererInternalBAR.java:457)
at com.ibm.broker.config.appdev.FlowRendererInternalBAR.write(FlowRendererInternalBAR.java:385)
at com.ibm.broker.config.appdev.FlowRendererBAR.write(FlowRendererBAR.java:143)
at com.ibm.broker.config.appdev.CommandProcessor.packageBAR(CommandProcessor.java:368)
at com.ibm.broker.config.appdev.CommandProcessor.process(CommandProcessor.java:291)
at com.ibm.broker.config.appdev.FlowRendererBAR.main(FlowRendererBAR.java:204)


CLASSPATH:
C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar
C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mq.jar
C:\Users\UserGeneric\Desktop\FolderLIB\brokerutil.jar
C:\Users\UserGeneric\Desktop\FolderLIB\ConfigManagerProxy.jar

Is there any PATH that I'm missing to use MQSIPACKAGEBAR?

PD: I found a similar post
http://www.mqseries.net/phpBB/viewtopic.php?t=62211&sid=b95a6273cd333207539dcfbee837a9e9
But, It is a very old post and he never mentioned if he managed to solve the problem with the PMR that he sent.
Back to top
View user's profile Send private message
dl123z
PostPosted: Wed Nov 07, 2018 9:09 am Post subject: Reply with quote

Newbie

Joined: 25 Oct 2018
Posts: 8

With mqsipackagebar did not generate a deployable bar file containing a simple message flow (MQInput and Trace).

My team decided to use mqsicreatebar instead, so we need use a node slave with Jenkins to create the bar.

dl123z wrote:
Continuing with the topic, when I open both bar files in Toolkit, I found that the difference is in the .msgflow files.

Bar generated Toolkit:

Quote:
---NAMEFLOW01.msgflow
------Computer Node
------MQ Input
------MQ Output


Bar generated through MQSIPACKAGEBAR

Quote:
---NAMEFLOW01.msgflow
------
------
------



For future references: This problem was solved not using broker schema in the project. I don't know why this happened
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportIIB v9 MqsiPackageBar - CMP
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.