Re: XDocled doesn't generate me DOCTYPE (for ejbspec="2.1")
Manu <[email protected]> Mon, 27 Nov 2006 22:24:35 +0100
| Newsgroups | gmane.comp.java.xdoclet.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have the same "problem". As of ejbspec 2.1, the ejb-jar.xml is generated without DOCTYPE directive. However, when I try to precompile my ejb jar file with weblogic 8.1 appc tool, it tells me that the DOCTYPE is missing. Is it a Weblogic bug ? Is there a workaround ? Thanks in advance. Manu 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" <http://java.sun.com/xml/ns/j2ee%22>; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance%22>; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" <http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd%22>; 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. -- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user