> I'm a newbie to xdoclet, and trying to get my head around it by trying
out
> the samples included with the distribution. I've gotten it to build
the
> sources, etc., but it gives this error during webdoclet:
> 
> javadoc: In doclet class xdoclet.DocletTask$DocletMain,  method start
has
> thrown an exception java.lang.reflect.InvocationTargetException
> Generated file
> [file:C:/Dev/projects/xdoclet-samples/build/web/WEB-INF/web.xml:line
68]
> Message=[Element "welcome-file-list" requires additional elements.] is
not
> valid according to its DTD. This might be due to some missing @tags in
> your
> source.
> 
> I took a look at the web.xml generated, and it has
> "<welcome-file-list></welcome-file-list>" with nothing in there. I'm
not
> sure where to make a change to get this to be set to something
different.

I don't think 1.0.1 had such a problem, but anyway the welcomefiles
problem is fixed in cvs. 1.1 will be out next week.

> In general, where do you set parameters that are set for the entire
> deployment, rather than just on a per-component basis? Things like
> welcome-file-list, but also if I wanted to have a central list of
String
> values to plug into environment entries for multiple EJBs.

Use merge files. Welcomefiles is a nested element of webdoclet, I'll add
a merge point around it too, for consistency. You can define
mime-mapping elements (which is really not dependent on any source) in
mime-mappings.xml file and put it in where mergeDir param of doclet task
points to. web-env-entries.xml/web-ejbrefs.xml/etc exists too, for those
global or external definitions.

> It would also be a good idea to get the samples into a fully working
> state,
> i.e. put all of the required .jar files in the lib directory,
including
> the
> Struts library, which I had to go and download.

Yup, 1.1 will be like what you said. Samples of 1.0.1 should also build
fine AFAIK, and I'm sure about current cvs source.

Ara.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to