aspose file tools*
The moose likes BEA/Weblogic and the fly likes Entity Bean depolyment Error in WL8.1 beta Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Entity Bean depolyment Error in WL8.1 beta" Watch "Entity Bean depolyment Error in WL8.1 beta" New topic
Author

Entity Bean depolyment Error in WL8.1 beta

Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
HI All
I am using weblogic8.1 beta for entity bean depolyment CMP2.0 while depolying a bean it gives me following errors ;
<Dec 30, 2003 6:47:26 PM GMT+05:30> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 11 for the application _appsdir_devejb_jar.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 11
Module: devejbError: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Please ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server examples to ensure the format is correct. The error was:
[EJB:012021]Error: No persistence-type element was declared with the type-identifier 'WebLogic_CMP_RDBMS' and '6.0' for the EJB 'UserEJB'. Make sure your persistence-use declaration matches up with one of your persistence-type declarations for this EJB in the weblogic-ejb-jar.xml file..
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2522)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 11
Module: devejbError: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Please ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server examples to ensure the format is correct. The error was:
[EJB:012021]Error: No persistence-type element was declared with the type-identifier 'WebLogic_CMP_RDBMS' and '6.0' for the EJB 'UserEJB'. Make sure your persistence-use declaration matches up with one of your persistence-type declarations for this EJB in the weblogic-ejb-jar.xml file..
]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2459)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
My weblogic-jar.xml contains following attributes
<weblogic-enterprise-bean>
<ejb-name>UserEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>User</jndi-name>
</weblogic-enterprise-bean>
I have tried everything in type-version i.e 7.0,8.0,8.1,6.0 still deployment fails can somebody tell me what is wrong out here ?
help needed badly
regards
Rishi
Ashish Pagare
Ranch Hand

Joined: Oct 14, 2003
Posts: 101
Here's what you need to change/add:
1. Change type-version = Entity Version of the persistence type specified by type-identifier.
For WebLogic 2.0 CMP persistence, use the value: 2.0
For WebLogic 1.1 CMP persistence, use the value: 1.1
This element is only necessary if multiple versions of the same persistence type are installed.
Note: If you use WebLogic Server RDBMS-based persistence, the specified version must exactly match the RDBMS persistence version for the WebLogic Server release. Specifying an incorrect version results in the error:
weblogic.ejb.persistence.PersistenceSetupException: Error initializing the CMP Persistence Type for your bean: No installed Persistence Type matches the signature of (identifier `Weblogic_CMP_RDBMS', version `version_number').

2. Add DOCTYPE in your weblogic-ejb-jar.xml I presume you have mis-spelled the file name to weblogic-jar.xml:
<!DOCTYPE weblogic-ejb-jar '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
3. Add DOCTYPE in your weblogic-cmp-jar.xml:
<!DOCTYPE weblogic-ejb-jar '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-cmp-jar.dtd'>
Hope this help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity Bean depolyment Error in WL8.1 beta