1 Reply Latest reply: Nov 26, 2008 4:52 AM by thomas.behr RSS

    Problems building JavaDoc of classes using Hibernate/javax.persistence

    843810
      Hallo!

      I am trying to create the javadoc of classes that use hibernate. First it starts of with error messages like
        [javadoc] SubmissionSet.java:40: cannot find symbol
        [javadoc] symbol: class Table
        [javadoc] @Table(name="submissionset"/*, schema = "reg"*/)
      or
        [javadoc] Employee.java:8: package javax.persistence does not exist
        [javadoc] import javax.persistence.JoinColumn;
        [javadoc]                         ^
      Afterwards it gets even strange with exceptions within javadoc like:
      [javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
        [javadoc]     at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
        [javadoc]     at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
        [javadoc]     at com.sun.tools.doclets.formats.html.TagletWriterImpl.deprecatedTagOutput(TagletWriterImpl.java:70)
        [javadoc]     at com.sun.tools.doclets.internal.toolkit.taglets.DeprecatedTaglet.getTagletOutput(DeprecatedTaglet.java:40)
        [javadoc]     at com.sun.tools.doclets.formats.html.MethodWriterImpl.writeDeprecated(MethodWriterImpl.java:166)
        [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.buildDeprecationInfo(MethodBuilder.java:183)
        [javadoc]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        [javadoc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        [javadoc]     at java.lang.reflect.Method.invoke(Method.java:597)
        [javadoc]     at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.invokeMethod(MethodBuilder.java:109)
        [javadoc]     at com.sun.tools.doclets.internal.toolkit.bu    at java.lang.reflect.Method.invoke(Method.java:597)
        [javadoc]     at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
        [javadoc]     at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
        [javadoc]     at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
        [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:128)
        [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:41)
        [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:31)
      I suppose the problem is somehow linked to the usage of hibernate since the same ant script works for other projects (that don't use hibernate...). Do you have an idea what could be wrong?

      Thanks in advance
      Patrick