migrate geronimo 2.2 to 3.0.1 jndi call problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

migrate geronimo 2.2 to 3.0.1 jndi call problem

donyaribowo
This post has NOT been accepted by the mailing list yet.
Hi i am trying to migrate geronimo server 2.2.1 to 3.0.1, im hitting the wall when i try to looked up the queue from initial context, i got the error
2014-09-08 15:41:45,022 ERROR [InboundRouter] A naming exception occured when looking up queue named:jca:/console.jms/res-jms-resources/JCAAdminObject/afeAdapterInboundQueue:Could not create resource
javax.naming.NamingException: Could not create resource [Root exception is javax.naming.NameNotFoundException: could not locate osgi service matching   (osgi.jndi.service.name=console.jms/res-jms-resources/JCAAdminObject/afeAdapterInboundQueue)]
at org.apache.geronimo.naming.reference.ResourceReference.getContent(ResourceReference.java:74)
at org.apache.xbean.naming.context.ContextUtil.resolve(ContextUtil.java:61)
at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:116)
at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:619)
at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:156)
at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:605)
at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at 
but if i see on the jndi viewer console im pretty sure that the name is there (see the red mark)

here is the way i did the lookup
_inboundQueueName="jca:/console.jms/res-jms-resources/JCAAdminObject/afeAdapterInboundQueue";

_queue = (Queue) _initialContext.lookup(_inboundQueueName);
_log.debug("Looked up queue named:" + _inboundQueueName);
thanks, Bram