facebook

Problem running XDoclet on an EJB project [Enhancement]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #197790 Reply

    jrm.robert
    Member

    I am using v2.5.1 of the workbench with eclipse 2.1.1.

    When I run XDoclet on an EJB project i get an error message in the console:
    [ejbdoclet] e:\developpement\eclipse\Workspaces\default211\workspace\WorkLoadBench_EJB\src not found.

    I can’t understand why it is trying to mess with this folder that does not exit since the sourcecode of the project is located in the “EJB Module” folder.

    When I look in the xdoclet-buil.xml file, i can see lines like :
    <fileset dir=”src” includes=”**/*.java” > which seems to indicate that the missing “src” is considered as the source folder… why ?

    #197791 Reply

    support-michael
    Keymaster

    The MyEclipse XDoclet integration is a work in progress. The default XDoclet configuration is not respecting the project’s designated source folder, e.g., “EJB Module”, but instead is trying to use its default of “src”. The remedy is to either rename your “EJB Module” folder to “src” or from the project’s Xdoclet properties change the element attribute named fileset.dir to “EJB Module”. I found the former (“changing the project’s source folder”) easiest.

    To do the latter, select the project and open the context menut (right-click menu). Choose Properties->XDoclet Configuration. Select the “EJB Standard” template to populate the doclet’s tags (element). Then select the “fileset” element to view and modify the “dir” attribute value.

    We are already working on a much tighter XDoclet integration to resolve this very problem.

    Michael
    MyEclipse Support

    #197856 Reply

    ssidi
    Member

    I am running into a similar issue. I’d like for the source code to be generated in the EJB source dir (as specified in the project) but am not able to do so. I changed the xDoclet fileset element’s dir attribute as follows:

    <fileset dir=”C:/ccviews/sidi_snap_view/pws_redesign/src” includes=”**/*.java” excludes=”**/*Facade*.java” >

    The code is still being generated under the <project dir>/src dir (the value of dir attribute seems to be getting ignored).

    Any other ideas ?

    Thanks, Shah

    #197857 Reply

    Scott Anderson
    Participant

    Shah,

    Did you set either destDir or packageSubstitution? Look at all the doclet settings you’re using.

    –Scott
    MyEclipse Support

    #197858 Reply

    ssidi
    Member

    Thanks, specifying appropriate value in the destdir fixed it.
    Shah

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problem running XDoclet on an EJB project [Enhancement]

You must be logged in to post in the forum log in