Hi H�l�ne,

Thanks for your recent email.

> You specify the list of the beans that will be handled on the 
> EJB server by specifying the name of their deployment descriptors in the
> 'jonas.beans.descriptors' property in the 'jonas.property' file.

I understand this, my entry in jonas.properties is:

jonas.beans.descriptors         AccountBeanCMPImpl.ser

> The given name of the deployment descriptor is a file's name.
> In case of this name is a relative path's name, the path is
> relative from where the EJB server is launched
> (and not from JONAS_ROOT !!).

I am launching the EJB Server from the directory "c:\jonas_jdk1.2". The file
"AccountBeanCMPImpl.ser" is also in this directory. My JONAS_ROOT is also
set to "c:\jonas_jdk1.2". The same error message:

"Cannot read Session Deployment descriptor AccountBeanCMPImpl.ser"

is still produced. I do not understand what I am doing wrong.

Any help appreciated.

Thanks.

Andy G.



> Andrew Gray wrote:
> > 
> > Hi folks,
> > 
> > I am having big problems deploying beans in JOnAS as it 
> complains at runtime
> > about not being able to find the Bean deployment 
> descriptor. The exact error
> > I get is:
> > 
> > "Cannot read Session Deployment descriptor AccountBeanCMPImpl.ser"
> > 
> > Firstly I am not trying to deploy a Session Bean but an 
> Entity Bean! My
> > descriptor looks like the following:
> > 
> > EntityDescriptor {
> >         BeanHomeName                    = 
> "containerManaged.AccountHome";
> >         EnterpriseBeanClassName         =
> > examples.ejb.basic.containerManaged.AccountBean;
> >         HomeInterfaceClassName          =
> > examples.ejb.basic.containerManaged.AccountHome;
> >         RemoteInterfaceClassName        =
> > examples.ejb.basic.containerManaged.Account;
> >         PrimaryKeyClassName             =
> > examples.ejb.basic.containerManaged.AccountPK;
> > 
> >         ControlDescriptors              = {
> >                 {
> >                         TransactionAttribute = TX_REQUIRED;
> >                 };
> >         };
> >         EnvironmentProperties           = 
> "AccountBeanCMPImpl.properties";
> >         ContainerManagedFields          = {
> >                 accountId; balance; accountType;
> >         };
> > }
> > 
> > and the Entity properties file is as follows:
> > 
> > datasource.name                 
> weblogic.jdbc.connectionPool.demoPool
> > db.TableName                    ejbAccounts
> > db.Field.accountId              id
> > db.Field.balance                bal
> > db.Field.accountType            type
> > db.Finder.findNullAccounts      where type = null
> > db.Finder.findAccount           where bal = ?
> > db.Finder.findBigAccounts       where bal > ?
> > db.Finder.findByPrimaryKey      where id = ?
> > 
> > I don't see why it is expecting a Session Bean or why it 
> can't find the .ser
> > file. This file has been placed in the JONAS_ROOT directory.
> > 
> > Any help would be greatly appreciated. Thanks in advance.
> > 
> > Andy.
> > 
> > Andrew Gray
> > Senior Software Engineer
> > Velitar Ltd
> > (+44)131 623 2621
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to