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 » Help with MQSICreateBAR Jenkins

Post new topic  Reply to topic
 Help with MQSICreateBAR Jenkins « View previous topic :: View next topic » 
Author Message
tank_n_spank
PostPosted: Fri Sep 05, 2014 4:25 am    Post subject: Help with MQSICreateBAR Jenkins Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

Hello,

I am currently trying to execute MQSICREATEBAR in Jenkins.

Code:

/opt/IBM/WMBT800/mqsicreatebar -data /usr/local/maven/test -b test.bar -p test -o Mytest.msgflow -cleanBuild -trace


However I receive the following message:

/opt/IBM/WMBT800/mqsicreatebar: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Build step 'Execute shell' marked build as failure.

In my test folder in usr/local/maven/test is Mytest.msgflow which is then located in another folder called test - user/local/maven/test/test

Can someone please shed some light?

Also is it possible to fetch files from my repository - Bitbucket, and then use mqsicreatebar to create the bar?

Thanks.


[/code]
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 05, 2014 4:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

try
Code:
 -o test/Mytest.msgflow
?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tank_n_spank
PostPosted: Fri Sep 05, 2014 4:44 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

I just fixed it, and installed the missing package, but now it just hangs and I receive this:

+ /opt/IBM/WMBT800/mqsicreatebar -data /usr/local/maven/test -b test.bar -p test -o test/Mytest.msgflow -cleanBuild -trace

Build step 'Execute shell' marked build as failure
Back to top
View user's profile Send private message
McueMart
PostPosted: Fri Sep 05, 2014 9:09 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

And if you run that exact command outside of jenkins, on the build machine, does it succeed?
Back to top
View user's profile Send private message
tank_n_spank
PostPosted: Mon Sep 08, 2014 12:37 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

I get an error that the folder doesn't exist, but it does.

Another thing is that if I go to the WMBT800 folder and execute mqsicreatebar, it says the command is not found.

Also another question, can I have automating mqsicreatebar builds by only Jenkins and Maven, or do I use Ant as well, in order for this duo/trio to work?

Code:
[root@localhost WMBT800]# /opt/IBM/WMBT800/mqsicreatebar -data /usr/local/maven/test -b test2.bar -p test -o test/Mytest.msgflow -cleanBuild -trace
[2014/09/08/09:26:30] [INFO] CommandProcessor: process { mqsicreatebar arguments: }
[2014/09/08/09:26:30] [INFO] CommandProcessor: process { [-b, test2.bar, -p, test, -o, test/Mytest.msgflow, -cleanBuild, -trace, -wmbtData] }
Sep 8, 2014 9:26:32 AM com.ibm.etools.mft.util.UtilityPlugin logError
SEVERE:
A java.lang.NoClassDefFoundError exception occurred which reported the following message: com.ibm.etools.mft.navigator.utils.NavigatorFlowUtils.

