getting this error on compiling EJB.what is the reason for this error
874938Oct 4 2011 — edited Oct 4 2011<Oct 4, 2011 6:57:59 AM PDT> <Error> <J2EE> <BEA-160197> <Unable to load descrip
tor s1.jar/META-INF/ejb-jar.xml of module null. The error is weblogic.descriptor
.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-class@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'reentrant@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-version@http://java.sun.com/xml/ns/javaee'
here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'abstract-schema-name@http://java.sun.com/xml/n
s/javaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-field@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4c: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' before the end of the content in element entity@http://jav
a.sun.com/xml/ns/javaee:<null>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars
hallerFactory.java:245)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars
hallerFactory.java:231)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar
shallerFactory.java:155)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDesc
riptorManager.java:323)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
orBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr
iptorBean(AbstractDescriptorLoader2.java:409)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBean(AbstractDescriptorLoader2.java:768)
at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java
:135)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
LWithSchema(EjbDescriptorReaderImpl.java:716)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
L(EjbDescriptorReaderImpl.java:248)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
escriptorFromJarFile(EjbDescriptorReaderImpl.java:197)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
escriptorFromJarFile(EjbDescriptorReaderImpl.java:171)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJar
File(EjbDescriptorFactory.java:82)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:693)
at weblogic.ejbc20.runBody(ejbc20.java:461)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)
.>
There are 2 nested errors:
weblogic.utils.compiler.ToolFailureException: ERROR: Error creating descriptor f
rom jar file s1.jar:
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:711)
at weblogic.ejbc20.runBody(ejbc20.java:461)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)
and
weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-class@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'reentrant@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-version@http://java.sun.com/xml/ns/javaee'
here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'abstract-schema-name@http://java.sun.com/xml/n
s/javaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-field@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4c: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' before the end of the content in element entity@http://jav
a.sun.com/xml/ns/javaee:<null>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars
hallerFactory.java:245)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars
hallerFactory.java:231)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar
shallerFactory.java:155)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDesc
riptorManager.java:323)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
orBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr
iptorBean(AbstractDescriptorLoader2.java:409)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBean(AbstractDescriptorLoader2.java:768)
at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java
:135)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
LWithSchema(EjbDescriptorReaderImpl.java:716)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
L(EjbDescriptorReaderImpl.java:248)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
escriptorFromJarFile(EjbDescriptorReaderImpl.java:197)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
escriptorFromJarFile(EjbDescriptorReaderImpl.java:171)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJar
File(EjbDescriptorFactory.java:82)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:693)
at weblogic.ejbc20.runBody(ejbc20.java:461)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)
There are 3 nested errors:
weblogic.utils.compiler.ToolFailureException: ERROR: Error creating descriptor f
rom jar file s1.jar:
at weblogic.ejbc20.formatErrorsInCollection(ejbc20.java:634)
at weblogic.ejbc20.runBody(ejbc20.java:470)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)
and
weblogic.utils.compiler.ToolFailureException: ERROR: Error from ejbc: VALIDATION
PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-class@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'reentrant@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-version@http://java.sun.com/xml/ns/javaee'
here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'abstract-schema-name@http://java.sun.com/xml/n
s/javaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'cmp-field@http://java.sun.com/xml/ns/javaee' h
ere in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4a: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' instead of 'primary-key-field@http://java.sun.com/xml/ns/j
avaee' here in element entity@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4c: Expected element 'prim-key-class@http://java.s
un.com/xml/ns/javaee' before the end of the content in element entity@http://jav
a.sun.com/xml/ns/javaee:<null>
at weblogic.ejbc20.formatErrorsInCollection(ejbc20.java:634)
at weblogic.ejbc20.runBody(ejbc20.java:470)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)
and
weblogic.utils.compiler.ToolFailureException: ERROR: ejbc couldn't load descript
or from jar
at weblogic.ejbc20.runBody(ejbc20.java:471)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.ejbc.main(ejbc.java:36)