This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes java.lang.ClassCastException: javax.naming.Reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "java.lang.ClassCastException: javax.naming.Reference" Watch "java.lang.ClassCastException: javax.naming.Reference" New topic

java.lang.ClassCastException: javax.naming.Reference

naresh govindaswmay
Ranch Hand

Joined: Aug 15, 2007
Posts: 90
I am trying to run my queuing application in my machine.but it is showing some exception.I have attached all the logs here please find the bug and let me know.It was running before i formate my machine after that it is not running.

this is the log

D:\live\JMSServer\ReceivingQ>java com/leader/chart/server/JMS/PriceUpdater -Xms5
12m -Xmx512m
After the org.jnp.interfaces
after the context creation
Error in PriceContainer :java.lang.ClassCastException: javax.naming.Reference
Error in PriceContainer in catch block :java.lang.NullPointerException

Press any key to continue . . .

these are all the jars i have set in the class path.

D:\live\JMSServer\ReceivingQ>set classpath=D:\jboss-3.2.6\driver\j2ee.jar;D:\jbo
ss-3.2.6\driver\pg73jdbc2.jar;C:\Program Files\Java\jdk1.5.0_12\lib;;C:\jboss-3.

thanks and regards

Thanks and Regards<br />Naresh govindaswamy
I agree. Here's the link:
subject: java.lang.ClassCastException: javax.naming.Reference
Similar Threads
unable to run ejb client
JBoss slow startup time - pauses right after Core system initialized
Stuck In the Mud with First EJB
No Suitable Drived found
Aborts from running EJB Client Windows batch script