cancel
Showing results for 
Search instead for 
Did you mean: 

JMS resources - NameNotFoundException

Former Member
0 Kudos

Hi,

This is my jms-resources.xml, created this reading one of the articles related to configuring JMS resources.

Can someone suggest me what is wrong here, couldnt figure out the issue?

Currently the application comes up under vendor JavaEE.

thanks

S

<jms-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="jms-resources.xsd">

<application-name>JavaEE/TrueProducer-TPRO</application-name>

<connection-factory>

<name>CallidusTopicFactory</name>

<sap-local-factory-type>

<type>javax.jms.TopicConnectionFactory</type>

<virtual-provider>default</virtual-provider>

</sap-local-factory-type>

</connection-factory>

<destination>

<name>CallidusTopic-TPRO</name>

<type>javax.jms.Topic</type>

<sap-local-destination-type>

<virtual-provider>default</virtual-provider>

</sap-local-destination-type>

</destination>

</jms-resources>

These are my web.xml and

<resource-env-ref id="ResourceEnvRef_CallidusTopic-TPRO">

<description>TCAPI JMS Topic</description>

<resource-env-ref-name>CallidusTopic-TPRO</resource-env-ref-name>

<resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>

</resource-env-ref>

<resource-ref id="ResourceRef_CallidusTopicFactory">

<description>TCAPI JMS Topic Factory</description>

<res-ref-name>CallidusTopicFactory</res-ref-name>

<res-type>javax.jms.TopicFactory</res-type>

<res-auth>Container</res-auth>

</resource-ref>

web-j2ee-engine.xml

<resource-ref>

<res-ref-name>CallidusTopicFactory</res-ref-name>

<res-link>ConnectionFactory</res-link>

</resource-ref>

<resource-env-ref>

<resource-env-ref-name>CallidusTopic-TPRO</resource-env-ref-name>

<res-type>javax.jms.Topic</res-type>

<jndi-name>topic/CallidusTopic-TPRO</jndi-name>

</resource-env-ref>

Caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at topic, the whole lookup name is jmsTopics/topic/CallidusTopic-TPRO.

at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:239)

at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:557)

at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:343)

at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:266)

at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:286)

at javax.naming.InitialContext.lookup(InitialContext.java:351)

at javax.naming.InitialContext.lookup(InitialContext.java:351)

at com.sap.engine.services.jndi.ComponentObjectFactory.getObjectInstance(ComponentObjectFactory.java:41)

at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:283)

at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:464)

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

Don't know how you decided about those values in web-j2ee-engine.xml but none of them is correct

You can safely remove this file and also change the res-type in the web.xml to javax.jms.TopicConnectionFactory. This should make it work for you.

HTH!

\-- Vladimir