- This topic has 10 replies, 6 voices, and was last updated 18 years ago by Russ.
-
AuthorPosts
-
AndreaMemberEclipse 3.01
MyEclipse 3.8.2 update 2
JDK 1.4.1_07
Windows XP SP2
XDoclet 1.2.2BUILD 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.
Riyad KallaMemberPlease 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.
AndreaMemberbug is still present in 3.8.3
Scott AndersonParticipantI’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?
AndreaMemberoh, 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! 😉
GregMemberIn 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.
AndreaMemberok, 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.
GregMember@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.
AndreaMemberi 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!
SelvaMember>maybe someone else will found it very useful doing a search on this forum
They did. :-). Helped me. Thanks.
RussMemberWell, it worked for me today! 🙂
-
AuthorPosts