Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

XDoclet Customization

Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys!
I'm currently trying to customize my xdoclet to extend the <ejbdoclet> task. Basically, I'm doing something like the nexted element <dao> Data Access Objects.
Since I'm a newbie with Xdoclet, what I did was basically copy all the code of the / and rename them to a custom filename like / MyDaoTagsHandler. I also updated the template dao.xdt and place these files under a common package xdoclet.modules.ejb.mydao. I compiled my code using JDK 1.4.2.
Next, I inserted these files under the xdoclet-ejb-module-1.2.jar and I updated the xdoclet.xml and xtags.xml of the jar to recognize my new tasks.
The problem is when I tried building the XDoclet Samples provided by Xdoclet, I keep getting a:
BUILD FAILED: java.lang.UnsupportedClassVersionError: xdoclet/modules/ejb/mydao/MyDaoSubTask.class (Unsupported major.minor version 48.0)
I read somewhere in the net that this error is usually cause by an outdated JVM. Would you guys know what is the correct JVM to use for the xdoclet-ejb-module-1.2.jar? Also, is it enough to use the jar uf jarname directory_to_be_added command when inserting classes to a jar file? I would really appreciate any help!
Thanks guys!
Saloon Keeper
Posts: 27931
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since no one's answering here, I think I'll movce your thread to the Other Open Source Projects forum. It was either there or Frameworks, but I think that XDoclet is more in that line.
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Owee,
I am also a newbie to XDoclet. I do not know what is the exact cause of your problem. I think by sharing my experience in extending XDoclet will help. First of all, I have no problem with JDK 1.4.2_02/03 in building XDoclet.
Next, I am using ANT to build XDoclet. Suppose you are working on the EJB module. Go to the C:\xdoclet-1.2src\modules\ejb and type "ant clean", then type ant to rebuild just the module. The updated ejb modules will be in C:\xdoclet-1.2src\target\lib. In your Ant build file for whatever project you are using Xdoclet, reference to the newly built xdoclet-ejb-module-1.2.jar.
If I am not wrong, you do not need to update the xdoclet.xml and xtags.xml. In your source code, you use Xdoclet tags to specify these. When you run the Xdoclet build, the task, subtask and tags will be automatically generated. That is the beauty of XDoclet itself. They said the Xdoclet people eat their own dog food.
Hope this help.
Best Regards
[ February 23, 2004: Message edited by: Frankie Cha ]
ice is for people that are not already cool. Chill with this tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic