I've created a CMP entity bean based on some examples I've seen and am
encountering some compilation errors on the generated wrapper classes at
deployment time. Its seems the getter/setter methods and the remove
method are not recognized or available in the  generated wrapper
classes. I've look at various mailing lists and the bug database and
have not seen any similar problem. I've tried changing the use of Long
to "long" primitives and making the fields wholly lower case but have
not had any luck with that. If anyone has seen these errors before or
can give me any pointers on possible problem areas I would greatly
appreciate the help:

There errors are as such:

Auto-deploying leaders-ejb.jar (No previous deployment found)...
CodeListsEBRemote_EntityBeanWrapper2.java:281: Method __REMOTE__remove()
not found in class CodeListsEBRemote_EntityBeanWrapper2.
trail.__REMOTE__remove();
                      ^
CodeListsEBRemote_EntityBeanWrapper2.java:571: Method
__REMOTE__getName() not found in class
CodeListsEBRemote_EntityBeanWrapper2.
return trail.__REMOTE__getName();
                              ^

CodeListsEBRemote_EntityBeanWrapper2.java:809: Method
__REMOTE__setName(java.lang.String) not found in class
CodeListsEBRemote_EntityBeanWrapper2.trail.__REMOTE__setName(argument0);

                       ^

Regards,
Scott

****************
* My bean looks like:


public abstract class CodeListsEB implements EntityBean
 ....
    public abstract Long getId() ;
    public abstract void setId(Long id) ;
    public abstract String getName() ;
    public abstract void setName(String name) ;

****************
* My remote is like:

public interface CodeListsEBRemote extends EJBObject
...
    public Long getId() throws RemoteException;
    public void setId(Long id) throws RemoteException;
    public String getName() throws RemoteException;
    public void setName(String name) throws RemoteException;

****************
* My ejb-jar is like:
 <entity>
            <description>Entity EJB providing CRUD transactions for the
LEADERS CODE_LISTS table</description>
            <display-name>CodeListsEB</display-name>
            <ejb-name>CodeListsEB</ejb-name>
            <home>leader.ejb.entity.CodeListsEBHome</home>
            <remote>leader.ejb.entity.CodeListsEBRemote</remote>

<local-home>leader.ejb.entity.CodeListsEBLocalHome</local-home>
            <local>leader.ejb.entity.CodeListsEBLocal</local>
            <ejb-class>leader.ejb.entity.CodeListsEB</ejb-class>
            <persistence-type>Container</persistence-type>
            <abstract-schema-name>CodeLists</abstract-schema-name>
            <cmp-version>2.x</cmp-version>
            <prim-key-class>leader.ejb.entity.EntityPK</prim-key-class>
            <reentrant>False</reentrant>

            <cmp-field><field-name>id</field-name></cmp-field>
            <cmp-field><field-name>name</field-name></cmp-field>
...

            <query>
                <description>
                </description>
                <query-method>
                    <method-name>findByName</method-name>
                    <method-params>
                        <method-param>java.lang.String</method-param>
                    </method-params>
                </query-method>
                <ejb-ql>SELECT DISTINCT OBJECT(o) FROM CodeLists AS o
WHERE o.name = ?1</ejb-ql>
            </query>
            <resource-ref>
                <res-ref-name>jdbc/MedicalDS</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
        </entity>

****************
* My orion-ejb-jar is like:

<orion-ejb-jar>
    <enterprise-beans>
        <entity-deployment name="CodeListsEB"
location="leaders/CodeListsEB" table="CODE_LISTS"
data-source="jdbc/MedicalDS">
            <primkey-mapping>
                <cmp-field-mapping>
                    <fields>
                        <cmp-field-mapping name="id"
persistence-name="ID"/>
                    </fields>
                </cmp-field-mapping>
            </primkey-mapping>
            <cmp-field-mapping name="id" persistence-name="ID"/>
            <cmp-field-mapping name="name" persistence-name="NAME"/>
...
begin:vcard 
n:Gaetjen;Scott 
tel;cell:703.728.1301
tel;fax:540.882.4233
tel;work:540.882.4233
x-mozilla-html:FALSE
url:http://www.solutionsauthority.com
org:President - Solutions Authority, LLC
adr:;;38607 Millstone Drive;Purcellville;VA;20132;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:540.882.4233 (office)     -     703.728.1301 (mobile)
end:vcard

Reply via email to