Hi Guys,
Im on the way of learning
EJB and trying to deploy Entity beans. The app server is Weblogic 8.1.0.
Im getting the following error msg when Im trying to deploy the bean.
"Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 0 Module: CMPEntity Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was: Error parsing file 'META-INF/weblogic-ejb-jar.xml' at line: 12 column: 28. Element type "persistence-type" must be declared..
[Deployer:149033]preparing application CMPEntity on myserver
[Deployer:149033]failed application CMPEntity on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application CMPEntity on myserver.: Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 0 Module: CMPEntity Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was: Error parsing file 'META-INF/weblogic-ejb-jar.xml' at line: 12 column: 28. Element type "persistence-type" must be declared.. ."
But my weblogic-ejb-jar.xml has the element <persistence-type>. The contents of my weblogic-ejb-jar.xml are given below.
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>EntityCMP</ejb-name>
<entity-descriptor>
<entity-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>EntityCMPHome</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Could anyone pls help me resolving this.
Thanks in advance.
Uma