I managed to fix this issue a while ago:  One of the entity beans ended up
having the name "SessionBean", which obviously clashes with the SessionBean
interface type.  Changing the name of the entity bean to something
different, resulted in the error disappearing.

Thanks,
Gerrit Grobbelaar

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Gerrit
> Grobbelaar
> Sent: Tuesday, August 16, 2005 21:03
> To: [email protected]
> Subject: RE: [Xdoclet-user] ejb-jar.xml generation error with
> PrimKeyField
>
>
> The relevant parts from the Entity bean are as follows:
>
> ================================
>    /**
>     * Returns the sessionId
>     *
>     * @return the sessionId
>     *
>     * @ejb.pk-field
>     * @ejb.interface-method view-type="local"
>     * @ejb.persistent-field
>     * @ejb.persistence column-name="SessionId"
>     */
>    public abstract java.lang.Long getSessionId();
>
>    /**
>     * Returns the gameScheduleId
>     *
>     * @return the gameScheduleId
>     *
>     * @ejb.pk-field
>     * @ejb.interface-method view-type="local"
>     * @ejb.persistent-field
>     * @ejb.persistence column-name="GameScheduleId"
>     */
>    public abstract java.lang.Long getGameScheduleId();
> ================================
>
> As you can see they are generated correctly, i.e. they are publicly
> accessible.
>
> Thanks,
> Gerrit Grobbelaar
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Frank
> > Langelage
> > Sent: Tuesday, August 16, 2005 20:00
> > To: [email protected]
> > Subject: Re: [Xdoclet-user] ejb-jar.xml generation error with
> > PrimKeyField
> >
> >
> > Gerrit Grobbelaar wrote:
> >
> > >Hi all,
> > >
> > >Urgent help needed:
> > >I get the following error when trying to generate the ejb-jar.xml file:
> > >
> > >[ejbdoclet] ERROR [main] (XDocletMain.java:54) - <<Could not
> find method
> > >getSessionId that is supposed to return the PrimKeyField.>>
> > >
> > >This can not be because the generated PK class looks as follows:
> > >
> > >=====================================
> > >public class SessionGameSchedulePK
> > >   extends java.lang.Object
> > >   implements java.io.Serializable
> > >{
> > >
> > >   public java.lang.Long sessionId;
> > >   public java.lang.Long gameScheduleId;
> > >
> > >   public SessionGameSchedulePK()
> > >   {
> > >   }
> > >
> > >   public SessionGameSchedulePK( java.lang.Long
> sessionId,java.lang.Long
> > >gameScheduleId )
> > >   {
> > >      this.sessionId = sessionId;
> > >      this.gameScheduleId = gameScheduleId;
> > >   }
> > >
> > >   public java.lang.Long getSessionId()
> > >   {
> > >      return sessionId;
> > >   }
> > >   public java.lang.Long getGameScheduleId()
> > >   {
> > >      return gameScheduleId;
> > >   }
> > >
> > >   public void setSessionId(java.lang.Long sessionId)
> > >   {
> > >      this.sessionId = sessionId;
> > >   }
> > >   public void setGameScheduleId(java.lang.Long gameScheduleId)
> > >   {
> > >      this.gameScheduleId = gameScheduleId;
> > >   }
> > >}
> > >=====================================
> > >
> > >So the getSessionId() method that XDoclet complains about IS
> > present.  Maybe
> > >there is something that I'm missing, but if someone have a
> quick and easy
> > >remedy to my woes, it will be highly appreciated.
> > >
> > >Thanks in advance,
> > >Gerrit Grobbelaar
> > >
> > >
> > Is the method getSessionId() also in your entity bean and public
> > accessible there ?
> > Show us the relevant parts from the ejb class.
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> > Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> > Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to