First of all thank you for your reply....
For example my
aggregate-name="PreferredProducts"
I am getting error in the lines
public abstract Collection getPreferredProducts();
public abstract void setPreferredProducts(Collection products);
The error is
In bean Neworder, the abstract method, getPreferredProducts(), does not
correspond to any container-managed field and is not implemented in the bean
class or any of its superclasses.
In bean Neworder, the abstract method,
setPreferredProducts(java.util.Collection), does not correspond to any
container-managed field and is not implemented in the bean class or any of its
superclasses.
If i gave with interface methods for the above two set and get methods
/**
* @ejb.interface-method
*/
public abstract java.util.Collection getPreferredProducts();
/**
* @ejb.interface-method
*/
public abstract void setPreferredProducts(java.util.Collection products);
I am getting the error of
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..
All are in build face only...I am not getting any idea...
thank you
priya
Gwyn Evans <[EMAIL PROTECTED]> wrote:
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
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
>
>
> > "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
>
>
>
> > extension.]]>
> New_OrderEJB
>
>
>
>
>
>
> Head
>
> Head
>
> order.headsess.HeadHome
> order.headsess.Head
> order.headsess.HeadLocalHome
> order.headsess.HeadLocal
> order.headsess.HeadSession
> Stateless
> Container
>
>
>
> > 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 markup for those beans.
> -->
>
>
>
> ]]>
>
> Neworder
>
> order.headentity.NeworderHome
> order.headentity.Neworder
> order.headentity.NeworderLocalHome
> order.headentity.NeworderLocal
>
> order.headentity.NeworderCMP
>
Container
>
java.lang.String
> False
> 2.x
> NeworderSCHEMA
>
> CMP Field po_no Returns the
> po_no]]>
> po_no
>
>
> CMP Field po_date Returns the
> po_date]]>
> po_date
>
>
> CMP Field po_suppcode Returns
> the po_suppcode]]>
> po_suppcode
>
>
> CMP Field po_reference_no
> Returns the po_reference_no]]>
> po_reference_no
>
>
> CMP Field userid Returns the
> userid]]>
> userid
>
>
> CMP Field timestamp Returns
> the timestamp]]>
> timestamp
>
>
> CMP Field approved_by Returns
> the approved_by]]>
> approved_by
>
>
> CMP Field po_status Returns
> the po_status]]>
> po_status
>
>
po_no
>
>
>
> findAll
>
>
>
>
>
>
>
> findByStatus
>
> java.lang.String
>
>
> > = ?1]]>
>
>
>
> findByPo_no
>
> java.lang.String
>
>
> > ?1]]>
>
>
>
> findByPo_noCMR
>
> java.lang.String
>
>
> > ?1]]>
>
> > extra finders. -->
>
>
>
>
> ]]>
>
> OrderDetail
>
> order.detailentity.OrderDetailHome
> order.detailentity.OrderDetail
> order.detailentity.OrderDetailLocalHome
> order.detailentity.OrderDetailLocal
>
> order.detailentity.OrderDetailCMP
>
Container
>
java.lang.Integer
> False
> 2.x
> OrderDetailSCHEMA
>
> CMP Field serial_no Returns
> the serial_no]]>
> serial_no
>
>
> CMP Field po_no Returns the
> po_no]]>
> po_no
>
>
> CMP Field model_code Returns
> the model_code]]>
> model_code
>
>
> CMP Field color_code Returns
> the color_code]]>
> color_code
>
>
> CMP Field order_qty Returns
> the order_qty]]>
> order_qty
>
>
> CMP Field prod_yr Returns the
> prod_yr]]>
> prod_yr
>
>
> CMP Field prod_mth Returns the
> prod_mth]]>
> prod_mth
>
>
> CMP Field recd_qty Returns the
> recd_qty]]>
> recd_qty
>
>
serial_no
>
>
>
> findAll
>
>
>
>
>
> > define extra finders. -->
>
>
>
> > 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 markup for those 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 markup for those
> beans.
> -->
>
>
>
>
>
>
> Neworder
>
>
> Order-contains-Items
> One
>
> Neworder
>
>
> items
> java.util.Collection
>
>
>
>
> item-contained-in-order
> Many
>
>
> OrderDetail
>
>
>
>
>
> Order-Items
>
>
> Order-has-Items
> One
>
> Neworder
>
>
> orderDetail
> java.util.Collection
>
>
>
>
> Many
>
>
>
> 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
---------------------------------
Never miss a thing. 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