cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <dho...@csir.co.za>
Subject Re: Installation problem - "quartz scheduler" under Tomcat and Jetty
Date Fri, 20 May 2005 13:01:39 GMT
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 
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:
 <load-on-startup>1</load-on-startup>

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=0 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.  
> 
> Cocoon : 2.1.7
> Tomcat: 4.1.31
> 
> Cocoon worked fine when run from the command line 
> using Jetty - but when I copied the build application 
> (just using the standard build) over to Tomcat and
> try and start up, I got:
> 
> Initialization Problem
> Message: Scheduler with name &apos;Cocoon&apos; already exists.
> Description: org.apache.avalon.framework.configuration.ConfigurationException: cannot
create a quartz scheduler
> Sender: org.apache.cocoon.servlet.CocoonServlet
> Source: Cocoon Servlet
> cause
> org.quartz.SchedulerException: Scheduler with name &apos;Cocoon&apos; already
exists.
> request-uri
> /cocoon/
> 
> 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=xml-cocoon-users&m=110539967327519&w=2 
> 
> The problem now is that Cocoon does not run under Jetty OR Tomcat:
> 
> 
> In Jetty:
> 
> Initialization Problem
> Message: Could not find component (key [org.apache.cocoon.components.cron.JobScheduler])
> Description: org.apache.avalon.framework.configuration.ConfigurationException: Could
not load class org.apache.cocoon.portal.coplets.basket.AddToBasketAspect for component named
&apos;basket&apos; at file:/D:/cocoon-2.1.7/build/webapp/WEB-INF/cocoon.xconf:1800:94
> Sender: org.apache.cocoon.servlet.CocoonServlet
> Source: Cocoon Servlet
> 
> cause
> org.apache.avalon.framework.component.ComponentException: Could not find component (key
[org.apache.cocoon.components.cron.JobScheduler])
> 
> request-uri
> /
> 
> 
> Also, under Tomcat:
> 
> HTTP Status 500 - 
> type Exception report
> 
> message 
> description The server encountered an internal error () that prevented it from fulfilling
this request.
> 
> exception 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw exception
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
> 	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.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(StandardHostValve.java:133)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java: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(ThreadPool.java:683)
> 	at java.lang.Thread.run(Unknown Source)
> 
> 
> root cause 
> 
> java.lang.NoSuchMethodError: org.apache.xerces.xni.grammars.XSGrammar.toXSModel()Lorg/apache/xerces/xs/XSModel;
> 	at com.hp.hpl.jena.datatypes.xsd.XSDDatatype.loadUserDefined(XSDDatatype.java:341)
> 	at com.hp.hpl.jena.datatypes.xsd.XSDDatatype.loadUserDefined(XSDDatatype.java:305)
> 	at com.hp.hpl.deli.VocabularyConfig.parseConfigFile(VocabularyConfig.java:161)
> 	at com.hp.hpl.deli.VocabularyConfig.parseConfigFile(VocabularyConfig.java:175)
> 	at com.hp.hpl.deli.VocabularyConfig.<init>(VocabularyConfig.java:56)
> 	at com.hp.hpl.deli.Vocabulary.<init>(Vocabulary.java:42)
> 	at com.hp.hpl.deli.Workspace$1CreateWorkspace.<init>(Workspace.java:176)
> 	at com.hp.hpl.deli.Workspace.configure(Workspace.java:319)
> 	at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:117)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 	at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(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(CocoonComponentManager.java:561)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1391)
> 	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
> 	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.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(StandardHostValve.java:133)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java: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(ThreadPool.java:683)
> 	at java.lang.Thread.run(Unknown Source)
> 
> 
> 
> 
> Any help appreciated.
> 
> Derek.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> For additional commands, e-mail: users-help@cocoon.apache.org 
> 
> 

-- 
-------------------------------
Alessandro Vincelli
E-mail: av@alessandro.vincelli.name 
tel: +39 339 8695546


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


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


Mime
View raw message