But now I get this warning from JBoss when deploying:
Bean   : Report
Section: 9.4.7.1
Warning: The type of the field named in the primkey-field element must match
the
 class in the prim-key-class element.

But I guess it's just a warning...

Thanks for helping me.
/Pelle

> -----Ursprungligt meddelande-----
> Fran: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Skickat: den 30 oktober 2001 22:26
> Till: Pelle Poluha
> Kopia: [EMAIL PROTECTED]
> Amne: Re: SV: [Xdoclet-user] No code generated for entity beans
>
>
> hmm.. odd.  the messages look perfectly normal - javadoc that it cant fine
> the classes that xdoclet is about to generate - no surprise there as
> xdoclet hasn't generated them yet!  re the pk class, could you post your
> header comment in se.activa.icup.tr.ReportBean?  The pk wont be generated
> if you have @ejb:pk generate="false" or @ejb:pk
> class="java.lang.anything".
>
> hth
> dim
>
> On Tue, 30 Oct 2001, Pelle Poluha wrote:
>
> > Thanks, that helped. A little. Now I'm getting this output
> below. As can be
> > seen, no PK:s are being generated. And I keep getting these strange
> > warnings.
> >
> >   [xdoclet] Javadoc execution
> >   [xdoclet] Loading source file
> > C:\utv\projekt\icup\src\se\activa\icup\tr\TimeReportManagerBean.java...
> >   ...
> >   [xdoclet] Constructing Javadoc information...
> >   [xdoclet] javadoc: warning - Cannot find class
> > se.activa.icup.tr.ReportHome
> >   ...
> >   [xdoclet] javadoc: warning - Cannot find class
> > se.activa.icup.tr.ActivityPK
> >   ...
> >   [xdoclet] Create Home Interface for:
> > se.activa.icup.tr.TimeReportManagerBean
> >   ...
> >   [xdoclet] Create Remote Interface for:
> > se.activa.icup.tr.TimeReportManagerBean
> >   ...
> >   [xdoclet] Create Session Class for:
> > se.activa.icup.tr.TimeReportManagerBean
> >   ...
> >   [xdoclet] Create Entity CMP Class for:   se.activa.icup.tr.ReportBean
> >   ...
> >   [xdoclet] Create ejb-jar.xml
> >   [xdoclet] Create jboss.xml
> >   [xdoclet] Create jaws.xml
> >   [xdoclet] 14 warnings
> >
> > Any ideas?
> >
> > Regards,
> > Pelle Poluha
> >
> > > -----Ursprungligt meddelande-----
> > > Fran: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > Skickat: den 28 oktober 2001 22:43
> > > Till: Pelle Poluha
> > > Kopia: [EMAIL PROTECTED]
> > > Amne: Re: [Xdoclet-user] No code generated for entity beans
> > >
> > >
> > > In XDoclet your beans need to implement the appropriate
> interface, so make
> > > your entity beans implement javax.ejb.EntityBean and it should work.
> > >
> > > cheers
> > > dim
> > >
> > > On Sun, 28 Oct 2001, Pelle Poluha wrote:
> > >
> > > > Hello!
> > > >
> > > > I'm migrating from EJBDoclet to XDoclet, using XDoclet
> 1.0.1. When I run
> > > > xdoclet, no code gets generated for the enity beans. And
> only skeleton
> > > > descriptors are being generated. Everything works fine for
> session beans
> > > > though.
> > > >
> > > > Ant output:
> > > >
> > > > xdoclet:
> > > >   [xdoclet] Generating Javadoc
> > > >   [xdoclet] Javadoc execution
> > > >   [xdoclet] Loading source file
> > > > C:\utv\projekt\icup\src\se\activa\icup\tr\ActivityBean.java...
> > > >   [xdoclet] Constructing Javadoc information...
> > > >   [xdoclet] Create ejb-jar.xml
> > > >   [xdoclet] Create jboss.xml
> > > >   [xdoclet] Create jaws.xml
> > > >
> > > > The ant task looks like this:
> > > >
> > > >   <target name="xdoclet" depends="mkdirs">
> > > >   <taskdef name="xdoclet" classname="xdoclet.ejb.EjbDocletTask"
> > > > classpath="${xdoclet.jar};${log4j.jar};${ant.jar}" />
> > > >   <xdoclet
> > > >         sourcepath="${src.dir}"
> > > >         destdir="${generated.src.dir}"
> > > >
> > > >
> > > classpath="${classpath};${xdoclet.jar};${ant.jar};${log4j.jar};${j
> > > boss.dist}
> > > > /lib/ext/jta-spec1_0_1.jar"
> > > >         excludedtags="@version,@author"
> > > >         ejbspec="1.1">
> > > >
> > > >         <fileset dir="${src.dir}/se/activa/icup/tr">
> > > >                 <include name="**/ActivityBean.java" /> <!-- Just
> > > testing this Entity
> > > > bean --!>
> > > >         </fileset>
> > > >
> > > >         <remoteinterface/>
> > > >         <homeinterface/>
> > > >         <entitypk/>
> > > >         <entitycmp/>
> > > >         <deploymentdescriptor/>
> > > >     <jboss version="2.2" typemapping="mySQL"
> datasource="java:/mySQL"/>
> > > >   </xdoclet>
> > > >   </target>
> > > >
> > > > And the ActivityBean:
> > > >
> > > > package se.activa.icup.tr;
> > > >
> > > > import javax.ejb.EntityBean;
> > > > import javax.ejb.EntityContext;
> > > > import java.util.Collection;
> > > >
> > > > /**
> > > > *       @ejb:bean name="Activity" type="CMP"
> jndi-name="ejb/Activity"
> > > > primkey-field="id"
> > > > *       @ejb:finder     signature="java.util.Collection findAll()"
> > > role-name="user"
> > > > *       @ejb:transaction type="Required"
> > > > *       @ejb:data-object container="false"
> > > > *       @ejb:interface extends="se.activa.icup.tr.BasicRemote"
> > > > *       @ejb:pk class="java.lang.Integer"
> > > > *       @ejb:permission role-name="boss"
> > > > *
> > > > */
> > > > public abstract class ActivityBean
> > > > {
> > > >
> > > >         private EntityContext ctx;
> > > >
> > > >    /**
> > > >     * Id of this Activity.
> > > >     * @ejb:pk-field
> > > >     * @ejb:persistent-field
> > > >     */
> > > >         public abstract Integer getId();
> > > >         public abstract void setId(Integer id);
> > > > ...
> > > >
> > > > What am I doing wrong? Any help would be much appreciated.
> > > >
> > > > Regards,
> > > > Pelle Poluha
> > > >
> > > >
> > > > _______________________________________________
> > > > Xdoclet-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > > >
> > >
> > >
> >
> >
>
>


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to