facebook

Tutorial: Web Development with MyEclipse and Jboss Part 2

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253549 Reply

    Glenn Puckett
    Participant

    I am in the part of the tutorial where I just completed the first CMP entity bean Inventory. I have confirmed that all the code has been entered as directed in the tutorial. Upon completion I executed XDoclet. There are two exceptions listed in the project. Both are in modules generated by XDoclet. In the com.webstock.interfaces package the modules InventoryLocal.java and InventoryLocalHome.java both have errors. The error is in both modules are the following lines:

    
       public com.webstock.ejb.InventoryData getData(  ) ;
    
       public void setData( com.webstock.ejb.InventoryData pData ) ;
    

    It turns out that the InventoryData.java module was placed in the interfaces package instead of the ejb package. I could move the module but the very next time I generate it will put it in the wrong place again. Since this is all code generated by XDoclet there has to be a way to tell XDoclet the proper place to put the InventoryData.java module.

    I am puzzled at the way this happened. It seems that since it put the module in a specific package it would know where to reference that in other modules. Obviously in itself this is not a big deal. However, as I move to future code I would prefer to understand why this happened and how to fix it.

    Thanks,

    Glenn Puckett
    MetaMAP, Inc.
    Lexington, KY

    #253603

    Riyad Kalla
    Member

    Glenn,
    Is this a LiLaLuna tutorial?

    #253618

    Glenn Puckett
    Participant

    @support-rkalla wrote:

    Glenn,
    Is this a LiLaLuna tutorial?

    No, this came from the myEclipse website.

    It was very wierd. I changed the code to point to the interfaces package and got rid of the error. However, everytime I have executed XDoclet since I have not had a problem. Occasionaly I delete all generated code before running XDoclet just to make sure everything gets re-generated. It’s working fine now.

    Gremlins!!

    Glenn Puckett
    MetaMAP, Inc
    Lexington, Ky

    #253629

    Riyad Kalla
    Member

    Grrr, it certainly sounds like gremlins.

    I know that we have an issue filed to improve XDoclet support moving forward after some more updates are done, so hopefully this should improve moving forward.

    I would point out once you move to EJB3, all of this XDoclet stuff goes away, then we can run through the streets cheering 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Tutorial: Web Development with MyEclipse and Jboss Part 2

You must be logged in to post in the forum log in