wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl]" Watch "TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl]" New topic
Author

TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl]

Naga Venkata
Greenhorn

Joined: Mar 15, 2012
Posts: 2
I am using Spring JMS in weblogic. while the code works great in local but fails with below error when I deploy on testing servers.

Caused by: org.springframework.jms.support.destination.DestinationResolutionException: Destination [infrastructure.print.purge.referenceids.jms.queue] not found in JNDI; nested exception is org.springframework.jndi.TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl] available at JNDI location [infrastructure.print.purge.referenceids.jms.queue] is not assignable to [javax.jms.Destination]
at org.springframework.jms.support.destination.JndiDestinationResolver.resolveDestinationName(JndiDestinationResolver.java:123)
at org.springframework.jms.support.destination.JmsDestinationAccessor.resolveDestinationName(JmsDestinationAccessor.java:100)
at org.springframework.jms.core.JmsTemplate.access$200(JmsTemplate.java:90)
at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:550)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:471)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:548)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

weblogic? You have the wrong forum, I'll move the post for you.


JBoss In Action
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 818

Hi,

I do not know much about Spring, but do you have all the jars installed in Weblogic for your application to run on the server?

Check the spring forums with this exception of yours.

I did a little google and found out this.

Hope it helps.




Regards, Sud.
SCJP 5 ScjpFAQ JLS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TypeMismatchNamingException: Object of type [class weblogic.jndi.internal.WLEventContextImpl]
 
Similar Threads
JNDI Binding
lookup of JNDI bean reference is not working!
JBoss returns SessionFactoryImpl if we retrieve Persistence Unit though JNDI
Is it possible to synchronize on/lock an object obtained from JNDI
Fail to bind javax.mail.Session object on JNDI Tree