cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaldr...@csc.com
Subject Re: C2: j2se1.4 - SAXNotSupportedException on solaris
Date Thu, 08 Nov 2001 14:52:55 GMT
Thanks Robert,

I've now moved on to a completely new error, obviously related somehow, I
guess the new parser may be more picky about certain things than the
previous one. I don't think the problem lies with my xsl or xml, but maybe
it does. Any ideas, here it comes:

DEBUG   58410   [cocoon  ] (Thread-194): MRUMemoryStore getting object from memory. Key: jar:file:/WWW/tomca
t-uat/webapps/mih/WEB-INF/lib/cocoon.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.
xsl
DEBUG   58833   [cocoon  ] (Thread-194): ComponentFactory decommissioning instance of org.apache.cocoon.comp
onents.language.markup.sitemap.SitemapMarkupLanguage.
ERROR   58834   [cocoon  ] (Thread-194): Error compiling sitemap
org.xml.sax.SAXException: Stopping after fatal error: The string "--" is not permitted within
comments.
        at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1228)
        at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:626)
        at org.apache.xerces.framework.XMLDocumentScanner.scanComment(XMLDocumentScanner.java:1950)
        at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java
:1177)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        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(LogicsheetCodeG
enerator.java:134)
        at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLa
nguage.java:271)
        at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGene
ratorImpl.java:260)
        at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.ja
va:233)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
        at java.lang.Thread.run(Thread.java:539)
ERROR   58839   [cocoon  ] (Thread-186): Problem with servlet

Ouch!

Regards,

Anthony Aldridge
Lead Application developer

Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300





Robert Marcano <robmv@promca.com> on 08/11/2001 13:26:34

Please respond to cocoon-dev@xml.apache.org

To:   cocoon-dev@xml.apache.org
cc:
Subject:  Re: C2: j2se1.4 - SAXNotSupportedException on solaris


I think that the problems is the new version of the crimson JAXP parser
included in JSDK 1.4

read your cocoon.xconf file and force Xerces Parser

    <!-- ===================== General Components
=========================== -->
    <!-- Parser:
    The default parser used in the Apache Cocoon 2 system is
    org.apache.cocoon.components.parser.JaxpParser
    Apache Cocoon 2 system requires a JAXP 1.1 parser.
    If you have problems because your servlet environment uses its own
    parser not conforming to JAXP 1.1 try using the alternative
    XercesParser instead of the JaxpParser. To activate the XercesParser,
    move the line below starting with <parser ...> out of this comment
block.
    You also than have to add a system property to your JVM
    (probably on the startup of your servlet engine like this:

-Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser


  <parser class="org.apache.cocoon.components.parser.XercesParser"/>
  -->

aaldridg@csc.com wrote:

>Hi people,
>
>Just installed j2se1.4b3 and got the above exception. I'm using it to try
>to get around the problems with the awt running without a display
>environment (Xvfb doesn't seem to help saddly).
>
>The only class path changes were from the 1.4 environment which cocoon
>seems to put in before any specific cocoon classpaths - don't know if this
>is relevant.
>
>The full error goes like this:
>
>DEBUG   1011    [cocoon  ] (main): SAXParser:
jar:file:/WWW/j2se1.4/usr/j2se/jre/lib/rt.jar!/org/apa
>che/crimson/jaxp/SAXParserImpl.class
>ERROR   1013    [cocoon  ] (main): Could not configure Cocoon environment
>org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
>        at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>        at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
>        at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
>        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
>        at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)

>        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
>        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:309)
>        at org.apache.tomcat.core.Handler.init(Handler.java:215)
>        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:288)
>        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.j

>ava:130)
>        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:414)
>        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:374)
>        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
>        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
>DEBUG   1017    [cocoon  ] (main): ComponentFactory decommissioning
instance of org.apache.cocoon.co
>mponents.parser.JaxpParser.
>ERROR   1018    [cocoon  ] (main): Exception reloading
>org.apache.avalon.framework.configuration.ConfigurationException: Error
trying to load configuration
>s
>        at org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
>        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
>        at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)

>        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
>        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:309)
>        at org.apache.tomcat.core.Handler.init(Handler.java:215)
>        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:288)
>        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.j

>ava:130)
>        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:414)
>        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:374)
>        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
>        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
>Caused by: org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
>        at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>        at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
>        at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
>        ... 11 more
>org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
>        at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>        at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
>        at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
>        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
>        at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)

>        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
>        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:309)
>        at org.apache.tomcat.core.Handler.init(Handler.java:215)
>        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:288)
>        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)

>        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:414)
>        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:374)
>        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:197)
>        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
>
>Any ideas?
>
>
>Regards,
>
>Anthony Aldridge
>Lead Application developer
>
>Managed Intranet Hosting
>CSC
>JPMorganChase
>Personal GDP: 325-8338
>MIH Hotline: 876-1300
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>

--
Robert Marcano (office: robmv@promca.com, personal:
robert@marcanoonline.com)
System Architect
IBM OS/2, VisualAge C++, Java, Smalltalk certified

aol/netscape screen id: robmv
jabber id: robmv@jabber.org
msn messenger id: robert@marcanoonline.com
icq id: 101913663




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message