You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Joost Schouten (mailing lists)" <jo...@jsportal.com> on 2009/01/06 07:08:50 UTC

Re: [T5.1] Doctype disappearing when deployed on production server

Ok, after a few weeks of ignoring the problem I git back to it and
managed to fix it. It turned out to be completely Tapestry unrelated.
Resin contributes its own XMLReader which seems to completely ignore
DOCTYPE's. Making Resin use xerces in stead by adding this system
property to the resin conf fixed it.

<system-property org.xml.sax.driver="org.apache.xerces.parsers.SAXParser"/>

That only took me about 2 months ;-)
Cheers,
Joost

On Mon, Dec 15, 2008 at 12:18 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
> This is an odd one; I'm not aware of any changes between 5.0 and 5.1
> that could account for this.
>
> On Sun, Dec 14, 2008 at 6:30 AM, Joost Schouten (mailing lists)
> <jo...@jsportal.com> wrote:
>> Hi,
>>
>> I'm still battling this problem and am absolutely lost for reasons why
>> this is happening. If someone is out there who give me some pointers
>> why the DOCTYPE might be dropped on resin and not on jetty, it would
>> be highly appreciated.
>>
>> I setup a completely isolated webapp to test this single problem:
>> http://www.jsportal.com/doctest/start
>>
>> The source Start.tml:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3c.org/TR/html4/loose.dtd">
>> <html>
>> <head>
>> <title>test page</title>
>> </head>
>> <body>test page</body>
>> </html>
>>
>> the resulting html:
>> <html>
>> <head>
>> <link href="assets/5.1.0.0-JS-SNAPSHOT/tapestry/default.css"
>> rel="stylesheet" type="text/css"></link>
>> <title>test page</title>
>> </head>
>> <body>test page</body>
>> </html>
>>
>> Could it be a character encoding problem? If so, which piece of code
>> does any validation that might cut off the DOCTYPE?
>>
>> Thanks very much,
>> Joost
>>
>> On Wed, Dec 10, 2008 at 6:22 PM, Joost Schouten (mailing lists)
>> <jo...@jsportal.com> wrote:
>>> Hi,
>>>
>>> I've got the strange problem of my DOCTYPE disappearing when I depoly
>>> my war (using T5.1.0.0-SNAPSHOT) on a Fedora Core box running resin.
>>> Locally all is fine on OSX and jetty. They both run with
>>> tapestry.production-mode=false. The component defining the doctype
>>> (HtmlHeadBody.tml) is as follows (simplified):
>>>
>>> <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>>> <head>
>>>    <title>${title}</title>
>>> </head>
>>> <body>
>>>    <t:body/>
>>> </body>
>>> </html>
>>>
>>> Is this a tapestry setting I am missing or is there another problem
>>> playing here? Any clues would be highly appreciated.
>>>
>>> Regards and happy coding,
>>> Joost
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org