On Fri, 2005-01-14 at 21:27, [EMAIL PROTECTED] wrote:
> Hello,
> 
>    I have a problem XDoclet does not generate me DOCTYPE into the
> ejb-jar.xml file.
> 
>    Here is my ant task that I use:
>    ===============================
> 
>    <!-- Generate ejb classes -->
>    <ejbdoclet ejbspec="2.1" ejbClassNameSuffix="Impl"
...
>    Here is generated ejb-jar.xml file:
>    ===================================
> 
>    <?xml version="1.0" encoding="UTF-8"?>
>    ### HERE IS MISSING <!DOCTYPE ejb-jar PUBLIC ... ###
>    <ejb-jar  xmlns="http://java.sun.com/xml/ns/j2ee"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; version="2.1">

There's no DOCTYPE missing, as that's only used if there's a DTD.  From
EJB 2.1/J2EE 1.4, Sun have switched to using an XML Schema to validate
the deployment descriptors (hence all that xmlns namespace stuff that's
on the ejb-jar element) instead of a DTD, and so there's no DOCTYPE
needed.


Andrew.
-- 



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to