Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6382403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:31:03+00:00 2026-05-25T02:31:03+00:00

I am running two grails web applications in single instance of tomcat 7, both

  • 0

I am running two grails web applications in single instance of tomcat 7, both trying to connect to websphere MQ publishing and receiving messages. First one that gets loaded works well but second one we have following error. If I deploy both of them in different instances of tomcat on same machine it works well but error below is raised when I run both applications in same instance.

2011-08-30 14:09:24,661 [Thread-5] [uk.co.pershing.jbf.messaging.ReaderListener] [ERROR] – Exception Occured … 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.
Linked Exception is
com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library ‘mqjbnd’ was not found. [3=mqjbnd]
2011-08-30 14:09:24,661 [Thread-5] [uk.co.pershing.jbf.servlet.BusStartupServlet] [ERROR] – uk.co.pershing.jbf.messaging.config.ConfigurationException: 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:31:04+00:00Added an answer on May 25, 2026 at 2:31 am

    The Java Virtual Machine only allows JNI libraries to be loaded once. If you are trying to load Websphere-MQ JNI libraries from the applications, then the application which loads first will have exclusive access to the JNI libraries through its application-specific ClassLoader.

    With separate Tomcat instances there is only one application per Tomcat JVM attempting to load the JNI libraries, so it isn’t an issue.

    The solution to this is to load the JNI libraries from the Tomcat ClassLoader, by placing the Websphere-MQ JNI jars in the Tomcat lib/ directory instead of the application’s lib/ directory. Then, the Tomcat ClassLoader will load the JNI libraries and they will be accessible by both applications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Jetty AppServers running a Grails Web App behind Apache 2.2 reverse
I have two web applications, which I want to be running under the one
Im trying to remote debug Tomcat (JPDA) on a server that is running two
Has anyone had any success running two different web servers -- such as Apache
Here's the thing: I have two applications, written in C++ and running on two
I got two projects running, both written in PHP. Now I want to merge
I am running two applications on my server. The first is a Catalyst app,
I am running two separate threads in C, both doing some operations. Both threads
How would I go about running two separate Rails applications using Phusion Passenger with
I'm running two instances of tomcat on the same machine for 2 parts of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.