Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassCastException JBoss-4.2.2.GA

 
Bjorn Stove
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • 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 ]
 
rakesh soni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
dayse rocha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did anyone solve this problem???
Tell me why, please.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
It won't be necessary, my dear. I've already solved this problem.

Thanks.
 
Sesi Bavana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dayse rocha,

please explain the solution, i am also facing the same problem. Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic