| Author | 
		  Message
		 | 
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 6:13 am    Post subject: MQ ftecreateAgent as Windows Service | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				Hi, 
 
 
Having issues running an FTE Agent as a Windows Service. 
 
 
Getting this error in the Stderr.log for the Agent: 
 
 
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.mq.jmqi.JmqiException
 
at java.lang.J9VMInternals.verifyImpl(Native Method)
 
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
 
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
 
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
 
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:4 
 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:600)
 
at com.ibm.wmqfte.agent.bootstrap.impl.BootstrapMain.run(BootstrapMain.java:271)
 
at com.ibm.wmqfte.agent.bootstrap.impl.BootstrapMain.main(BootstrapMain.java:117)
 
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jmqi.JmqiException
 
at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
 
... 11 more
 
 
 
I'm thinking its a ClassPath issue, but not sure where to add the ClassPath for the Agent. 
 
 
Any suggestings on fixing this issue. 
 
 
Thanks, 
 
 
Patrick | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 6:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				I'd expect that to represent an install or configuration error.
 
 
Can you mention the steps you took to install and configure the FTE agent? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 6:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				Here is the cmd I used to install the agent: 
 
 
fteCreateAgent -agentName MQTestAgent -agentQMgr  RAH.PROD.QM -agentDesc  MQTestService -s MQTestAgent -su corporate\svc_srvMQGateway -sp SomePassword
 
 
(Had to run as Administrator Cmd Prompt)
 
 
Then I ran the cmd: runmqsc RAH.PROD.QM < MQTestAgent_create.mqsc
 
 
Then I checked windows services to see if it is running, it was not, so I started it and it started and then when I refreshed the list it was stopped.
 
 
Thanks, 
 
 
Patrick | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 7:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| RJETMQ wrote: | 
   
  
	| Here is the cmd I used to install the agent:  | 
   
 
 
No, that's what you used to create the agent. 
 
 
How did you *install* FTE? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 7:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				Hi, 
 
 
I downloaded the install exe and ran through the setup program.  Accepted the defaults, received no errors during the install. 
 
 
I'm having no issues with other "non' Windows Service Agents.  Only when I try creating them as a Windows Service. 
 
 
Thanks,
 
 
Patrick | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 7:52 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 7:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				C:\>ftedisplayversion
 
 
5724-H72 Copyright IBM Corp.  2008, 2012.  ALL RIGHTS RESERVED
 
Name:          WebSphere MQ Managed File Transfer
 
Version:       7.5 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 8:11 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				| Two possibilities: The MQ install is not the default MQ install, or JAVA_HOME is configured. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 8:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				Hi, 
 
 
MQ installed in Default location, and JAVA_HOME is set to this location: 
 
 
C:\Program Files (x86)\IBM\WebSphere MQ\java\jre\bin
 
 
Thanks, 
 
 
Patrick | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 8:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				there's a note in the v7.5 info center on configuring an FTE agent as a windows service that JAVA_HOME needs to be unset.
 
 
And "default location" is not the same thing as "default install" - see setmqenv. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RJETMQ | 
		  
		    
			  
				 Posted: Tue Mar 26, 2013 9:07 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 19 Dec 2012 Posts: 8
  
  | 
		  
		    
			  
				Is this what you are meaning: 
 
 
P:\>dspmqinf RAH.PROD.QM
 
QueueManager:
 
   Name=RAH.PROD.QM
 
   Directory=RAH!PROD!QM
 
   Prefix=C:\Program Files (x86)\IBM\WebSphere MQ
 
   InstallationName=HQIND
 
 
P:\>dspmqinst
 
InstName:      HQIND
 
InstDesc:      RAH HQ IND MQ Server
 
Identifier:    1
 
InstPath:      C:\Program Files (x86)\IBM\WebSphere MQ
 
Version:       7.5.0.0
 
Primary:       Yes
 
State:         Available
 
MSIProdCode:   {38E913AA-0F10-434C-BEEC-7473D6C196E8}
 
MSIMedia:      7.5 Server
 
MSIInstanceId: 1
 
 
Thanks, 
 
 
Patrick | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |