• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.ClassCastException JBoss-4.2.2.GA

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends!

I try to move up an EJB application from JBoss 3.2.3 to 4.2.2.

I have modified all deployment descriptors and so on.

My ejb.jar file deploys nicely and so does my war file.

When I then try to use the Application I get following message from
JBoss-4.2.2



Can anybody please help me to point out where
the problem could be!


Thanks in advance.

Best Regards.
Bjorn
 
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
[ May 20, 2008: Message edited by: karthi keyan ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All

If you have placed the EJB classes in your .war as well as some .jar file, then remove the classes from the .war file and try out, it will solve your problem.

Regards!
Rakesh soni
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did anyone solve this problem???
Tell me why, please.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dayse, please do not wake the zombies. Instead, create a new post and provide the details.
 
dayse rocha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It won't be necessary, my dear. I've already solved this problem.

Thanks.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi dayse rocha,

please explain the solution, i am also facing the same problem. Thanks in advance.
 
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic