Just looking at the xml file shows it as being incomplete - presumably
xdoclet hasn't generated the xml file completely, so look at that
phase of the build, rather than the deployment phase.

/Gwyn

On 13/11/2007, Priya Pratheep <[EMAIL PROTECTED]> wrote:
> Hi
>
>    I am doing small program...I am newbie to ejb
>
>    I have two ebean.
>
>   1.NewOrder which is in the package order.headentity
>    2.Orderdetail which is in the package order.detailentity
>
> My relationship is 1 to n unidirectional
>
> My NewOrder bean program's some code  is
>
> @ejb.value-object
> *
> * name="Neworder"
> * match="*"
>
>
> /**
> * @ejb.value-object
> *
> * aggregate="order.detailentity"
> * aggregate-name="OrderDetail"
> * members="order.detailentity.OrderDetail"
> * members-name=="OrderDetail"
> * relation="external"
> *
> * @ejb.relation
> * name="Order-Items"
> * role-name="Order-has-Items"
> *
> * @weblogic.target-column-map
> * foreign-key-column="po_no"
> * key-column="po_no"
> *
> */
>
> public abstract java.util.Collection getOrderDetail();
>
>
> public abstract void setOrderDetail(java.util.Collection Items);
>
> When I publish i am getting error of
>
> BUILD FAILED
> D:\eclipse\plugins\com.bea.workshop.wls.legacy_1.0.1.200708171623\buildfiles\wldeploy.xml:24:
> weblogic.Deployer$DeployerException: Deployment exit
> status=1
> [
> Exception:weblogic.management.ApplicationException: Prepare
> failed. Task Id = 35
> Module: New_OrderEJB.jar 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: 247 column: 26. XML
> document structures must start and end within the same entity..
> ,
> Exception:weblogic.management.ApplicationException: Prepare
> failed. Task Id = 35
> Module: New_OrderEJB.jar 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: 247 column: 26. XML
> document structures must start and end within the same entity..
>
> ]
>
> My ejb-jar.xml file is
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 2.0//EN"
> "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
>
> <ejb-jar id="ejb-jar_1">
>
> <description><![CDATA[New_OrderEJB generated by eclipse wtp xdoclet
> extension.]]></description>
> <display-name>New_OrderEJB</display-name>
>
> <enterprise-beans>
>
> <!-- Session Beans -->
> <session id="Session_Head">
> <description><![CDATA[An EJB named Head]]></description>
> <display-name>Head</display-name>
>
> <ejb-name>Head</ejb-name>
>
> <home>order.headsess.HeadHome</home>
> <remote>order.headsess.Head</remote>
> <local-home>order.headsess.HeadLocalHome</local-home>
> <local>order.headsess.HeadLocal</local>
> <ejb-class>order.headsess.HeadSession</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
>
> </session>
>
> <!--
> To add session beans that you have deployment descriptor info for, add
> a file to your XDoclet merge directory called session-beans.xml that
> contains
> the <session></session> markup for those beans.
> -->
>
> <!-- Entity Beans -->
> <entity id="ContainerManagedEntity_Neworder">
> <description><![CDATA[<!-- begin-xdoclet-definition -->]]></description>
>
> <ejb-name>Neworder</ejb-name>
>
> <home>order.headentity.NeworderHome</home>
> <remote>order.headentity.Neworder</remote>
> <local-home>order.headentity.NeworderLocalHome</local-home>
> <local>order.headentity.NeworderLocal</local>
>
> <ejb-class>order.headentity.NeworderCMP</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.String</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-version>2.x</cmp-version>
> <abstract-schema-name>NeworderSCHEMA</abstract-schema-name>
> <cmp-field id="CMPAttribute_1">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_no Returns the
> po_no]]></description>
> <field-name>po_no</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_2">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_date Returns the
> po_date]]></description>
> <field-name>po_date</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_3">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_suppcode Returns
> the po_suppcode]]></description>
> <field-name>po_suppcode</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_4">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_reference_no
> Returns the po_reference_no]]></description>
> <field-name>po_reference_no</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_5">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field userid Returns the
> userid]]></description>
> <field-name>userid</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_6">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field timestamp Returns
> the timestamp]]></description>
> <field-name>timestamp</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_7">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field approved_by Returns
> the approved_by]]></description>
> <field-name>approved_by</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_8">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_status Returns
> the po_status]]></description>
> <field-name>po_status</field-name>
> </cmp-field>
> <primkey-field>po_no</primkey-field>
>
> <query>
> <query-method>
> <method-name>findAll</method-name>
> <method-params>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(a) FROM NeworderSCHEMA as a]]></ejb-ql>
> </query>
> <query>
> <query-method>
> <method-name>findByStatus</method-name>
> <method-params>
> <method-param>java.lang.String</method-param>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(a) FROM NeworderSCHEMA as a WHERE a.po_status
> = ?1]]></ejb-ql>
> </query>
> <query>
> <query-method>
> <method-name>findByPo_no</method-name>
> <method-params>
> <method-param>java.lang.String</method-param>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(a) FROM NeworderSCHEMA as a WHERE a.po_no =
> ?1]]></ejb-ql>
> </query>
> <query>
> <query-method>
> <method-name>findByPo_noCMR</method-name>
> <method-params>
> <method-param>java.lang.String</method-param>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(a) FROM NeworderSCHEMA as a WHERE a.po_no =
> ?1]]></ejb-ql>
> </query>
> <!-- Write a file named ejb-finders-NeworderBean.xml if you want to define
> extra finders. -->
>
> </entity>
>
> <entity id="ContainerManagedEntity_OrderDetail">
> <description><![CDATA[<!-- begin-xdoclet-definition -->]]></description>
>
> <ejb-name>OrderDetail</ejb-name>
>
> <home>order.detailentity.OrderDetailHome</home>
> <remote>order.detailentity.OrderDetail</remote>
> <local-home>order.detailentity.OrderDetailLocalHome</local-home>
> <local>order.detailentity.OrderDetailLocal</local>
>
> <ejb-class>order.detailentity.OrderDetailCMP</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.Integer</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-version>2.x</cmp-version>
> <abstract-schema-name>OrderDetailSCHEMA</abstract-schema-name>
> <cmp-field id="CMPAttribute_9">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field serial_no Returns
> the serial_no]]></description>
> <field-name>serial_no</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_10">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field po_no Returns the
> po_no]]></description>
> <field-name>po_no</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_11">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field model_code Returns
> the model_code]]></description>
> <field-name>model_code</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_12">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field color_code Returns
> the color_code]]></description>
> <field-name>color_code</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_13">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field order_qty Returns
> the order_qty]]></description>
> <field-name>order_qty</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_14">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field prod_yr Returns the
> prod_yr]]></description>
> <field-name>prod_yr</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_15">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field prod_mth Returns the
> prod_mth]]></description>
> <field-name>prod_mth</field-name>
> </cmp-field>
> <cmp-field id="CMPAttribute_16">
> <description><![CDATA[<!-- begin-user-doc --> CMP Field recd_qty Returns the
> recd_qty]]></description>
> <field-name>recd_qty</field-name>
> </cmp-field>
> <primkey-field>serial_no</primkey-field>
>
> <query>
> <query-method>
> <method-name>findAll</method-name>
> <method-params>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(a) FROM OrderDetailSCHEMA as a]]></ejb-ql>
> </query>
> <!-- Write a file named ejb-finders-OrderDetailBean.xml if you want to
> define extra finders. -->
>
> </entity>
>
> <!--
> To add entity beans that you have deployment descriptor info for, add
> a file to your XDoclet merge directory called entity-beans.xml that contains
> the <entity></entity> markup for those beans.
> -->
>
> <!-- Message Driven Beans -->
> <!--
> To add message driven beans that you have deployment descriptor info for,
> add
> a file to your XDoclet merge directory called message-driven-beans.xml that
> contains
> the <message-driven></message-driven> markup for those
> beans.
> -->
>
> </enterprise-beans>
>
> <!-- Relationships -->
> <relationships id="Relationships_1">
> <ejb-relation id="EJBRelation_1">
> <ejb-relation-name>Neworder</ejb-relation-name>
>
> <ejb-relationship-role id="EJBRelationshipRole_1">
> <ejb-relationship-role-name>Order-contains-Items</ejb-relationship-role-name>
> <multiplicity>One</multiplicity>
> <relationship-role-source id="RoleSource_1">
> <ejb-name>Neworder</ejb-name>
> </relationship-role-source>
> <cmr-field id="CMRField_1">
> <cmr-field-name>items</cmr-field-name>
> <cmr-field-type>java.util.Collection</cmr-field-type>
> </cmr-field>
> </ejb-relationship-role>
>
> <ejb-relationship-role id="EJBRelationshipRole_2">
> <ejb-relationship-role-name>item-contained-in-order</ejb-relationship-role-name>
> <multiplicity>Many</multiplicity>
> <cascade-delete/>
> <relationship-role-source id="RoleSource_2">
> <ejb-name>OrderDetail</ejb-name>
> </relationship-role-source>
> </ejb-relationship-role>
>
> </ejb-relation>
> <ejb-relation id="EJBRelation_2">
> <ejb-relation-name>Order-Items</ejb-relation-name>
>
> <ejb-relationship-role id="EJBRelationshipRole_3">
> <ejb-relationship-role-name>Order-has-Items</ejb-relationship-role-name>
> <multiplicity>One</multiplicity>
> <relationship-role-source id="RoleSource_3">
> <ejb-name>Neworder</ejb-name>
> </relationship-role-source>
> <cmr-field id="CMRField_2">
> <cmr-field-name>orderDetail</cmr-field-name>
> <cmr-field-type>java.util.Collection</cmr-field-type>
> </cmr-field>
> </ejb-relationship-role>
>
> <ejb-relationship-role id="EJBRelationshipRole_4">
> <multiplicity>Many</multiplicity>
> <relationship-role-source id="RoleSource_4">
> <ejb-name>
>
> Please help me sory out my problem
>
> thanks in advance
>
>  ________________________________
> Get easy, one-click access to your favorites. Make Yahoo! your homepage.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> xdoclet-user mailing list
> xdoclet-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>


-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to