dcsimg
EJB-CMP JDBC Issue on JBoss Deployment
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Marilia_Freire
Posted On:   Monday, May 19, 2003 07:32 AM

I´m getting a error message when I deployed my EJB CMP application on JBoss. My Entity beans has many relationships... The message is: ... 11:15:30,461 INFO [EjbModule] Created 11:15:30,461 INFO [EjbModule] Starting 11:15:31,473 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=RelatorioDiarioML,service=EJB org.jboss.deployment.DeploymentException: Role: ClienteRelationshipRole with multiplicity many using foreign-key mapping is not allowed to have key-fields at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKeyFields(JDBCRelationshipRoleMetaData.java:357) at org.jboss.ejb.plugins.cmp.   More>>

I´m getting a error message when I deployed my EJB CMP application on JBoss.

My Entity beans has many relationships...

The message is:

			
...
11:15:30,461 INFO [EjbModule] Created

11:15:30,461 INFO [EjbModule] Starting

11:15:31,473 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=RelatorioDiarioML,service=EJB

org.jboss.deployment.DeploymentException: Role:
ClienteRelationshipRole with multiplicity many using foreign-key mapping is not allowed to have key-fields

at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKeyFields(JDBCRelationshipRoleMetaData.java:357)

at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init(JDBCRelationshipRoleMetaData.java:157)

at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData. (JDBCRelationMetaData.java:313)

at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData. (JDBCApplicationMetaData.java:383)

at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:75)

at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:677)

at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:389)

at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)

at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)

at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)

at org.jboss.ejb.Container.invoke(Container.java:756)

at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)

at $Proxy4.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:413)

at java.lang.reflect.Method.invoke(Native Method)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

at $Proxy26.start(Unknown Source)

at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)

Somebody can help me?

Thanks in advance...    <<Less

Re: EJB-CMP JDBC Issue on JBoss Deployment

Posted By:   Vincent_Fischer  
Posted On:   Monday, May 19, 2003 09:36 AM

Sounds like a foriegn key mapping is not allowed to have a key field assigned to it.



Its difficult to give any specifics as you didn't post any code.
About | Sitemap | Contact