Troubleshooting

   

EntityBean Interface Not Implemented

I get an error when I'm attempting to deploy an entity bean stating that a method from the EntityBean interface isn't implemented.

Even though the container tools are responsible for creating a concrete class that extends your bean class, you're still responsible for implementing the methods declared by the EntityBean interface. You have to pay careful attention to this because a side effect of declaring your entity bean classes as abstract is that the compiler won't consider the fact that you haven't implemented a particular interface method as an error.

Incorrect Value for multiplicity Element

I get an error stating that the multiplicity element must be assigned a value of one or many .

The EJB 2.0 Specification defines the allowed values of the multiplicity element to be One and Many . However, some implementations expect the lowercase versions of these strings. If you encounter this error, simply change the entries in your ejb-jar.xml deployment descriptor to use lowercase.

CMP Field Abstract Methods Not Found

I get an error when I'm attempting to deploy an entity bean using EJB 1.1 CMP that tells me that it can't find the abstract methods corresponding to my CMP fields.

An EJB 2.0 application server is required to support EJB 1.1 CMP, but it assumes you're using 2.0 by default. To deploy an EJB 1.1 CMP bean, you have to include the cmp-version element that was added to entity as part of EJB 2.0 and assign it a value of 1.1 .



Special Edition Using Enterprise JavaBeans 2.0
Special Edition Using Enterprise JavaBeans 2.0
ISBN: 0789725673
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net