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 File Transfer Edition » MQ ftecreateAgent as Windows Service

Post new topic  Reply to topic
 MQ ftecreateAgent as Windows Service « View previous topic :: View next topic » 
Author Message
RJETMQ
PostPosted: Tue Mar 26, 2013 6:13 am    Post subject: MQ ftecreateAgent as Windows Service Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 26, 2013 6:34 am    Post subject: Reply with quote

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
View user's profile Send private message
RJETMQ
PostPosted: Tue Mar 26, 2013 6:42 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 26, 2013 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message
RJETMQ
PostPosted: Tue Mar 26, 2013 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 26, 2013 7:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What version of FTE?
Back to top
View user's profile Send private message
RJETMQ
PostPosted: Tue Mar 26, 2013 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 26, 2013 8:11 am    Post subject: Reply with quote

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
View user's profile Send private message
RJETMQ
PostPosted: Tue Mar 26, 2013 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 26, 2013 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
RJETMQ
PostPosted: Tue Mar 26, 2013 9:07 am    Post subject: Reply with quote

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
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 » IBM MQ File Transfer Edition » MQ ftecreateAgent as Windows Service
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.