|
|
|
[
Permlink
| « Hide
]
Eric Dalquist [05/Jul/07 01:54 PM]
web.xml prior to running deployPortletApp
web.xml after running deployPortletApp, note that the added servlet and servlet-mapping entries are in the incorrect locations in the file.
I've cleared up the trouble with element order, but there is still an issue with namespacing that exhibits the same symptoms.
The previous deployer always applied the same version (was it 2.3?). That version didn't use namespacing. The new version – the one required for the latest-and-greatest JSTL – does use namespacing. Add to that the fact that many of the web.xml documents I've seen from real portlet applications (esp. UNICON training) don't declare a version at all... they may only contain <web-app>. The goal of the new deployer, in this area, was not to change what the original portlet app provides, which might be:
In the case of the new version (i.e. with namespacing), when I use the Java API to add an element to the tree, if the element itself doesn't already (inherently) contain the same namespacing, it will pick up xmlns=""... which apparently 'clears' the namespacing of the outer elements. Containers still work with the non-validating web.xml so this is not critical to get fixed for GA.
Patched to cernunnos-1.0-M3.jar, which does not have this issue.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||