Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 87801 invoked by uid 500); 19 Sep 2001 12:11:25 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 87790 invoked from network); 19 Sep 2001 12:11:25 -0000 Message-ID: <20010919121125.73613.qmail@web12803.mail.yahoo.com> Date: Wed, 19 Sep 2001 05:11:25 -0700 (PDT) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: Re: startup exception when XercesParser instead of JaxpParser To: cocoon-dev@xml.apache.org, crossley@indexgeo.com.au In-Reply-To: <01091920094504.05565@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N David, Check if you have any other Xerces JAR file *ANYWHERE* in your tomcat directory hierarchy. replace it with the xerces in xml-cocoon2\lib directory and let us know. Also the log file will most likely show the location from where xerces jar was picked up so check that too. Thanks, dims --- David Crossley wrote: > 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 > > 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 > ===== Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org