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 » IBM MQ Java / JMS » Client jar fiel and com.ibm.mq.headers.jar for 7.5.0.2

Post new topic  Reply to topic
 Client jar fiel and com.ibm.mq.headers.jar for 7.5.0.2 « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Fri Jan 10, 2014 8:10 am    Post subject: Client jar fiel and com.ibm.mq.headers.jar for 7.5.0.2 Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I have a MQ client app in which I replaced the following 4 MQ client files (they were the 'only' 4 MQ client jar files contained within the larger client jar

Code:
com.ibm.mq.jar
dhbcore.jar
com.ibm.mq.jmqi.jar
com.ibm.mqjms.jar


The original jar file that contains the same 4 7.0.0.1 MQ client jars works well.

However, after I ran the jar file after replacing the 7.0.0.1 MQ client jars with 7.5.0.2 jar files, I get the following error (java stack):

Code:
Caught Exception while Creating QueueConnection from QueueConnectionFactory
com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception occurred in the Java(tm) MQI.
The Java(tm) MQI has thrown an exception describing the problem.
See the linked exception for further information.
com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception occurred in the Java(tm) MQI.
The Java(tm) MQI has thrown an exception describing the problem.
See the linked exception for further information.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
...
...
...
        ... 11 more
Caused by: java.lang.NoClassDefFoundError: com/ibm/mq/headers/MQDataException
        at com.ibm.mq.ese.service.ServicesFactoryImpl.createPolicyService(ServicesFactoryImpl.java:173)
        at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.createServices(InterceptedJmqiImpl.java:224)
        at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.<init>(InterceptedJmqiImpl.java:184)
        at com.ibm.mq.ese.jmqi.ESEJMQI.<init>(ESEJMQI.java:117)
        ... 16 more
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.headers.MQDataException
        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:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 20 more


Does this mean that the new 7.5.0.2 jar files:

Code:
com.ibm.mq.jar
dhbcore.jar
com.ibm.mq.jmqi.jar
com.ibm.mqjms.jar


are now required to be packaged with the following file

Code:
com.ibm.mq.headers.jar


where the same jar files for 7.0.0.1 were not required to be packaged with this header file ?

Or is there some other problem I am not aware of

Many thanks in advance
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Fri Jan 10, 2014 9:04 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

Swapping jar files and only jar files is not a supported way of providing MQ connectivity to an MQ Client app.

Install the full MQ Client and point your app at the location of the jar files where the install put them.

When it comes time to upgrade, upgrade the MQ Client install.


And yes, I think its too much to have to do all this just for a few jar files. But its the only supported way, currently. I wish IBM would bring back the MA88 Support Pack.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Gideon
PostPosted: Fri Jan 10, 2014 9:24 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

Yes, I agree that is the supported way, however I am being tasked to perform this configuration this way

Of the four standard client files used in 7.0.0.1 referenced below:

Code:
com.ibm.mq.jar
dhbcore.jar
com.ibm.mq.jmqi.jar
com.ibm.mqjms.jar


Do these same files within 7.6.0.2 now reference and thus require the presence of the following jar file ?

Code:
com.ibm.mq.headers.jar
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Jan 11, 2014 1:04 am    Post subject: Reply with quote

Grand High Poobah

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

Obviously, what you had is no longer enough. So what have you tried?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Client jar fiel and com.ibm.mq.headers.jar for 7.5.0.2
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.