I am currently migrating EAR applications that use EJB 2.1 Session beans [I have not dealt with Entity or Message-Driven beans] from JBoss AS 4.2.2 to WildFly 9.0.2. While I am not sure about the other types of EJBs or if this is supported on later versions of WildFly, I have so far been able to deploy these applications and use the EJBs.
This discussion about EJB 2.1 with JBoss AS 7.1 I participated in may interest you:
I hope that this is of some help to you.
Pavan Kumar wrote:
Hence i thought of asking you a question that "Does Wildfly really support EJB 2.x?", i would further like to try based on your suggestions.
Yes, it does support MDBs, statefull & stateless session beans. but it does not support CMP or EJB 2.x entity beans.
If will be easier if you show us what the reported error is and maybe even code of the class that is reporting error.