At 21:23 11/5/2002 +0430, you wrote:
>No need for @jeb:finder for BMP beans. Just write the finder methods and
>xdoclet can find them. See test.ejb.CustomerBMPBean in xdoclet's
>samples. I got a message the PK class is not found. But it is being
>created." Ignore the message.


   With this I am able to create/compile/jar/deploy my entity bean.
   But when I call him from a client application I got this message :

java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:
         java.rmi.ServerException: Could not instantiate bean; nested 
exception is:
         java.lang.InstantiationException: com.sigea.adm.ejb.CursoBMP; 
nested exception is:
         java.rmi.ServerException: Could not instantiate bean; nested 
exception is:
         java.lang.InstantiationException: com.sigea.adm.ejb.CursoBMP

I am not able to find nothing wrong with my source file or the xdoclet 
created files. Can you see it ?
The source for the updated bean is this :

package com.sigea.adm.ejb;

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

/**
* @ejb:bean
*   name="Curso"
*   type="BMP"
*   view-type="both"
*   primekey-field="CodigoCurso"
*/

public abstract class CursoEjb implements EntityBean {

         public EntityContext ctx;

/**
* @ejb:pk-field
* @ejb:persistent-field
* throws RemoteException;
* @ejb:interface-method view-type="remote"
*/

         abstract public String getCodigoCurso () throws RemoteException;

/**
* throws RemoteException;
* @ejb:persistent-field
* @ejb:interface-method view-type="remote"
*/
         abstract public void setCodigoCurso (String arg1);

/**
* throws RemoteException;
* @ejb:persistent-field
* @ejb:interface-method view-type="remote"
*/

         abstract public void setNomeCurso (String arg1);

/**
* throws RemoteException;
* @ejb:persistent-field
* @ejb:interface-method view-type="remote"
*/
         abstract public String getNomeCurso();

         public CursoEjb() {
         }

         public void ejbActivate() throws EJBException {
         }

         public void ejbPassivate() throws EJBException{
         }

         public CursoPK ejbFindByPrimaryKey(CursoPK pk) throws 
RemoteException, FinderException {
// .. the method is implemented on the standard way. Removed to keep the 
message short.
         }

         public void ejbLoad() {
// .. the method is implemented on the standard way. Removed to keep the 
message short.
         }

         public void ejbStore() {
// .. the method is implemented on the standard way. Removed to keep the 
message short.
         }

         public void ejbRemove() throws RemoveException {
// .. the method is implemented on the standard way. Removed to keep the 
message short.
         }

         public void setEntityContext( EntityContext actx) {
                 ctx = actx;
         }

         public void unsetEntityContext() {
                 ctx = null;
         }

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

         public CursoPK ejbCreate(String codigoCurso, String nomeCurso) 
throws EJBException, CreateException {
// .. the method is implemented on the standard way. Removed to keep the 
message short. }

         public void ejbPostCreate(String codigoCurso, String nomeCurso) 
throws EJBException, CreateException {
         }
}


----
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

Reply via email to