I had the entry: <cmp-version>2.x</cmp-version>
And even tried "2.0". Turns out, in my haste I forgot to add the XML header to the top of my ejb-jar.xml files: <?xml version="1.0"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd"> I don't totally understand the model of JBoss yet (I'm reading like a mofo), but why would an XML header make a different? I know it does in choosing the DTD to validate against, but I've never seen it choose server functionality. If this standard? -- -bk Quoting Dmitri Colebatch <[EMAIL PROTECTED]>: > in ejb-jar.xml you will need to specify that you are using CMP2.0 and not > CMP1.x. > > cheers > dim > > ----- Original Message ----- > From: "Brandon Knitter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 06, 2002 10:50 AM > Subject: [JBoss-user] CMP 2.0 Not Supported!! > > > > I starting to just give up on the notion that WARs are not required, so I > > finally just built a damned WAR file and deployed it. If you know of a > way to > > get a directory to act as the deployment path, please do let me know. > > > > So, when I drop this WAR into my deploy/ dir, I'm getting the following: > > > > 17:48:53,853 INFO [MainDeployer] Starting deployment of package: > > > file:/home/knitterb/progs/jboss-3.0.0RC3/server/jukebox/deploy/jukebox.jar > > 17:48:54,532 INFO [EJBDeployer] > > Bean : PlaylistBean > > Section: 9.2.2 > > Warning: The entity bean class must not be defined as abstract. > > > > 17:48:54,829 INFO [EJBDeployer] > > Bean : PlaylistBean > > Method : public Integer ejbCreate(Integer, int, String) throws > CreateException > > Section: 9.2.3 > > Warning: The return type of an ejbCreate(...) method must be the entity > bean's > > primary key type. > > > > 17:48:54,900 INFO [EJBDeployer] > > Bean : PlaylistBean > > Section: 9.4.7.1 > > Warning: The primkey-field element must name a public field in the bean > > implementation class. > > > > 17:48:54,910 INFO [EjbModule] Creating > > 17:48:55,069 INFO [EjbModule] Deploying PlaylistBean > > 17:48:56,314 ERROR [EjbModule] unexpected exception destroying Container: > > jboss.j2ee:service=EJB,jndiName=ejb/Playlist > > java.lang.NullPointerException > > at > > > org.jboss.ejb.plugins.AbstractInstanceCache.destroy(AbstractInstanceCache.ja > va:326) > > at > > > org.jboss.ejb.plugins.EntityInstanceCache.destroy(EntityInstanceCache.java:8 > 8) > > > > > > > > If abstract accessors are not allowed, then CMP 2.0 is not fully > supported. > > Also, the class has to be declared abstract if a method is (in case > someone > > questions that). When will JBoss fully support CMP 2.0?? > > > > Thanks, > > > > > > -- > > -bk > > > > > > > > > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user