Hi,
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.
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 !!).
Kind regards.
H�l�ne.
PS: Indeed, the error's message should be
"Cannot read Deployment descriptor AccountBeanCMPImpl.ser"
instead of
"Cannot read Session Deployment descriptor AccountBeanCMPImpl.ser"
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".
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
PLEASE, TAKE INTO ACCOUNT MY NEW EMAIL
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
_______________________________________________________________
----
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".