• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI lookup, First component in name xx not found

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got a MDB which publishes to a TCF configured using embedded messaging. When my MDB attempts to publish, it appears to connect to the TCF but then things get a bit nasty I get the following exception.
[ExtraInfo - null]; nested exception is: javax.naming.NameNotFoundException: Con
text: sakana/nodes/sakana/servers/server1, name: jms/iaTradetoAltioDestination:
First component in name iaTradetoAltioDestination not found. [Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingCon
text/NotFound:1.0]
javax.naming.NameNotFoundException: Context: sakana/nodes/sakana/servers/server1
, name: jms/iaTradetoAltioDestination: First component in name iaTradetoAltioDes
tination not found. Root exception is org.omg.CosNaming.NamingContextPackage.No
tFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_in
fo(WsnOptimizedNamingImpl.java:968)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete
_info(WsnOptimizedNamingImplBase.java:1398)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(U
nknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java
:3491)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1
Any help is greatly appreciated
 
Sammy Kanan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What a typo, using infinite wisdom the JNDI name was in fact wrong. Problem sorted.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch Sammy. Glad we could help.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What was the problem? I am getting exact same error and couldn't figure out yet.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this situation, the name for the JNDI lookup was wrong.

There are a number of things that need to be configured for JMS messaging to work with the embedded WebShpere messaging engine. You really have to check and double-check the configuration of topics, queues and destinations.

I actually put together a little tutorial on WebSphere JMS configurations. It can help verify the steps needed to get JMS working:

configuring WebSphere JMS and MDB EJBs

Good luck.

-Cameron McKenzie
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please DELETE this worthless thread! There's nothing of use in the thread. All it has done is waste my time - The DEAD link at the end was really helpful guys.
 
bradley winter
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't mean to sound so ungrateful for the forum. But, when key words and phrases lead to threads that say nothing (or links are dead) it is very frustrating to people who are looking for real answers.
 
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Didn't you notice that the last post was made 5 years ago? It shouldn't be surprising to find that a link that old is dead. That's just a fact of life on the Web.

And I'm sure you didn't mean to suggest that we should continually review links posted by our members for validity, did you?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Problem with the internet : Google still give your this result... Useless one.
So indeed if someone reports a useless thread it SOULD BE DELETED if any admin see it...

I mean, these days we are taking about environment etc. but a tonnes of thing over the internet are totally worthless so...

Still having the same original issue by the way... If someone come here with a solution.

Thanks.
 
author
Posts: 23956
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Céd Cat wrote:
Problem with the internet : Google still give your this result... Useless one.



Problem with free help services... there isn't an SLA. As such, the help is very simply answers to a very very specific issues. For the majority of others, the solution is not related.

For JNDI, it is an API to many possible implementations -- and with those implementations, it is specific to particular configurations. We don't know which naming service you are using, how the service was configured, nor even what was done with the service to know what is available to lookup.

If the name is not found in the naming service, the possible options are that the name is not correct, the object hasn't been placed in the service (either incorrectly or even at all), or it was placed with the wrong details. Your best option is to talk to your administrator (that is running the service).

This issue is too specific to your implementation, to expect a generic answer that will work.
 
Henry Wong
author
Posts: 23956
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:Didn't you notice that the last post was made 5 years ago? It shouldn't be surprising to find that a link that old is dead. That's just a fact of life on the Web.



The post is now 15 years old ....  

Anyway, Websphere is a large brand, and in my opinion, the JNDI service with the WS Queue Manager is ridiculously complex. Also, it is not configured (or on) by default. Even if the link was valid, it will be annoying to get up to speed, to become an expert to debug the configuration. It is much easier to ask your administrator.
 
Saloon Keeper
Posts: 27885
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Henry Wong wrote:
Problem with free help services... there isn't an SLA. As such, the help is very simply answers to a very very specific issues. For the majority of others, the solution is not related.


HEY! WE'RE a free help service. And yes, we don't guarantee answers on a servlce-level schedule or at all, but have you tried to get support from a Fortune company in the last decade or so? I hear that the "please stay on the line, your call is VERY important to us!" is being phased out in favor of CodeRanch-style "help" forums. Except that the turnaround time is often the difference in timezones between where you are and Mumbai, the respondant is often less than fluent, and you're still likely to end up with a monkey-with-a-script. A far cry from the 1960s where an IBM representative would stroll into your office and sit down personally.

And, incidentally, I've noticed that often the most helpful person on the commercial-product forms isn't one of their employees, it's an enthusiastic volunteer.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic