Hi all,
Hats off to all for a great product. We want to use EJB 2.0 CMP, but we seem to be doing something wrong. JBoss thinks that our bean wants 1.x CMP for some reason. Here are the errors: 14:23:06,462 INFO [EJBDeployer] Bean : CMPTestEJB Section: 9.2.2 Warning: The entity bean class must not be defined as abstract. 14:23:06,463 INFO [EJBDeployer] Bean : CMPTestEJB Section: 9.2.2 Warning: The entity bean class must define a public constructor that takes no arguments. 14:23:06,635 INFO [EJBDeployer] Bean : CMPTestEJB Method : public abstract CMPTest create() throws RemoteException, CreateException Section: 9.2.8 Warning: Each create(...) method in the entity bean's home interface must have a matching ejbCreate(...) method in the entity bean's class. 14:23:06,638 INFO [EJBDeployer] Bean : CMPTestEJB Section: 9.4.7.1 Warning: The primkey-field element must name a public field in the bean implementation class. Here is the ejb-jar.xml deployment descriptor for our bean. <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <entity> <ejb-name>CMPTestEJB</ejb-name> <home>CMPTestHome</home> <remote>CMPTest</remote> <ejb-class>CMPTestBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.String</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <cmp-field> <field-name>userName</field-name> </cmp-field> <primkey-field>userName</primkey-field> </entity> </enterprise-beans> </ejb-jar> I even commented out the support for CMP 1.x in the standardjboss.xml, but that didn't help (now it couldn't find the 1.x implementation). It gives: 14:23:06,652 INFO [EjbModule] Creating 14:23:06,677 INFO [EjbModule] Deploying CMPTestEJB 14:23:06,732 ERROR [EjbModule] error adding container to app. I'm assuming this is because it wants to use 1.x but I removed it. We haven't configured the datasource yet, we're simply trying to get past this problem. Any ideas? Thanks, Mark _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user