On Sat, 2004-03-13 at 08:48, [EMAIL PROTECTED] wrote:
> Dear All,
> 
> I follow the Tutorial for building J2EE Application using JBOSS and ECLIPSE
> but I am facing a problem on generated DAO with xdoclet.
> 
> Here is my StoreAccessBean.java
> *****************************************************
> 
> /*
> * Created on 2004/3/13
> *
> * To change the template for this generated file go
> to
> * Window>Preferences>Java>Code Generation>Code and
> Comments
> */
> package au.com.tusc.session;
> 
> import javax.ejb.SessionBean;
> 
> /**
> * @ejb.bean name="StoreAccess"
> *     jndi-name="StoreAccessBean"
> *     type="Stateless"
> *
> * @ejb.dao class="au.com.tusc.session.StoreAccessDAO"
> * impl-class="au.com.tusc.dao.StoreAccessDAOImpl"
> *--
> * This is needed for JOnAS.
> * If you are not using JOnAS you can safely remove
> the tags below.
> * @jonas.bean ejb-name="StoreAccess"
> *     jndi-name="StoreAccessBean"
> *
> *--
> **/
> 
> public abstract class StoreAccessBean implements
> SessionBean {
> 
> }
> 
> *****************************************************
> 
> After I click Lomboz J2EE - Generate EJB Classes, I
> can't any StoreAccessDAO file under
> au.com.tusc.session package.  And eight error occur in
> ECLIPSE task windows.  This error is notified no
> au.com.tusc.session.StoreAccessDAO found.

Well, I don't use JBoss, Eclipse or Lomboz, so I'm only guessing, but it
looks like the DAO interfaces haven't been generated and you're getting
compilation errors from the generated Session subclass and your DAO
Implementation class.  The big question is why.  The @ejb.dao tag looks
okay, but is the dao subtask actually being run?  Also, what version of
XDoclet is being used? (originally, DAOs were written for BMP entity
EJBs, though they've worked for session beans as well for a long time
now, so unless it's using XDoclet 1.1.2 that shouldn't be a problem)

> What is the problem on my xdoclet?
> 
> P.S. I already create a package au.com.tusc.dao and
> class StoreAccessDAOImpl under src folder using
> New-Package and New-Class popup menu.

That won't make any difference to the generation; the DAO interface is
generated from the bean class.  However, since you're using the
impl-class parameter the compiler will need to be able to find the
DAOImpl class or you'll get errors from the getDao method in the
generated Session subclass.


Andrew.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to