it looks like JBoss expects CMP 1.x.
Check ejb-jar.xml if there is element
<cmp-version>2.x</cmp-version> in entity bean definition.
See ejb-jar_2_0.dtd for more details.
No the problem is you have not declared the EJB 2.0 doctype. If you do not have the doctype declaration, which is required by the EJB spec, you get EJB 1.1. The EJB 2.0 doctype follows:[pre]
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
Thanks a lot for the suggestion it worked perfectly...