For a new JMS connection, I created new JNDI provider alias with the existing broker, JMS topic and trigger. Getting below error while doing a test lookup.
Test lookup failed for primary JNDI provider URL “wmjmsnaming://Broker@host:port”: Cannot instantiate class: com.webMethods.jms.naming.WmJmsNamingCtxFactory
Kindly suggest on how this can be fixed.
Note: There are 2 more JNDI, JMS topic, triggers exist in the same server.
While creating the JNDI alias, I used the predefined JNDI templates. In that dropdown I chose webMethods. Provider URL and Other Properties got auto populated(made URL details similar to those existing) just like the other existing JNDI aliases.
Do I need to configure anything in the broker through MWS or any config file changes in config directory?
Aside to this, I tried enabling the JMS connection with one of the existing JNDI alias and the new connection factory, below error is thrown.
com.wm.app.b2b.server.jms.JMSSubsystemException: [ISS.0134.9016] Error creating connection factory: [BRN.101.1002] Lookup Error: Lookup failed: Name not found.
please provide Fix-Levels for Broker, Java-API, JMS-API.
Latest Fixes I know of:
BR_7.1.2_Core_Fix17 (“Version 7.1.2.17.290 110712” as output of “Broker/bin/awbroker -version”)
BR_7.1.2_Java_API_Fix5
BR_7.1.2_JMS_API_Fix11
Is there a wm-brokerclient.jar, wm-jmsadmin.jar, wm-brokeradmin.jar in either Broker/lib/, common/lib, IntegrationServer/lib/jars or MWS/lib/?
Please note, that they might be spelled different at different locations (with or without the dash).
Make sure that all occurences of these jars-files across your installations have the same versions.
Beside configuring the JNDI-Provider in the MWS, you will have to configure the connection factories and destinations and create the QueueClients (for Queue Destinations) or the DocumentTypes (for Topic Destinations) before the connection will work.
As of your error message the IS (?) is unable to lookup the connection factory in the JNDI-Provider.
Can you share the configuration details of JNDI-Alias in IS, JNDI-Config and ConnectionFactory in MWS/Broker?
You can anoymize broker address and port if you wish to.
JNDI Provider Alias Configuration:
JNDI Alias Name wMTopicProvider
Description wMTopicProvider
Initial Context Factory com.webMethods.jms.naming.WmJmsNamingCtxFactory
Provider URL wmjmsnaming://@:6849
Provider URL Failover List
Security Principal
Security Credentials
Other Properties com.webMethods.jms.naming.clientgroup=admin
Jar files are present in the respective directories. If issue is with any of the jar files or fixes, all JNDI alias lookup should throw the same error but it isn’t, lookup is successful for the already existing JNDI aliases.
When there are 2 existing Aliases for which this works and 1 new one which does not work,
there must be some differences not yet described here.
Either there is a typo in the new configuration or some other servere configuration mismatch.
Please check the editable Fields of the alias which is not working for any unwanted characters like trailing spaces (an usual copy&paste error) and try again.