[
https://issues.apache.org/jira/browse/PLUTO-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477195
]
Elliot Metsger commented on PLUTO-312:
--------------------------------------
yes, in AbstractCastorDescriptorService 78-81
Marshaller marshaller =
new Marshaller(new DefaultHandler());
//serializer.asDocumentHandler());
marshaller.setMapping(getCastorMapping());
marshaller.marshal(object);
You have to call marshaller.setDoctype with the dtd and public id; right now
that call is missing. So when the web.xml is rewritten it is missing the
doctype.
Servlet 2.3 uses Doctypes. Servlet 2.4 uses XSD's. We can't blindly add the
DOCTYPE without knowing if we are assembing a 2.3 or a 2.4 servlet descriptor.
> web.xml for Testsuite web app missing DTD declarataion
> ------------------------------------------------------
>
> Key: PLUTO-312
> URL: https://issues.apache.org/jira/browse/PLUTO-312
> Project: Pluto
> Issue Type: Bug
> Components: portlets-testsuite
> Affects Versions: 1.1.0-beta2
> Environment: Windows XP, 2GB RAM, Geronimo 2.0M2, both Pluto 1.1.0
> beta-2 and Pluto 1.1.0 (RC3, unreleased)
> Reporter: Kito D. Mann
> Assigned To: David DeWolf
> Priority: Minor
> Fix For: 1.1.1
>
>
> The web.xml for the testsuite app is missing the DTD declaration at the top:
> <!DOCTYPE web-app PUBLIC
> "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
> Tomcat doesn't care, but Geronimo (and other servers, I suspect) won't deploy
> it this way :-).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.