cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Marcano <ro...@promca.com>
Subject Re: C2: j2se1.4 - SAXNotSupportedException on solaris
Date Thu, 08 Nov 2001 13:26:34 GMT
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


Mime
View raw message