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