Home JBoss howto Configuration How to solve "javax.naming.Reference cannot be cast to javax.naming.Reference cannot be cast to .."
12 | 03 | 2010
JBoss 5 AS Book
"JBoss AS 5 development" reviews
Please share your feedback/review with other readers!
Banner
Dashboard
Advertise with Us
Banner
RSS Feed
Login
Sign here for the NewsLetter.



Poll
What book could be in your wish list next XMas ?
 
JBoss admin resources
Banner
JBoss howto

How can you solve deployment errors caused by large war/jar/ear files ?

jboss recipe of the day ...
Read More

How do you configure your .war to be deployed after your EJB ?

jboss recipe of the day ...
Read More

How do I configure a Queue/Topic to work in a cluster?

JBoss recipe of the day ...
Read More
How to solve "javax.naming.Reference cannot be cast to javax.naming.Reference cannot be cast to .."
Written by F.Marchioni   
JBoss recipe of the day
This error means that the interface javax.naming.Reference cannot be resolved. It can happen when you are trying to lookup a component like an EJB or a Datasource from the JNDI.It is commonly caused by two reasons:

  • You are missing some classes in client classpath (Verify that you have jbossall-client.jar in the classpath).
  • You are using different JBoss runtimes between the client and the server. (For example the server uses JBoss 5.1.0 libraries and the client uses JBoss 5.0.0 or earlier)


JBoss.org Search
Custom Search
Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."