I came across this ClassCastException when launching an application packaged as an enterprise archive (.ear) on JBOSS 4.2.2.
Without going much into the details of the root cause, here is a way to quickly reconfigure JBOSS to get away.
- Locate the following files in your JBOSS folder and open them in a text editor.
- Set the attribute CallByValue to true.
It should look something like this:
- Save the files and Restart the server.
And…voila! No more ClassCastException. Oh yeah, unless there is one such dynamic class casting error in your application that is!!
Enjoy free JBOSSing 😛
Please use the comments section for any discussions.