| Author | Message | 
		
		  | encodevj | 
			  
				|  Posted: Thu Feb 03, 2011 9:20 am    Post subject: Configuration Questions |   |  | 
		
		  | Novice
 
 
 Joined: 03 Feb 2011Posts: 13
 
 
 | 
			  
				| Hi All 
 Can we do this
 
 Issue 1:
 
 WebSphere MQ v 7.0 64 bit
 WAS 7.0.0.13 64 bit
 Linux 64 bit
 
 MQ_INSTALL_ROOT WebSphere variables to /opt/mqm
 MQJMS_LIB_ROOT WebSphere variable to ${MQ_INSTALL_ROOT}/java/lib
 
 We then created to soft links as follows, to use the 2 64-bit shared object libs in the lib64 directory:
 lrwxrwxrwx 1 mqm mqm 32 Jan 12 15:41 libmqjbnd.so -> /opt/mqm/java/lib64/libmqjbnd.so
 lrwxrwxrwx 1 mqm mqm 39 Jan 12 15:42 libmqjexitstub02.so -> /opt/mqm/java/lib64/libmqjexitstub02
 
 As our appplication uses the jars that are there in the opt/mqm/java/lib
 
 is it ok to do this , will there be any problem doing like this ?
 because i see a warning in systemOut log
 
 W [:] CWWMQ0094W: A 64 bit JVM has been detected, however the path to the directory '/opt/mqm/java/lib' which is expected to contain the WebSphere MQ native libraries appears to contain 32 bit libraries
 
 
 Issue 2:
 
 when we are running the application we are facing a issue
 
 [2/1/11 17:37:58:421 EST] 0000002e BusinessExcep E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "logon" on bean "ll)". Exception data: java.lang.NoClassDefFoundError: com.ibm.mq.jms.MQConnectionFactory
 at java.lang.J9VMInternals.verifyImpl(Native Method)
 at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
 at com.ibm.workflow.client.api.FmcSession.<init>(FmcSession.java:6
 at com.ibm.workflow.client.api.FmcService.<init>(FmcService.java:54)
 
 
 we saw that the jar for that class is getting loaded in class loader viewer
 
 But when i Provide manually the location of the jars in server classpath
 wasinstall/installedConnectors/***.mq.jar and mqjms.jar
 then i dont see this exception
 
 Please let me know what we are doing worng here
 
 Thanks
 VJ
 
 Last edited by encodevj on Thu Feb 03, 2011 10:46 am; edited 1 time in total
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Thu Feb 03, 2011 9:41 am    Post subject: Re: Configuration Questions |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| encodevj wrote: |  
	| Please let me know what we are doing worng here |  
 You're double posting - we consider that rude.
   
 If you think you've posted in the wrong place, ask a moderator to move the thread.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Thu Feb 03, 2011 10:05 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| So what you're saying is, when you do things one way they work, and when you do them a different way they don't. 
 Why are you trying to do them a different way?
 
 What goals are you trying to accomplish?
 
 What does the documentation say is the correct way to do this task?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | encodevj | 
			  
				|  Posted: Thu Feb 03, 2011 10:16 am    Post subject: Re: Configuration Questions |   |  | 
		
		  | Novice
 
 
 Joined: 03 Feb 2011Posts: 13
 
 
 | 
			  
				| 
   
	| Vitor wrote: |  
	| 
   
	| encodevj wrote: |  
	| Please let me know what we are doing worng here |  
 You're double posting - we consider that rude.
   
 If you think you've posted in the wrong place, ask a moderator to move the thread.
 |  
 hi i am sorry i am new here .....
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Thu Feb 03, 2011 10:17 am    Post subject: Re: Configuration Questions |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| encodevj wrote: |  
	| hi i am sorry i am new here ..... |  
 You'll first the "Read First" section invaluable. Especially the "Posting Guidelines" thread.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | encodevj | 
			  
				|  Posted: Thu Feb 03, 2011 10:21 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 03 Feb 2011Posts: 13
 
 
 | 
			  
				| 
   
	| mqjeff wrote: |  
	| So what you're saying is, when you do things one way they work, and when you do them a different way they don't. 
 Why are you trying to do them a different way?
 
 What goals are you trying to accomplish?
 
 What does the documentation say is the correct way to do this task?
 |  
 Sorry I am unclear about my problem  thanks for replying me
 
 Problem description
 Getting the following exception when attempting to use MQ from within
 our application:
 java.lang.NoClassDefFoundError: com.ibm.mq.jms.MQConnectionFactory
 This class should be available in
 /apps/WebSphere/AppServer/installedConnectors/wmq.jmsra.rar/com.ibm.
 mqjms.jar by default.  We can verify it is in the server classloader by
 viewing using the WebSphere Admin Console.  We are able to move past
 the error when explicitly adding this path to our application classpath
 but feel this should not be necessary.
 Is there something we are missing to have our app. use the WebSphere-   provided MQ jars?  We are running on a 64-bit machine and also have
 WebSphere MQ 7.0.1.3 installed at /opt/mqm.  We require assistance on
 first resolved the NoClassDefFoundErrror and secondly look for guidance
 on our configuration.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Thu Feb 03, 2011 10:32 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| You can't pick and choose which so files you link to.  Why did you think you could?  What lead you to try that option, rather than trying the options in the official documentation? 
 You aren't trying to do things properly, you are trying to guess what the correct thing is.
 
 Go review the documentation for configuring AppServer and MQ.
 
 Perhaps this link.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | encodevj | 
			  
				|  Posted: Thu Feb 03, 2011 10:52 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 03 Feb 2011Posts: 13
 
 
 | 
			  
				| 
   
	| mqjeff wrote: |  
	| You can't pick and choose which so files you link to.  Why did you think you could?  What lead you to try that option, rather than trying the options in the official documentation? 
 You aren't trying to do things properly, you are trying to guess what the correct thing is.
 
 Go review the documentation for configuring AppServer and MQ.
 
 Perhaps this link.
 |  
 When we have not specified the  mq.jar and mqjms.jar in the server class path we have that exception raising
 
 we have followed product document to configure  to WebSphere
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |