I figured out what was causing this problem.
In my classpath I have a SAXParser that I use (Piccolo) that doesn't
handle namespaces well.
To fix it I forced Tapesty (which loads the parser in
TemplateParserImpl.java) to use the xerces SAXParser by including the
system property:
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
Joel Halbert wrote:
Hi,
Just to clarify on this problem:
I am using version 5.0.15
If I remove the following element: <t:pagelink
t:page="Index">refresh</t:pagelink> the page loads fine.
I'd really appreciate any pointers! Also - I take it the problem is
not related to https://issues.apache.org/jira/browse/TAP5-125 ?
Thx
Joel
Joel Halbert wrote:
Hi,
I'm trying to set up my first page in Tapestry but I don't seem to be
able to shake this exception:
java.lang.RuntimeException: Namespace prefix for URI 'xmlns' is not
defined.
at
org.apache.tapestry5.dom.Element.toNamespacePrefix(Element.java:502)
I'd be grateful for any suggestions.
My page is very simple (the default tutorial Index page)
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>app Start Page</title>
</head>
<body>
<h1>app Start Page</h1>
<p> This is the start page for this application, a good place
to start your modifications.
Just to prove this is live: </p>
<p> The current time is: ${currentTime}. </p>
<p>
[<t:pagelink t:page="Index">refresh</t:pagelink>]
</p>
</body>
</html>
Thx,
Joel
--
SU3 Analytics Ltd
61b Oxford Gardens
W10 5UJ
London
Tel: +44 20 8960 2634
Mob: +44 75 2501 0825
www.su3analytics.com
SU3 Analytics Ltd is a company registered in England and Wales under company
number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ,
United Kingdom.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]