> 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"> > > Is it still necessary to have the following: > > <cmp-version>2.x</cmp-version>
yes, because it is perfectly legal to deploy CMP1.1 beans in an otherwise EJB2.0 application. > As for WARs versus JARs, you are correct, too much reading while waiting for a > response. Thanks for your quick turnaround! :) I'd almost suggest less reading of stuff, and more reading of tables of contents... the specs are very heavy to read from start to finish, and I'm sure that thats not the way they're intended to be read. perhaps just _really_ get to know the table of contents, and where things are in the spec - that way, when you have something like this, you will know what to read then.... just thoughts... cheers dim > > > -- > -bk > > > Quoting David Jencks <[EMAIL PROTECTED]>: > > > Check your ejb-jar.xml file. I think it has the ejb 1.1 dtd. > > > > war != jar. Making unsupported and obviously wrong claims about jboss is > > unlikely to get you much help. > > > > david jencks > > > > On 2002.06.05 20:50:47 -0400 Brandon Knitter wrote: > > > 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 _______________________________________________________________ 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