File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f" Watch "EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f" New topic
Author

EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Hello friends,

I am getting following exception, could you please help to resolve this issue, i am using weblogic 10.3.1. I am not at all getting the solution in online. Is the weblogic dtd/schema got changed. Could you please help me to resolve my problem?


[EJB:011019]While reading META-INF/weblogic-cmp-rdbms-jar.xml, the persistence l
ayer of the Entity EJB failed to deploy. The error was:
Error in descriptor line 8: Error parsing file at line: 8 column: 30. org.xml.
sax.SAXParseException: Element type "unknown-primary-key-field" must be declared
..


at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:454)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:58)
Truncated. see log file for complete stacktrace


ejb-jar.xml



weblogic-ejb-jar.xml


weblogic-cmp-rdbms-jar.xml
murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Hello experts could you please help me to resolve my EJB CMP Entity Bean 2.1 issue? I am waiting for your great suggestion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 2.1 CMP Automatic primary key issue with <unknown-primary-key-field>empId</unknown-primary-key-f
 
Similar Threads
A Simple CMP Bean deployment problem in Bea WebLogic 8.0
A Simple CMP Bean deployment problem in Bea WebLogic 8.0
Where/how is the primary key defined a BMP bean?
How to Entity Beans in Jboss !
ejb deployement in weblogic 7.0 server