Hello. I�m new with xdoclet and very impressed with it.
    I�m experiencing the following problem when compiling this:
 
    /**
    * @param address
    *
    * @ejb:interface-method view-type="local"
    */
    public abstract void setAddress(hl.interfaces.AddressLocal address);
   
    /**
    * @return the address of this person
    *
    * @ejb:interface-method view-type="local"
    * @ejb:relation
    *    name="person-address"
    *    home="AddressLocal"
    *    method="findByPrimaryKey"
    *    multiple="yes"
    */
    public abstract hl.interfaces.AddressLocal getAddress();

 
************************************************************************************
************************************************************************************
Create ejb-jar.xml
(TemplateEngine.invokeMethod         524 ) Invoking method failed: forAllRelationships , line=77 of template file: xdoclet\ejb\relationships.j
must have attribute "right-ejb" for ejb:relation PersonBean or you have misspelled the name parameter
        at xdoclet.ejb.AbstractEjbSubTask.forAllRelationships(AbstractEjbSubTask.java:1855)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.generateUsingMergedFile(SubTask.java:2904)
        at xdoclet.SubTask.merge(SubTask.java:1179)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.ifConfigParamGreaterOrEquals(SubTask.java:2049)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.generateFileUsingTemplate(SubTask.java:3052)
        at xdoclet.ejb.EjbDotXmlSubTask.execute(EjbDotXmlSubTask.java:108)
        at xdoclet.DocletTask$DocletMain.start(DocletTask.java:284)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
        at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
        at com.sun.tools.javadoc.Main.main(Main.java:233)
(TemplateEngine.invokeMethod         524 ) Invoking method failed: merge , line=4 of template file: xdoclet\ejb\relationships.j
Invoking method failed: forAllRelationships , line=77 of template file: xdoclet\ejb\relationships.j ,exception: null
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:525)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.generateUsingMergedFile(SubTask.java:2904)
        at xdoclet.SubTask.merge(SubTask.java:1179)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.ifConfigParamGreaterOrEquals(SubTask.java:2049)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.generateFileUsingTemplate(SubTask.java:3052)
        at xdoclet.ejb.EjbDotXmlSubTask.execute(EjbDotXmlSubTask.java:108)
        at xdoclet.DocletTask$DocletMain.start(DocletTask.java:284)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
        at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
        at com.sun.tools.javadoc.Main.main(Main.java:233)
(TemplateEngine.invokeMethod         524 ) Invoking method failed: ifConfigParamGreaterOrEquals , line=67 of template file: xdoclet\ejb\relationships.j
Invoking method failed: merge , line=4 of template file: xdoclet\ejb\relationships.j ,exception: null
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:525)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.ifConfigParamGreaterOrEquals(SubTask.java:2049)
        at java.lang.reflect.Method.invoke(Native Method)
        at xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:520)
        at xdoclet.util.TemplateEngine.invokeBlockMethod(TemplateEngine.java:593)
        at xdoclet.util.TemplateEngine.generate(TemplateEngine.java:422)
        at xdoclet.SubTask.generateFileUsingTemplate(SubTask.java:3052)
        at xdoclet.ejb.EjbDotXmlSubTask.execute(EjbDotXmlSubTask.java:108)
        at xdoclet.DocletTask$DocletMain.start(DocletTask.java:284)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
        at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
        at com.sun.tools.javadoc.Main.main(Main.java:233)
Running XDoclet failed:
Invoking method failed: ifConfigParamGreaterOrEquals , line=67 of template file: xdoclet\ejb\relationships.j ,exception: null
17 warnings
webdoclet:
compile:
Compiling 8 source files to D:\MyProjects\PROJECTS\patient\build\ejb
gen-src/java/hl/ejb/PersonCMP.java [16] hl.ejb.PersonCMP should be declared abstract; it does not define getAddress() in hl.ejb.PersonBean
public class PersonCMP
       ^
gen-src/java/hl/ejb/PatientCMP.java [16] hl.ejb.PatientCMP should be declared abstract; it does not define getAddress() in hl.ejb.PersonBean
public class PatientCMP
       ^
2 errors
script/build.xml [113] Compile failed, messages should have been provided.

Reply via email to