• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Class Cast Exception

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am a new to EJB. I am usind JBOSS 4.0.2, Xdoclet 1.2.3 and JDK 1.6 and EJB 2. When i tried to invoke the Stateless session bean. I am getting the ClassCastException error. Here is the Error.
Can you please help me to solve this issue..!

1. What are the configurations need to be done in JBOSS AS to use EJB?
2. Is there any problem with the versions of JBOSS, JDK, and Xdoclet. If so, what it is?



Error in the console


Thanks...
 
vinoth subramaniam
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I searched in the saloon and found this Thread.
Saying that

As the ClassCastException is occuring during narrow there is a high probability that the war file is referencing a different version of the jar file containing Home and Remote interfaces. Please compile and create the client jar [jar containing Home and Remote to be specified in the classpath of web application] again with the latest source code [and compile with the same Java version as that of the jar file for EJB application] and redeploy the war file.

. How to do this exactly. I run the Xdoclet once again.But still i am getting the same error again and again. Please help me to out.
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic