What is the schema you are using for the ejb-jar.xml? Here is an snippit from one of our working 2.1 test cases.

<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
          http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";
          version="2.1">

-dain

On Jul 5, 2007, at 3:01 PM, Phil Wilson wrote:

Hi,

The FAQ says OpenEJB supports EJB 3.0, but is there full suppor for 2.1? I'm porting an old EJB2.1 app and running

openejb deploy -a -f -c model.jar

gives me:

OPENEJB_HOME=c:/stuff/unzipped/openejb-1.0
OpenEJB Deploy Tool 1.0    build: 20060226-1701
http://www.openejb.org


ERROR in model.jar
Cannot parse the XML of the ejb-jar.xml file. Received message: unable to find FieldDescriptor for 'cmp-version' in ClassDescriptor of entity

A number of the beans do specify <cmp-version>2.x</cmp-version> in ejb-jar.xml

If I remove the cmp-version declarations (which I think are actually needed), then it chokes on the <abstract-schema-name> element.

Any advice?

Many thanks.

Phil WIlson

Reply via email to