Hello,
I am having a problem getting XDoclet to generate an <entity> entry in my 
ejb-jar.xml deployment descriptor for one of my CMP 2.x entity beans.  What's 
wierd is that it works correctly for six other beans that I simultaneously 
converted to XDoclet tag markup.

I'm assuming I have a property misspelled somewhere, but I can't figure out 
which one, and I've been through it several times, comparing it with my 
working beans.

One of the symptoms is that the local and localhome interfaces are generated 
fine, but in the comment I notice that the name of the bean is wrong:
/**
 * Local interface for com.wavespring.cs.ejb.cmp.TPR.
 */
public interface TPRLocal ...(etc)

because the @ejb.bean tag in TPRBean.java looks like this:
/*
 * @ejb.bean 
 *    name="tpr/TPR"
 *    type="CMP" 
 *    view-type="local" 
 *    local-jndi-name="tpr/TPRLocal" 
 *    primkey-field="id"
 *    schema="TPR"
 *    cmp-version="2.x" 
* ...(etc)

my other CMP entity beans are similarly named (with the tpr/ prefix) and their 
names show up correctly in the generated interface comments:
/**
 * Local interface for tpr/TPRComments.
 */
public interface TPRCommentsLocal ... (etc)


this problem later causes the following error when trying to generate the 
jboss deployment descriptor files:

[ejbdoclet] Running <deploymentdescriptor/>
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] Running <jboss/>
[ejbdoclet] Generating jboss.xml.
[ejbdoclet] 0 [main] ERROR XDocletMain.start  - Running XDoclet failed.
[ejbdoclet] 8 [main] ERROR XDocletMain.start  - <<XDoclet can't guess what CMP 
version to use for com.wavespring.cs.ejb.cmp.TPRBean because the <entitycmp> 
task isnt used, and there is no ejb:bean cmp-version tag. Please use one of 
them.>>
[ejbdoclet] file:/home/casp/projects/wavespring/build.xml:119: XDoclet failed.
[ejbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:460)

But as you can see above, I have @ejb.bean cmp-version defined... So I am at a 
loss here as to what's going wrong with this one bean.

I'm using XDoclet 1.2.0-beta2 (just downloaded the bin dist last night)

any thoughts on this are greatly appreciated!
thanks in advance
Justin



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to