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