File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes java.lang.ClassCastException JBoss-4.2.2.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.ClassCastException JBoss-4.2.2.GA" Watch "java.lang.ClassCastException JBoss-4.2.2.GA" New topic
Author

java.lang.ClassCastException JBoss-4.2.2.GA

Bjorn Stove
Greenhorn

Joined: Jan 08, 2005
Posts: 19
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

Joined: Sep 06, 2003
Posts: 259
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 ]

http://www.skillassert.com


rakesh soni
Greenhorn

Joined: Aug 02, 2005
Posts: 1
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

Joined: Sep 21, 2009
Posts: 3
Did anyone solve this problem???
Tell me why, please.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Dayse, please do not wake the zombies. Instead, create a new post and provide the details.


JBoss In Action
dayse rocha
Greenhorn

Joined: Sep 21, 2009
Posts: 3
It won't be necessary, my dear. I've already solved this problem.

Thanks.
Sesi Bavana
Greenhorn

Joined: Mar 09, 2010
Posts: 1
Hi dayse rocha,

please explain the solution, i am also facing the same problem. Thanks in advance.
 
wood burning stoves
 
subject: java.lang.ClassCastException JBoss-4.2.2.GA