Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 60680 invoked from network); 20 May 2005 13:58:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2005 13:58:19 -0000 Received: (qmail 356 invoked by uid 500); 20 May 2005 13:58:06 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 338 invoked by uid 500); 20 May 2005 13:58:05 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 321 invoked by uid 99); 20 May 2005 13:58:05 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mx-2.csir.co.za (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 20 May 2005 06:58:03 -0700 Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.12.11/8.12.11) with ESMTP id j4KD1v9X003021 for ; Fri, 20 May 2005 15:01:57 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Fri, 20 May 2005 15:01:57 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Fri, 20 May 2005 15:01:39 +0200 From: "Derek Hohls" To: Subject: Re: Installation problem - "quartz scheduler" under Tomcat and Jetty Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-CSIR-MailScanner-Information: Please contact sys-admin at csir dot co dot za for more information X-CSIR-MailScanner: Found to be clean X-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Martin Thanks - for now I have reverted to ver 2.1.5.... but I do think Cocoon should work "out of the box" with Tomcat on a Windows=20 machine - surely that is a common setup?! Derek (and this page is very much out-of-date: http://cocoon.apache.org/2.1/installing/ wrt Tomcat) >>> av@alessandro.vincelli.name 2005/05/20 02:20:03 PM >>> I had the same problem. can you Read this This is only the effect of a previous error. Cocoon has the following web.xml configuration: 1 This means that Tomcat will load Cocoon at Tomcat start (as opposed to = first access of CocoonServlet). If CocoonServlet throws an exception during init, Tomcat will consider the servlet as uninitialized and will try to re-init on first access. Ie one "half-init + break" + another "half-init + break", which gives you troubles with anything loaded statically in the JVM during the part of the init that actually works (eg configuring the Cron block and Quartz scheduler). You should search for the previous error in the Tomcat and/or Cocoon logs and try to get help on the Cocoon user's list (don't focus on the "cannot create a quartz scheduler", during testing it might also be easier to set load-on-startup=3D0 in Cocoon's web.xml). You can use Tomcat's Manager application [1] to check the init-status and if Tomcat considers the servlet to be loaded. HTH, Martin Derek Hohls ha scritto: > I am having a problem trying to get Cocoon to run > under Tomcat and Jetty on a Windows XP machine. =20 >=20 > Cocoon : 2.1.7 > Tomcat: 4.1.31 >=20 > Cocoon worked fine when run from the command line=20 > using Jetty - but when I copied the build application=20 > (just using the standard build) over to Tomcat and > try and start up, I got: >=20 > Initialization Problem > Message: Scheduler with name 'Cocoon' already exists. > Description: org.apache.avalon.framework.configuration.ConfigurationExcep= tion: cannot create a quartz scheduler > Sender: org.apache.cocoon.servlet.CocoonServlet > Source: Cocoon Servlet > cause > org.quartz.SchedulerException: Scheduler with name 'Cocoon' = already exists. > request-uri > /cocoon/ >=20 > I then altered the local.build.properties file to comment > out the "cron" block - as per the suggestion in the thread: > http://marc.theaimsgroup.com/?l=3Dxml-cocoon-users&m=3D110539967327519&w= =3D2=20 >=20 > The problem now is that Cocoon does not run under Jetty OR Tomcat: >=20 >=20 > In Jetty: >=20 > Initialization Problem > Message: Could not find component (key [org.apache.cocoon.components.cron= .JobScheduler]) > Description: org.apache.avalon.framework.configuration.ConfigurationExcep= tion: Could not load class org.apache.cocoon.portal.coplets.basket.AddToBas= ketAspect for component named 'basket' at file:/D:/cocoon-2.1.7/b= uild/webapp/WEB-INF/cocoon.xconf:1800:94 > Sender: org.apache.cocoon.servlet.CocoonServlet > Source: Cocoon Servlet >=20 > cause > org.apache.avalon.framework.component.ComponentException: Could not find = component (key [org.apache.cocoon.components.cron.JobScheduler]) >=20 > request-uri > / >=20 >=20 > Also, under Tomcat: >=20 > HTTP Status 500 -=20 > type Exception report >=20 > message=20 > description The server encountered an internal error () that prevented = it from fulfilling this request. >=20 > exception=20 > javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw = exception > at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWra= pper.java:916) > at org.apache.catalina.core.StandardWrapper.allocate(StandardWrappe= r.java:621) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra= pperValve.java:163) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardContextValve.invoke(StandardCon= textValve.java:144) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardContext.invoke(StandardContext.= java:2358) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostVa= lve.java:133) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDisp= atcherValve.java:118) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:594) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportVa= lve.java:116) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:594) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngi= neValve.java:127) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.ja= va:152) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor= .java:799) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.= processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint= .java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Th= readPool.java:683) > at java.lang.Thread.run(Unknown Source) >=20 >=20 > root cause=20 >=20 > java.lang.NoSuchMethodError: org.apache.xerces.xni.grammars.XSGrammar.toX= SModel()Lorg/apache/xerces/xs/XSModel; > at com.hp.hpl.jena.datatypes.xsd.XSDDatatype.loadUserDefined(XSDDat= atype.java:341) > at com.hp.hpl.jena.datatypes.xsd.XSDDatatype.loadUserDefined(XSDDat= atype.java:305) > at com.hp.hpl.deli.VocabularyConfig.parseConfigFile(VocabularyConfi= g.java:161) > at com.hp.hpl.deli.VocabularyConfig.parseConfigFile(VocabularyConfi= g.java:175) > at com.hp.hpl.deli.VocabularyConfig.(VocabularyConfig.java:56= ) > at com.hp.hpl.deli.Vocabulary.(Vocabulary.java:42) > at com.hp.hpl.deli.Workspace$1CreateWorkspace.(Workspace.java= :176) > at com.hp.hpl.deli.Workspace.configure(Workspace.java:319) > at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.j= ava:117) > at org.apache.avalon.framework.container.ContainerUtil.initialize(C= ontainerUtil.java:283) > at org.apache.avalon.excalibur.component.DefaultComponentFactory.ne= wInstance(DefaultComponentFactory.java:277) > at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler= .initialize(ThreadSafeComponentHandler.java:108) > at org.apache.avalon.excalibur.component.ExcaliburComponentManager.= initialize(ExcaliburComponentManager.java:522) > at org.apache.cocoon.components.CocoonComponentManager.initialize(C= ocoonComponentManager.java:561) > at org.apache.avalon.framework.container.ContainerUtil.initialize(C= ontainerUtil.java:283) > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282) > at org.apache.avalon.framework.container.ContainerUtil.initialize(C= ontainerUtil.java:283) > at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServl= et.java:1391) > at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:= 481) > at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWra= pper.java:888) > at org.apache.catalina.core.StandardWrapper.allocate(StandardWrappe= r.java:621) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra= pperValve.java:163) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardContextValve.invoke(StandardCon= textValve.java:144) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardContext.invoke(StandardContext.= java:2358) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostVa= lve.java:133) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDisp= atcherValve.java:118) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:594) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportVa= lve.java:116) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:594) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngi= neValve.java:127) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveC= ontext.invokeNext(StandardPipeline.java:596) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :948) > at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.ja= va:152) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor= .java:799) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.= processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint= .java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Th= readPool.java:683) > at java.lang.Thread.run(Unknown Source) >=20 >=20 >=20 >=20 > Any help appreciated. >=20 > Derek. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org=20 > For additional commands, e-mail: users-help@cocoon.apache.org=20 >=20 >=20 --=20 ------------------------------- Alessandro Vincelli E-mail: av@alessandro.vincelli.name=20 tel: +39 339 8695546 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org=20 For additional commands, e-mail: users-help@cocoon.apache.org=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org