Hello All,

Here is the contents of jbosscmp-jdbc.xml:

    <relationships>
        <ejb-relation>
            <ejb-relation-name>mapNames-mapEntity</ejb-relation-name>
            <foreign-key-mapping />
            <ejb-relationship-role>
 
<ejb-relationship-role-name>MapNamesRelationshipRole</ejb-relationship-role-
name>
                <key-fields>
                    <key-field>
                        <field-name>mapNameId</field-name>
                        <column-name>MAP_NAME_ID</column-name>
                    </key-field>
                </key-fields>
            </ejb-relationship-role>
            <ejb-relationship-role>
 
<ejb-relationship-role-name>MapEntityRelationshipRole</ejb-relationship-role
-name>
                <key-fields />
            </ejb-relationship-role>
        </ejb-relation>
        <ejb-relation>
            <ejb-relation-name>node-route</ejb-relation-name>
            <foreign-key-mapping />
            <ejb-relationship-role>
 
<ejb-relationship-role-name>NodeRelationshipRole</ejb-relationship-role-name
>
                <key-fields>
                    <key-field>
                        <field-name>nodeId</field-name>
                        <column-name>NODE_ID</column-name>
                    </key-field>
                </key-fields>
            </ejb-relationship-role>
            <ejb-relationship-role>
 
<ejb-relationship-role-name>RouteRelationshipRole</ejb-relationship-role-nam
e>
                <key-fields />
            </ejb-relationship-role>
        </ejb-relation>
        <ejb-relation>
            <ejb-relation-name>route-node</ejb-relation-name>
            <foreign-key-mapping />
            <ejb-relationship-role>
 
<ejb-relationship-role-name>RouteRelationshipRole</ejb-relationship-role-nam
e>
                <key-fields>
                    <key-field>
                        <field-name>nodeId</field-name>
                        <column-name>NODE_ID</column-name>
                    </key-field>
                </key-fields>
            </ejb-relationship-role>
            <ejb-relationship-role>
 
<ejb-relationship-role-name>NodeRelationshipRole</ejb-relationship-role-name
>
                <key-fields />
            </ejb-relationship-role>
        </ejb-relation>
        <ejb-relation>
            <ejb-relation-name>mapEntity-mapInstances</ejb-relation-name>
            <foreign-key-mapping />
            <ejb-relationship-role>
 
<ejb-relationship-role-name>MapEntityRelationshipRole</ejb-relationship-role
-name>
                <key-fields>
                    <key-field>
                        <field-name>mapId</field-name>
                        <column-name>MAP_ID</column-name>
                    </key-field>
                </key-fields>
            </ejb-relationship-role>
            <ejb-relationship-role>
 
<ejb-relationship-role-name>MapInstancesRelationshipRole</ejb-relationship-r
ole-name>
                <key-fields />
            </ejb-relationship-role>
        </ejb-relation>
    </relationships>

>  -----Original Message-----
> From:         Sasidharan, Manoj  
> Sent: Thursday, August 28, 2003 5:10 AM
> To:   [EMAIL PROTECTED]
> Cc:   Sasidharan, Manoj
> Subject:      Problem deploying Entity Beans with relationships in JBoss
> 3.2.2 - Please Help
> 
> Hello All,
> 
> I am trying to deploy a jar file that contains some entity beans with
> relationships. It fails to deploy giving the following error:
> 
> Can somebody help me resolve this also.
> 
> Thanks in advance for your help and time.
> 
> Best Regards
> MS
> 
> 12:59:16,641 ERROR [EntityContainer] Starting failed
> org.jboss.deployment.DeploymentException: Role: RouteRelationshipRole with
> multi
> plicity many using foreign-key mapping is not allowed to have key-fields
>         at
> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.
> loadKeyFields(JDBCRelationshipRoleMetaData.java:432)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.
> init(JDBCRelationshipRoleMetaData.java:189)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(J
> DBCRelationMetaData.java:341)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init
> >(JDBCApplicationMetaData.java:404)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
> lFileLoader.java:75)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
> a(JDBCStoreManager.java:739)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
> StoreManager.java:430)
>         at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
> r.java:372)
>         at
> org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
> er.java:160)
>         at
> org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
>         at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
> 92)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
>         at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
> ler.java:976)
>         at $Proxy13.start(Unknown Source)
>         at
> org.jboss.system.ServiceController.start(ServiceController.java:394)
>         at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to