Turn on tracing to capture details of the error. Retry the operation and contact your IBM support center.
Throwable occurred: java.lang.NoClassDefFoundError: com.ibm.etools.mft.navigator.utils.NavigatorFlowUtils
   at com.ibm.etools.mft.esql.lang.util.EsqlUtil.formSchemaString(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidationVisitor.visit(Unknown Source)
   at com.ibm.etools.esql.lang.esqllang.impl.SchemaStatementImpl.accept(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidator.validate(Unknown Source)
   at com.ibm.etools.esql.lang.builder.EsqlLangPluginBuilder.processPluginFile(Unknown Source)
   at com.ibm.etools.mft.uri.pluginspace.PluginBuilders.buildFile(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.buildFiles(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.init(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin$2.runInWorkspace(Unknown Source)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
   at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.ibm.etools.mft.navigator (943).
   at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(Unknown Source)
   at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 11 more
Caused by: org.osgi.framework.BundleException: Exception in com.ibm.etools.mft.navigator.NavigatorPlugin.start() of bundle com.ibm.etools.mft.navigator.
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Unknown Source)
   at org.eclipse.osgi.framework.util.SecureAction.start(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(Unknown Source)
   ... 21 more
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
   /opt/IBM/WMBT800/configuration/org.eclipse.osgi/bundles/3637/1/.cp/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
   swt-pi-gtk (Not found in java.library.path)
   /tmp/swtlib-32/libswt-pi-gtk-3659.so (/tmp/swtlib-32/liblibswt-pi-gtk-3659.so.so: cannot open shared object file: No such file or directory)
   /tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
   /tmp/swtlib-32/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)

   at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
   at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
   at org.eclipse.swt.internal.gtk.OS.<clinit>(Unknown Source)
   at java.lang.J9VMInternals.initializeImpl(Native Method)
   at java.lang.J9VMInternals.initialize(Unknown Source)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
   at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
   at java.lang.J9VMInternals.initializeImpl(Native Method)
   at java.lang.J9VMInternals.initialize(Unknown Source)
   at com.ibm.cic.licensing.common.ui.Messenger.displayError(Unknown Source)
   at com.ibm.cic.licensing.common.LicenseCheck.requestLicense(Unknown Source)
   at com.ibm.etools.mft.navigator.NavigatorPlugin.start(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Unknown Source)
   ... 27 more
Sep 8, 2014 9:26:32 AM com.ibm.etools.mft.util.UtilityPlugin logError
SEVERE: com.ibm.etools.mft.navigator.utils.NavigatorFlowUtils
Throwable occurred: java.lang.NoClassDefFoundError: com.ibm.etools.mft.navigator.utils.NavigatorFlowUtils
   at com.ibm.etools.mft.esql.lang.util.EsqlUtil.formSchemaString(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidationVisitor.visit(Unknown Source)
   at com.ibm.etools.esql.lang.esqllang.impl.SchemaStatementImpl.accept(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidator.validate(Unknown Source)
   at com.ibm.etools.esql.lang.builder.EsqlLangPluginBuilder.processPluginFile(Unknown Source)
   at com.ibm.etools.mft.uri.pluginspace.PluginBuilders.buildFile(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.buildFiles(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.init(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin$2.runInWorkspace(Unknown Source)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
   at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.ibm.etools.mft.navigator (943).
   at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(Unknown Source)
   at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 11 more
Caused by: org.osgi.framework.BundleException: Exception in com.ibm.etools.mft.navigator.NavigatorPlugin.start() of bundle com.ibm.etools.mft.navigator.
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Unknown Source)
   at org.eclipse.osgi.framework.util.SecureAction.start(Unknown Source)
   at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(Unknown Source)
   ... 21 more
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
   /opt/IBM/WMBT800/configuration/org.eclipse.osgi/bundles/3637/1/.cp/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
   swt-pi-gtk (Not found in java.library.path)
   /tmp/swtlib-32/libswt-pi-gtk-3659.so (/tmp/swtlib-32/liblibswt-pi-gtk-3659.so.so: cannot open shared object file: No such file or directory)
   /tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
   /tmp/swtlib-32/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)

   at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
   at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
   at org.eclipse.swt.internal.gtk.OS.<clinit>(Unknown Source)
   at java.lang.J9VMInternals.initializeImpl(Native Method)
   at java.lang.J9VMInternals.initialize(Unknown Source)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
   at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
   at java.lang.J9VMInternals.initializeImpl(Native Method)
   at java.lang.J9VMInternals.initialize(Unknown Source)
   at com.ibm.cic.licensing.common.ui.Messenger.displayError(Unknown Source)
   at com.ibm.cic.licensing.common.LicenseCheck.requestLicense(Unknown Source)
   at com.ibm.etools.mft.navigator.NavigatorPlugin.start(Unknown Source)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Unknown Source)
   ... 27 more
Sep 8, 2014 9:26:32 AM com.ibm.etools.mft.util.UtilityPlugin logError
SEVERE:
A java.lang.NoClassDefFoundError exception occurred which reported the following message: com/ibm/etools/mft/navigator/utils/NavigatorFlowUtils.

Turn on tracing to capture details of the error. Retry the operation and contact your IBM support center.
Throwable occurred: java.lang.NoClassDefFoundError: com/ibm/etools/mft/navigator/utils/NavigatorFlowUtils
   at com.ibm.etools.mft.esql.lang.util.EsqlUtil.formSchemaString(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidationVisitor.visit(Unknown Source)
   at com.ibm.etools.esql.lang.esqllang.impl.SchemaStatementImpl.accept(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidator.validate(Unknown Source)
   at com.ibm.etools.esql.lang.builder.EsqlLangPluginBuilder.processPluginFile(Unknown Source)
   at com.ibm.etools.mft.uri.pluginspace.PluginBuilders.buildFile(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.buildFiles(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.init(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin$2.runInWorkspace(Unknown Source)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
   at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
Sep 8, 2014 9:26:32 AM com.ibm.etools.mft.util.UtilityPlugin logError
SEVERE: com/ibm/etools/mft/navigator/utils/NavigatorFlowUtils
Throwable occurred: java.lang.NoClassDefFoundError: com/ibm/etools/mft/navigator/utils/NavigatorFlowUtils
   at com.ibm.etools.mft.esql.lang.util.EsqlUtil.formSchemaString(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidationVisitor.visit(Unknown Source)
   at com.ibm.etools.esql.lang.esqllang.impl.SchemaStatementImpl.accept(Unknown Source)
   at com.ibm.etools.esql.lang.validation.EsqlLangValidator.validate(Unknown Source)
   at com.ibm.etools.esql.lang.builder.EsqlLangPluginBuilder.processPluginFile(Unknown Source)
   at com.ibm.etools.mft.uri.pluginspace.PluginBuilders.buildFile(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.buildFiles(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin.init(Unknown Source)
   at com.ibm.etools.mft.uri.URIPlugin$2.runInWorkspace(Unknown Source)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
   at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
[2014/09/08/09:26:33] [INFO] CommandProcessor: process { Disable auto-build before opening the projects }
[2014/09/08/09:26:33] [INFO] CommandProcessor: openWorkspace {  }
[2014/09/08/09:26:33] [INFO] CommandProcessor: openWorkspace { List of projects to be processed: test }
BIP0960E Incorrect "-a", "-l", "-p", or "-o" argument supplied to mqsicreatebar.

Project directory "test" does not exist.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 08, 2014 4:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

In your command aren't you missing -d workspace or something like that?
Also does you classpath include everything you need?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tank_n_spank
PostPosted: Mon Sep 08, 2014 4:44 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

-data Workspace isn't it? I didn't find the -d option on the ibm's website - http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/an19540_.htm
Back to top
View user's profile Send private message
tank_n_spank
PostPosted: Tue Sep 09, 2014 12:34 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

So basically I am running

Code:
<?xml version="1.0"?>
<project name="project" default="run">
  <target name="run" description="">
    <property name="toolkit.home" value="/opt/IBM/WMBT800" />
    <property name="ant.bars.basedir" value="/usr/local/maven/test" />
    <property name="bar.name" value="${ant.bars.basedir}/test2.bar" />
    <property name="workspace.dir" value="/usr/local/maven/test" />
    <antcall target="build" />
  </target>
  <target name="build">
     <echo message="Building the Message Broker Project @ ${workspace.dir}" />
     <exec executable="${toolkit.home}\mqsicreatebar" spawn="false">
        <arg value="-data" />
            <arg value="${workspace.dir}" />
        <arg value="-b" />
            <arg value="${bar.name}" />
        <!-- List all the message flow projects -->
        <arg value="-p" />
            <arg value="TestProject" />

        <!-- List all the files to be included in the archive -->
        <arg value="-o" />
            <arg value="TestProject\Mytest.msgflow" />
          <!--  <arg value="TestProject_MSET\TestMessageSet\messageSet.mset" /> -->
     </exec>
  </target>
</project>


In Jenkins, the build is successful but the file is not created... Any ideas?

Can someone elaborate on <arg value="-p" /> <arg value="TestProject"/> ? Where exactly should the TestProject directory be?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 09, 2014 12:02 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

all values specified, unless specified in absolute values, are relative to the workspace. So TestProject should be a folder in your Workspace
Project, libraries and other broker artifact values need to be relative to the workspace. bar file, and workspace values may be absolute.

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tank_n_spank
PostPosted: Wed Sep 10, 2014 2:53 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2014
Posts: 37

Thanks for the clarification, makes sense now!
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 » Help with MQSICreateBAR Jenkins
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.