• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming.NamingException: Invalid reference. Error: invalid field type for server in class org.  RSS feed

 
Sanyyam Sharma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to deploy a JMS application, The same is runnning fine on a Linux Production server, but throws this error on the UAT environment.

public static final String TCF_NAME = "ConnectionFactory";

TopicConnectionFactory tcf = (TopicConnectionFactory)JNDIService.jbossLookup(TCF_NAME);

javax.naming.NamingException: Invalid reference. Error: invalid field type for server in class org.jboss.mq.GenericConnectionFactory
at org.jboss.mq.referenceable.ObjectRefAddr.extractObjectRefFrom(ObjectRefAddr.java:81)
at org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory.getObjectInstance(SpyConnectionFactoryObjectFactory.java:45)
at javax.naming.spi.NamingManager.getObjectInstance(libgcj.so.7rh)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:621)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
at javax.naming.InitialContext.lookup(libgcj.so.7rh)
at applications.services.jndiservice.JNDIService.jbossLookup(JNDIService.java:70)
at applications.session.display.DisplayAlert.initSubscriber(DisplayAlert.java:140)
at applications.session.display.DisplayAlert.main(DisplayAlert.java:492)
java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.TopicConnectionFactory
at applications.session.display.DisplayAlert.initSubscriber(DisplayAlert.java:140)
at applications.session.display.DisplayAlert.main(DisplayAlert.java:492)
EJB Exception:java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.TopicConnectionFactory

I suspect this to be a JAR issue and tried changing the same.

Kindly suggest.

A Bit Urgent.

Best regards,
Sanyyam Sharma
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!