wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "deployment problem" Watch "deployment problem" New topic

deployment problem

alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
what is wrong with my ejb-jar.xml file i am using weblogic 8.1
while deploying following error is faced:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 0 Module: hello 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/ejb-jar.xml' at line: 12 column: 11. The content of element type "entity" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,ejb-name,home,remote,ejb-class,persistence-type,prim-key-class,reentrant,cmp-field*,primkey-field?,env-entry*,ejb-ref*,security-role-ref*,resource-ref*)"..
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<description>this bean prints hello</description>
<description>this is a test bean</description>
can anyone give me a listing of a corrected file please............
prasad Chandrasekaran Iyer

Joined: Jan 14, 2004
Posts: 18
your public id doesn't match with the xml validator you are using check out the Doctype
it is 1.1 and the dtd is 2.0
prasad chandrasekaran
alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
i have made the change:
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
as suggested by you then to the problem persists
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
You are missing a number of required fields like: persistence-type,prim-key-class,reentrant, etc. (Look for all the ones that don't have a question mark or star after them).
You've not added basic things like is this a CMP or a BMP (persistence type) what primary key class to use (prim-key-class), etc. You need to go back and start with a basic text like Richard Monson-Haefel's or Ed Roman's and look at their examples.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
I agree. Here's the link: http://aspose.com/file-tools
subject: deployment problem
Similar Threads
How to get the datasource from Bean through deployment descriptor
Problem deploying ejbs in weblogic
"variable contained illegal space"
Deploying Session Bean