cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@indexgeo.com.au>
Subject startup exception when XercesParser instead of JaxpParser
Date Wed, 19 Sep 2001 10:09:44 GMT
I followed the instructions in 2.1-dev webapp/cocoon.xconf
to activate the XercesParser instead of the default JaxpParser ...
1) add parser entry to cocoon.xconf
 <parser class="... parser.XercesParser"/>
2) add the system property to $TOMCAT_HOME/bin/tomcat.sh
 -Dorg.apache.cocoon.components.parser.Parser=
 org.apache.cocoon.components.parser.XercesParser

However, Tomcat fails on startup when adding the Cocoon context,
with the horrid error message listed below. Everything is fine when
using the default JaxpParser.

Are the instructions in 2.1-dev webapp/cocoon.xconf still current
and still relevant?

(I am actually starting to eradicate [Bug 3595] New: - Entity catalogs - 
XercesParser.java needs setEntityResolver
However, this happened before beginning any code modifications.)

Help please.
regards, David Crossley

----------------------
2001-09-19 05:14:59 - ContextManager: Adding context Ctx( /cocoon )
Exception in thread "main" java.lang.VerifyError: (class: 
org/apache/cocoon/components/parser/XercesParser, method: newDocument 
signature: 
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Document;) 
Incompatible argument to function
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:92)
        at 
org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultComponentHandler.java:98)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:302)
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:265)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:198)
        at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:727)
        at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:204)
        at 
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)        
at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at 
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)
        at 
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

----------------------
src/org/apache/cocoon/Cocoon.java line 265 ...
            p = (Parser)startupManager.lookup(Parser.ROLE);
----------------------



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


Mime
View raw message