I am having an issue deploying a relationship with 2 beans currently.

I get the following error (the full error is at the bottom of this message):
===================================================
[java] [EJB:011017]Error while reading
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
     [java]
     [java] In bean BusinessCard, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BusinessCard, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.

     [java] In bean BankAccount, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BankAccount, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.


[java] Role 'AutomaticPaymentBankAccount-belongs_to-BusinessCard' of
relationship 'BusinessCard-AutomaticPaymentBankAccount' contains an
invalid key-column value of 'automaticPaymentAccountFK'. The
key-column must specify a primary key column in the related bean.
However, there is no primary key column named
'automaticPaymentAccountFK' defined in the related bean
'BusinessCard' or else 'automaticPaymentAccountFK' is not being
recognized due to case mismatch.






I need to have  a product:

Product
======
productPK (PK)
automaticPaymentFK (not pk (accountPk))
ElectronicPaymentFK (not pk (accountPk))

That has a relationship with an account:
Account
======
accountPK
otherFields....


Here is what I have in my BusinessCardBean: (I only included 1 relationship
for clarity)
=================================
    /**
         *  This is a one (BusinessCard) to one (BankAccount) relationship.
         *  We can get a BankerDto in the
BusinessCardDto.getAutomaticPaymentAccount() method.
         *  We can also setAutomaticPaymentAccount( pBankAccount )
         *
         * @ejb.interface-method
         *      view-type="local"
         *
     * @ejb.value-object
     *      compose="com.wf.bd.ice.account.BankAccountDto"
     *      compose-name="AutomaticPaymentAccountDto"
     *      members="com.wf.bd.ice.account.BankAccountLocal"
     *      members-name="AutomaticPaymentAccount"
     *      relation="external"
     *
     * @ejb.relation
     *      name="BusinessCard-AutomaticPaymentBankAccount"
     *      role-name="BusinessCard-has-AutomaticPaymentBankAccount"
         *      target-ejb="BankAccount"
         *
target-role-name="AutomaticPaymentBankAccount-belongs_to-BusinessCard"
         *      target-cascade-delete="yes"
         *
         * @weblogic.target-column-map
         *      foreign-key-column="bankAccountPK"
         *      key-column="automaticPaymentAccountFK"
     **/
    public abstract BankAccountLocal getAutomaticPaymentAccount();
    public abstract void setAutomaticPaymentAccount( BankAccountLocal
pAutomaticPaymentAccount );



Here is my BankAccountBean:
=======================

    /**
     * Manage the BankAccount's DTO/Form object
     *
         *  This method needs to be implemented because Product EJB's use it
to access
         *  the BankAccountDto object for the AutomaticPaymentAccount
object.
         *
     * @ejb.interface-method
     **/
    public abstract BankAccountDto getAutomaticPaymentAccountDto();

    /**
     * @ejb.interface-method
     **/
    public abstract void setAutomaticPaymentAccountDto( BankAccountDto
pBankAccountDto );








[java] Unable to deploy EJB: iceEJB.jar from iceEJB.jar:


     [java] [EJB:011017]Error while reading
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
     [java]
     [java] In bean BusinessCard, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BusinessCard, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.

     [java] In bean BankAccount, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BankAccount, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.


[java] Role 'AutomaticPaymentBankAccount-belongs_to-BusinessCard' of
relationship 'BusinessCard-AutomaticPaymentBankAccount' contains an
invalid key-column value of 'automaticPaymentAccountFK'. The
key-column must specify a primary key column in the related bean.
However, there is no primary key column named
'automaticPaymentAccountFK' defined in the related bean
'BusinessCard' or else 'automaticPaymentAccountFK' is not being
recognized due to case mismatch.
     [java] .

     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255)
     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
     [java]     at
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine
r.java:2962)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContain
er.java:1534)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:1188)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:1031)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepare
Container(SlaveDeployer.java:2602)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(
SlaveDeployer.java:2552)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDep
loyer.java:2474)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeplo
yer.java:798)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.ja
va:507)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.j
ava:465)
     [java]     at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.ja
va:25)
     [java]     at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     [java]     at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)


[java] weblogic.ejb20.WLDeploymentException: [EJB:011017]Error while
reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
     [java]
     [java] In bean BusinessCard, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BusinessCard, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.

     [java] In bean BankAccount, the abstract method,
getAutomaticPaymentAccountDto(), does not correspond to any
container-managed field and is not implemented in the bean class or any
of its superclasses.

     [java] In bean BankAccount, the abstract method,
setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto),
does not correspond to any container-managed field and is not
implemented in the bean class or any of its superclasses.

     [java] Role 'AutomaticPaymentBankAccount-belongs_to-BusinessCard'
of relationship 'BusinessCard-AutomaticPaymentBankAccount' contains an
invalid key-column value of 'automaticPaymentAccountFK'. The
key-column must specify a primary key column in the related bean.
However, there is no primary key column named
'automaticPaymentAccountFK' defined in the related bean
'BusinessCard' or else 'automaticPaymentAccountFK' is not being
recognized due to case mismatch.

[java] .
     [java]     at
weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceTy
pe.java:526)
     [java]     at
weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.jav
a:414)
     [java]     at
weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:110)
     [java]     at
weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPComp
iler.java:64)
     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
     [java]     at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
     [java]     at
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
     [java]     at
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine
r.java:2962)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContain
er.java:1534)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:1188)
     [java]     at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:1031)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepare
Container(SlaveDeployer.java:2602)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(
SlaveDeployer.java:2552)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDep
loyer.java:2474)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeplo
yer.java:798)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.ja
va:507)
     [java]     at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.j
ava:465)
     [java]     at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.ja
va:25)
     [java]     at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     [java]     at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)











---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to