ERROR: Auto-deploying com/citysearch/ejb/ClassType... Error compiling file:/E:/work/citysearch/com/citysearch/ejb/ClassType/: Variable contained illegal space Here is how my ejb-jar.xml looks like, when I remove the <primkey-field>...</primkey-field> I get the above mentioned error. When I don't use it, no error. Do I need this in my ejb-jar.xml? <?xml version="1.0"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.2//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"> <ejb-jar> <enterprise-beans> <entity> <display-name>ClassType</display-name> <ejb-name>ejb/ClassType</ejb-name> <home>com.citysearch.ejb.ClassType.ClassTypeHome</home> <remote>com.citysearch.ejb.ClassType.ClassType</remote> <ejb-class>com.citysearch.ejb.ClassType.ClassTypeEJB</ejb-class> <prim-key-class>com.citysearch.ejb.ClassType.ClassTypeKey</prim-key-class> <reentrant>False</reentrant> <persistence-type>Container</persistence-type> <cmp-field> <field-name>id</field-name> </cmp-field> <cmp-field> <field-name>name</field-name> </cmp-field> <cmp-field> <field-name>namespace</field-name> </cmp-field> <cmp-field> <field-name>rank</field-name> </cmp-field> <primkey-field>id</primkey-field>