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' fails referencing Java proj- known issue?

Post new topic  Reply to topic Goto page Previous  1, 2
 'mqsicreatebar' fails referencing Java proj- known issue? « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Thu Mar 27, 2008 11:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

roysterdoyster wrote:
Would be good to share the knowledge of these scripts amongst the community.


Some sites are quite clear on who owns what's been developed with their time and money.

roysterdoyster wrote:
IMHO ClearCase UCM is odd as baselines are a 'label in time' across all components rather than on individual elements. We're working through this at the moment.


It does seem odd.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 27, 2008 11:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

roysterdoyster wrote:
Would be good to share the knowledge of these scripts amongst the community.


Some sites are quite clear on who owns what's been developed with their time and money.

roysterdoyster wrote:
IMHO ClearCase UCM is odd as baselines are a 'label in time' across all components rather than on individual elements. We're working through this at the moment.


It does seem odd.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
roysterdoyster
PostPosted: Fri Mar 28, 2008 6:52 am    Post subject: Reply with quote

Apprentice

Joined: 26 Oct 2007
Posts: 25
Location: Glasgow, UK

PMR has now been raised but here is a bit more detail for those interested, here is the issue:

I have 3 projects:
1 message flow project (containing the main flow) (MAIN_PROJECT)
1 message flow project which contains common sub flows (LIBRARY)
1 Java project (which contains the Java code and libraries used by a Java compute node in on of the subflows used by the main flow) (JAVA_LIBRARY)

1. If I create a new bar file using the toolkit I end up with a bar file with the following contents:
lib/
META-INF/
JAVA_LIBRARY.jar
MESSAGEFLOW1.cmf

where the lib/ folder is actually the lib folder from the Java project, and the JAVA_LIBRARY.jar file is a jarred up copy of the Java project. This bar file deploys ok and has no errors.

2. If I use the mqsicreatebar command to build this same bar file
C:/Program Files/IBM/MessageBrokersToolkit/6.0/eclipse\mqsicreatebar.exe" -data C:/tmp_workspace -b C:/tmp_workspace/deployables/mqsicreated.bar -cleanBuild -p LIBRARY JAVA_LIBRARY MAIN_PROJECT -o MAIN_PROJECT/MESSAGEFLOW1.msgflow

I get a bar file with the following contents:
lib/
META-INF/
MESSAGEFLOW1.cmf

where the JAVA_LIBRARY.jar file has not been included in the bar and the deployment of this bar file fails with
"BIP4368S: The method 'setAttribute' has thrown the following exception: java.lang.ClassNotFoundException: com.mycompany.somejavapackage.somejavaclass.
The Java API framework has caught an unhandled Java exception.
Contact the node provider for further details."

When I look at the service.log file in the META-INF folder I see the message:

"Resource JAVA_LIBRARY.jar was not added to the BAR file because it was not found in the workspace nor found built in metadata. This resource may be required by the
broker because it contains java dependencies for a flow to be deployed in this BAR. If actually required and java project is to be found in worskpace, you can force a build on this project and then retry adding the flow to this BAR. You can also deploy a JAR resource containing these dependencies from the tooling adding it manually to a BAR file or copying it directly to the broker."

3. so if I then manually create the JAVA_LIBRARY.jar file before building the bar and add this to the workspace (at the root of the JAVA_LIBRARY project and rebuild the bar using mqsicreatebar again,

I get a bar file with the following contents:
META-INF/
JAVA_LIBRARY.jar
MESSAGEFLOW1.cmf

where this time the lib directory is missing from the bar file and deployment again fails but now with
"BIP4500E: Failed to deploy Java code resource 'JAR'. The Java stack trace is: 'com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.createJavaComputeNode(Native Method) com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.updateNodeClass(MbRuntimeJavaComputeNode.java:251) com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.updateNodeClass(MbRuntimeJavaComputeNode.java:197) com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.setJavaClass(MbRuntimeJavaComputeNode.java:179)'

The Java JAR file deployment to the broker failed.

This is an internal error. Contact your IBM support center."


So as you can see the toolkit creation of the bar file behaves differently than the mqsicreatebar command and so I get deployment errors when trying to script my build/deployments.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 28, 2008 6:57 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Again, upgrade your Toolkit.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
roysterdoyster
PostPosted: Fri Mar 28, 2008 7:08 am    Post subject: Reply with quote

Apprentice

Joined: 26 Oct 2007
Posts: 25
Location: Glasgow, UK

I'm on 6.0.2 although not sure what fix packs/release were installed to get it to this level. How do I find this out (I'm behind a firewall so online updates don't work)?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 28, 2008 7:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

roysterdoyster wrote:
I'm on 6.0.2 although not sure what fix packs/release were installed to get it to this level.


You should be on at least iFix 11, and all the way up to iFix 13 is not a bad idea.

roysterdoyster wrote:
I'm behind a firewall, so online updates won't work


Who isn't behind a firewall these days??

Ask Mr Google about "WMB toolkit cumulative interim fix" and follow the instructions.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JLRowe
PostPosted: Fri Mar 28, 2008 8:43 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

The mqsicreatebar command says:

Quote:
ProjectName
(Optional) Projects containing files to include in the bar file. You can specify multiple projects, which can include a message flow project, a message set project, or a message flow plug-in node project.


So, it does not handle java projects?

I would say this is not acceptable and there should be an enhancement. In the meantime, I would use the ant jar tasks to add the java project to your bar file.

The ant tasks and commands for WAS also launch eclipse in a headless workspace and have had various problems, this has turned a lot of people away from WAS to other products that are easier to deploy with.
Back to top
View user's profile Send private message Send e-mail
mdmader
PostPosted: Thu Apr 17, 2008 12:15 pm    Post subject: Similar issue Reply with quote

Newbie

Joined: 17 Apr 2008
Posts: 7

I'm seeing the exact same issue. I'm wondering have you heard back from IBM on this subject yet?
Back to top
View user's profile Send private message
roysterdoyster
PostPosted: Sat Apr 19, 2008 5:55 am    Post subject: Reply with quote

Apprentice

Joined: 26 Oct 2007
Posts: 25
Location: Glasgow, UK

Hi,
yes I heard back from them but the problem was fixed by upgrading the toolkit to the latest iFix (13). I closed the PMR but gave them this info:

"When we had PC's with the toolkit at v 6.0.2 (iFix11) we got the error detailed, but when I upgraded to iFix 13 the error went away. It should also be noted that when I used a PC with the toolkit at 6.0.0.1 we didn't see the error so it must have been introduced in either the 6.02 update or the iFix11 update."

Hope that sorts it for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » 'mqsicreatebar' fails referencing Java proj- known issue?
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.