And your sure you haven't typed any stray upsilon characters? ;) υ = υ = u
Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8?
HTH, Geoff
At 04:03 AM 6/5/2003, you wrote:
Howdy Guys
I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7.
I've installed the WAR file and it runs fine... my final problem appears to be a cocoon
problem.
I am able to start up the application server fine... and no errors are logged. However, when
i invoke the servlet... i get the following problems:
---------------------------- Cocoon 2 - Internal server error
type fatal
message Illegal character at end of document, u.
description org.xml.sax.SAXParseException: Illegal character at end of document, u.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173)
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536)
request-uri
/cocoon/
path-info -------------------------------
Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log:
ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl
et: Problem with Cocoon servlet
org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
generateResource(ProgramGeneratorImpl.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
createResource(ProgramGeneratorImpl.java:353)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
In the sitemap.log i get:
ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E
rror compiling sitemap
org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
generateResource(ProgramGeneratorImpl.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
createResource(ProgramGeneratorImpl.java:353)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
The end of the sitemap is this: <map:handle-errors> <map:transform src="context://stylesheets/system/error2html.xsl"/> <map:serialize status-code="500"/> </map:handle-errors>
</map:pipeline> </map:pipelines>
</map:sitemap> <!-- end of file -->
What am I missing??
Cheers, Jason
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]