facebook

[Closed]WebXmlSubTask "welcomefiles" attribute

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

    Andrea
    Member

    Eclipse 3.01
    MyEclipse 3.8.2 update 2
    JDK 1.4.1_07
    Windows XP SP2
    XDoclet 1.2.2

    BUILD FAILED: C:\eclipse-workspace\Modulistica\xdoclet-build.xml:59: Class xdoclet.modules.web.WebXmlSubTask doesn’t support the “welcomefiles” attribute.

    this is the error message i obtain when i specify the welcomeFiles property under the nested element deploymentdescriptor of webdoclet. in fact in the documentation (see http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/web/WebXmlSubTask.html
    is not present a welcomefiles property.

    #220341 Reply

    Riyad Kalla
    Member

    Please hang in there for the 3.8.3 release and try to see if this is fixed. We did some major refreshing of the XDoclet modules, autocomplete, wizards, etc.

    #220942 Reply

    Andrea
    Member

    bug is still present in 3.8.3

    #220968 Reply

    Scott Anderson
    Participant

    I’m not familiar with the ‘welcomefiles’ attribute on the web task. I checked the XDoclet help here (http://xdoclet.sourceforge.net/xdoclet/tags/web-tags.html) and no mention of it is made either. Can you point us to some documentation on XDoclet that explains what you expect?

    #220979 Reply

    Andrea
    Member

    oh, well, if you add a “Standard Web” doclet in xdoclet configuration, and then watch into the automatically added “deploymentdescriptor” subelement, you can see a “welcomeFiles” attribute. “deploymentdescriptor” documentation is at http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/web/WebXmlSubTask.html, but note that there is no mention about “welcomeFiles”, the property “welcomeFiles” doesn’t exixts! So, what i expect from MyEclipse is that this property doesn’t exists even on xdoclet editor!

    I hope it’s all clear now! 😉

    #220984 Reply

    Greg
    Member

    In the documentation for the Webxmlsubtask , the welcomeFIle is a nested sub element. So on your Standard Web configuration, right click the <deploymentdescriptor> subtask and choose Add. Choose the “WelcomeFile” item. Then you can set your welcome file using the file attrbute of this new nested sub-element. If you need multple welcome files just simple add multiple “WelcomeFile” elements under deploymentdescriptor. Be sure and delete the existing web.xml before creating a new one if all your changing is the xdoclet configuration.

    #221081 Reply

    Andrea
    Member

    ok, i know, but you mention a “welcomefile” sub element, not a “welcomeFiles” property (note the final s). i referred my bug report to the “welcomeFiles” property, that is unexisting.

    #221082 Reply

    Greg
    Member

    @pentavalle wrote:

    ok, i know, but you mention a “welcomefile” sub element, not a “welcomeFiles” property (note the final s). i referred my bug report to the “welcomeFiles” property, that is unexisting.

    Oh your right, I didn’t read your post closing enough.

    Here is the situation. The XDoclet configuration UI was updated in 3.8.3 to support every exposed attribute property of all of the XDoclet modules. In that process some of the nested-elements like WelcomeFiles on the <deploymentdescriptor> subdoclet are misrepresented as properties on the subdoclet themselves. There is no welcomeFiles property in the xdoclet module, but there is a welcomeFile nested-element. So if the user wants to define a welcomeFile, they need to add a nested-element called WelcomeFile using the XDoclet configuration UI. What isn’t obvious to users is that you can add nested sub-elements to subdoclets, using the context-menu and selecting Add. This is something that has been added to our PR system.

    So, the best way for doing advanced xdoclet configuration of xdoclet is to stay close to the xdoclet documentation. And once you find the appropriate subdoclets/nested-elements then use the MyEclipse XDoclet UI configuration to add the appropriate items. That will help in not setting properties that will cause an xdoclet error.

    But what I am most concerned with is that you were able to get your welcome files generated correctly. If my previous post didn’t help with that please let us know.

    #221087 Reply

    Andrea
    Member

    i found the welcomefile subelement “trick” some times ago, when i found the bug. but your previous help was appreciated too, maybe someone else will found it very useful doing a search on this forum.
    thanks for the fast support!

    #244025 Reply

    Selva
    Member

    >maybe someone else will found it very useful doing a search on this forum

    They did. :-). Helped me. Thanks.

    #262808 Reply

    Russ
    Member

    Well, it worked for me today! 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed]WebXmlSubTask "welcomefiles" attribute

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