cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue while Connecting to SAP JMS Provider with HERMES

former_member200386
Active Participant
0 Kudos

Dear Experts,

I am trying to connecting to SAP JMS Provider with Hermes tool. I am following the below blog.

http://wiki.scn.sap.com/wiki/display/XI/HowTo%3A+Connect+to+SAP+JMS+Provider+with+HERMES?focusedComm...

I am facing issue while i am trying to connect to the JMS resource (Step4 as per the blog).  Here's the error i am facing

javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: com.sap.engine.services.jndi.InitialContextFactoryImpl

  at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282)

  at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58)

  at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)

  at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)

  at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)

  at java.lang.Thread.run(Thread.java:662)

Thanks,

Pavan T,

Accepted Solutions (0)

Answers (2)

Answers (2)

sugata_bagchi2
Active Contributor
0 Kudos

Please apply the JNDI actions available to the user ID in NWA and try.

https://launchpad.support.sap.com/#/notes/1884121

Former Member
0 Kudos

Hi,

Please see the screenshot. Make sure yours looks identical.

Regards,

Jannus Botha

former_member200386
Active Participant
0 Kudos

Hi Botha,

Thanks for the response. Here's my Hermes config. i am maintaining the same parameters mentioned in the blog. still i am facing the issue.

Former Member
0 Kudos

Hi,

Please see these links below. Do your config in a file and not in the application itself.

The links will help. If you get stuck please let me know.

Regards,

Jannus

anandvithal
Active Participant
0 Kudos

Hi,

Give connection factory name in the property binding and then try to connect.

Thanks,

Anand

former_member200386
Active Participant
0 Kudos

Hi Anand,

Thanks for the response, As you suggested , I tried to add the factory name in the binding , still i am getting the same error.

Thanks,

Pavan T

vadimklimov
Active Contributor
0 Kudos

Dear Pavan,

Please check if the JAR file containing class com.sap.engine.services.jndi.InitialContextFactoryImpl (file sap.com~tc~je~clientlib~impl.jar) is contained in the used classpath group:

Regards,

Vadim

former_member200386
Active Participant
0 Kudos

Dear Vadim,

Thanks for the resposne, Now i am getting below exception.

javax.jms.JMSException: Could not create InitialContext: Exception during getInitialContext operation. Wrong security principal/credentials.

  at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282)

  at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58)

  at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)

  at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)

  at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)

  at java.lang.Thread.run(Thread.java:662)

I am maintaining the host name as my PI server host name and security principal/credentials as my user name and password.

Thanks,

Pavan T

vadimklimov
Active Contributor
0 Kudos

Hello Pavan

The error you get now should be the result of invalid user name and/or password being used in HermesJMS. Can you please check user and password correctness and validity?

Regards,

Vadim