1 Reply Latest reply on Mar 16, 2003 8:24 AM by David Jencks

    XDoclet not running on Mac with released version of Java 1.4

    Ross Mills Newbie

      Hi,

      I just downloaded the recent release of Apple's Java 1.4.1 and installed in on my Xserve (OS X Server 10.2.4). I have been running with the beta version of 1.4.1 some time with no problem. However, I cannot seem to use XDoclet with the released version.

      Just to make sure, I downloaded the latest version of xdoclet from sourceforge and tried to build the sample project included in the download. On Windows, the project built without any problems. However, on the Mac I got the following...

      Macintosh 9 /Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/samples % $ANT_HOME/bin/ant
      Buildfile: build.xml

      init:

      prepare:

      ejbdoclet:
      [echo] +---------------------------------------------------+
      [echo] | |
      [echo] | R U N N I N G E J B D O C L E T |
      [echo] | |
      [echo] +---------------------------------------------------+
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] (XDocletMain.start 51 ) Running XDoclet failed.
      [ejbdoclet] (XDocletMain.start 52 ) <<xdoclet.template.TemplateException: Error in template file: corresponding </XDtClass:classOf> not found, line=8 of template file: jar:file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/lib/xdoclet-ejb-module-1.2b2.jar!/xdoclet/modules/ejb/intf/resources/local.xdt>>
      [ejbdoclet] xdoclet.template.TemplateException: Error in template file: corresponding </XDtClass:classOf> not found, line=8 of template file: jar:file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/lib/xdoclet-ejb-module-1.2b2.jar!/xdoclet/modules/ejb/intf/resources/local.xdt
      [ejbdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:824)
      [ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:425)
      [ejbdoclet] at xdoclet.template.TemplateParser.generate(TemplateParser.java:114)
      [ejbdoclet] at xdoclet.template.TemplateParser.start(TemplateParser.java:84)
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:303)
      [ejbdoclet] at xdoclet.GenerationManager.isTemplateNewerThanFile(GenerationManager.java:228)
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:136)
      [ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:753)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
      [ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:484)
      [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:46)
      [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:457)
      [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:69)
      [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:319)
      [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
      [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      [ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:610)
      [ejbdoclet] at org.apache.tools.ant.Main.start(Main.java:196)
      [ejbdoclet] at org.apache.tools.ant.Main.main(Main.java:235)
      [ejbdoclet] file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/samples/build.xml:97: XDoclet failed.
      [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:460)
      [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:69)
      [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:319)
      [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
      [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      [ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:610)
      [ejbdoclet] at org.apache.tools.ant.Main.start(Main.java:196)
      [ejbdoclet] at org.apache.tools.ant.Main.main(Main.java:235)
      [ejbdoclet] Caused by: xdoclet.XDocletException: xdoclet.template.TemplateException: Error in template file: corresponding </XDtClass:classOf> not found, line=8 of template file: jar:file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/lib/xdoclet-ejb-module-1.2b2.jar!/xdoclet/modules/ejb/intf/resources/local.xdt
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:306)
      [ejbdoclet] at xdoclet.GenerationManager.isTemplateNewerThanFile(GenerationManager.java:228)
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:136)
      [ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:753)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
      [ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:484)
      [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:46)
      [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:457)
      [ejbdoclet] ... 10 more
      [ejbdoclet] --- Nested Exception ---
      [ejbdoclet] xdoclet.XDocletException: xdoclet.template.TemplateException: Error in template file: corresponding </XDtClass:classOf> not found, line=8 of template file: jar:file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/lib/xdoclet-ejb-module-1.2b2.jar!/xdoclet/modules/ejb/intf/resources/local.xdt
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:306)
      [ejbdoclet] at xdoclet.GenerationManager.isTemplateNewerThanFile(GenerationManager.java:228)
      [ejbdoclet] at xdoclet.GenerationManager.isGenerationNeeded(GenerationManager.java:136)
      [ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:753)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
      [ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:484)
      [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:46)
      [ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:457)
      [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:69)
      [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:319)
      [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
      [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      [ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:610)
      [ejbdoclet] at org.apache.tools.ant.Main.start(Main.java:196)
      [ejbdoclet] at org.apache.tools.ant.Main.main(Main.java:235)

      BUILD FAILED
      file:/Users/rmills/Desktop/xdoclet-bin-1.2b2 Folder/samples/build.xml:97: Unexpected error

      Total time: 5 seconds

      When I try to revert back to Java 1.3.1, I get another set of problems. I submitted a bug report to Apple. Any suggestions?

      Ross