Hi,

Not sure I can answer your question from what you've provided.

The deployment error message looks as though you are trying to deploy a 2.0 bean on a 
1.1 container.  What version of JBoss are you
using?  If you're using 2.x, then make sure you set EJB version to 1.1 in your XDoclet 
build file.

The docs (http://xdoclet.sf.net) should help you there.

hth
dim

----- Original Message -----
From: "Danilo Luiz Rheinheimer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 2:55 PM
Subject: [Xdoclet-user] getting started with CMP


   Hi,

   After look on the XDoclet samples of CPM I am making my first try of
xdoclet create a CMP bean.
   It build the files without problems.
   But when I try to deploy my bean to JBoss I get this erros message :

   INFO [EJBDEPLOYER]
   Bean : Disciplina
   The entity bean class must be defined as public and abstract.
....
   ERROR [ENTITY CONTAINER]  Exception in service lifecicle create.
... No abstract accessors for field named codDisc found on entity class.

   Note the name of the field on this message 'codDisc' it should not be
'CodDisc' ?
   What is wrong ?
   This is my code with the xdoclet tags :

package com.sigea.adm.ejb;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.sigea.adm.interfaces.DisciplinaPK;

/**
* @ejb:bean
*   name="Disciplina"
*   type="CMP"
*   view-type="both"
*/

public abstract class DisciplinaEjb implements EntityBean {
    EntityContext ctx;

/**
* @ejb:pk-field
* @ejb:persistent-field
*
*/
         public abstract java.lang.String getCodDisc () throws RemoteException;

/*
* @ejb:persistent-field
*/

         public abstract void setCodDisc (java.lang.String arg1) throws
RemoteException;

/**
*
* @ejb:persistent-field
*/
         public abstract void setNomeDisc (java.lang.String arg1) throws
RemoteException;

/**
* @ejb:persistent-field
*/
         public abstract java.lang.String getNomeDisc () throws
RemoteException;

/**
* @ejb:create-method
*/

    public DisciplinaPK ejbCreate (String arg1) throws CreateException {
       return null;
    }
    public void ejbPostCreate(String arg1) {    }
    public void setEntityContext(EntityContext ctx) {
      this.ctx = ctx;
    }
    public void unsetEntityContext() {
      ctx = null;
    }
    public void ejbActivate() {    }
    public void ejbPassivate() {    }
    public void ejbLoad() {    }
    public void ejbStore() {    }
    public void ejbRemove() throws RemoveException {    }
}

----
Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Cli� 615C
mailto:[EMAIL PROTECTED]
----


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to