cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Gruber <Gabriel.Gru...@workflow.at>
Subject Problem with new JX Template Generator
Date Fri, 12 Jan 2007 17:39:23 GMT
Hello Cocoon Folks!

I just upgraded to 2.1.10 and I have a problem with the new JX Template 
generator! I compiled the block as usual with the build system and the 
jetty dist runs fine. But my app doesn't run when the corresponding 
cocoon.xconf settings from the jx template generator are present:

  <expression-factory/>
  <expression-compilers>
    <component-instance 
class="org.apache.cocoon.components.expression.jxpath.JXPathCompiler" 
name="default"/>
    <component-instance 
class="org.apache.cocoon.components.expression.jexl.JexlCompiler" 
name="jexl"/>
    <component-instance 
class="org.apache.cocoon.components.expression.jxpath.JXPathCompiler" 
name="jxpath"/>
    <component-instance 
class="org.apache.cocoon.components.expression.javascript.JavaScriptCompiler" 
name="js"/>
  </expression-compilers>
  <string-template-parsers>
    <component-instance 
class="org.apache.cocoon.template.expression.JXTGStringTemplateParser" 
name="jxtg"/>
    <component-instance 
class="org.apache.cocoon.template.expression.DefaultStringTemplateParser" 
name="default"/>
  </string-template-parsers>
    <component 
class="org.apache.cocoon.template.script.DefaultScriptManager" 
role="org.apache.cocoon.template.script.ScriptManager"/>
    <component 
class="org.apache.cocoon.template.script.DefaultInstructionFactory" 
role="org.apache.cocoon.template.script.InstructionFactory"/>
    <component 
class="org.apache.cocoon.template.expression.JXTGStringTemplateParser" 
role="org.apache.cocoon.template.expression.StringTemplateParser"/>

I get an exception at startup, as the component for key '
org.apache.cocoon.template.expression.StringTemplateParserSelector' cannot 
be found. While I could not find a class with that name neither in the 
project nor in the internet, I found a file called expression.roles at 
org/apache/cocoon/template/expression which has an entry with that key and 
points to a default implemenation class at path '
org.apache.cocoon.core.container.DefaultServiceSelector'. 

But at that classpath not classfile can be found either....    I really 
wonder how the jetty distribution (normal build of cocoon) can run.... 
??????

Any Ideas, thoughts, etc. ???
many thanx in advance

here is the exception I get in my own application.....

Webdesk starting...
Reloading from: jndi:/localhost/webdesk3_cocoon/WEB-INF/cocoon.xconf - 
2007-01-12 18:10:33,337 access
Cannot find CatalogManager.properties
ThreadPool named "default" created with maximum 
queue-size=2147483647,max-pool-size=5,min-pool-size=5,priority=5,isDaemon=false,keep-alive-time-ms=60000,block-policy="ABORT",shutdown-wait-time-ms=-1

- 2007-01-12 18:10:42,947 core.runnable
ThreadPool named "daemon" created with no 
queue,max-pool-size=2147483647,min-pool-size=1,priority=5,isDaemon=true,keep-alive-time-ms=60000,block-policy=ABORT,shutdown-wait-time-ms=-1

- 2007-01-12 18:10:43,009 core.runnable
The session-fw block is deprecated. Please use the provided alternatives 
instead. - 2007-01-12 18:10:44,197 deprecation
EHCache cache "cocoon-ehcache-1" initialized - 2007-01-12 18:10:44,353 
core.store
Caught an exception trying to initialize the component handler. - 
2007-01-12 18:10:45,337 core.manager
org.apache.avalon.framework.service.ServiceException: Could not find 
component (key 
[org.apache.cocoon.template.expression.StringTemplateParserSelector]) 
(Key='org.apache.cocoon.template.expression.StringTemplateParserSelector')
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(
WrapperServiceManager.java:80)
        at org.apache.cocoon.template.script.DefaultScriptManager.service(
DefaultScriptManager.java:64)
        at org.apache.avalon.framework.container.ContainerUtil.service(
ContainerUtil.java:143)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(
DefaultComponentFactory.java:271)
        at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:108)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(
ExcaliburComponentManager.java:524)
        at org.apache.cocoon.components.CocoonComponentManager.initialize(
CocoonComponentManager.java:583)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(
ContainerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(
ContainerUtil.java:244)
        at org.apache.cocoon.servlet.CocoonServlet.createCocoon(
CocoonServlet.java:1429)
        at org.apache.cocoon.servlet.CocoonServlet.init(
CocoonServlet.java:499)
        at at.workflow.webdesk.Webdesk.init(Webdesk.java:79)
        at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1029)
        at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:862)
        at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4013)
        at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4357)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(
StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(
StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployDirectories(
HostConfig.java:701)
        at org.apache.catalina.startup.HostConfig.deployApps(
HostConfig.java:432)
        at org.apache.catalina.startup.HostConfig.start(
HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1091)
        at org.apache.catalina.core.StandardHost.start(
StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1083)
        at org.apache.catalina.core.StandardEngine.start(
StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(
StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(
StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: org.apache.avalon.framework.component.ComponentException: Could 
not find component (key 
[org.apache.cocoon.template.expression.StringTemplateParserSelector])
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(
ExcaliburComponentManager.java:265)
        at org.apache.cocoon.components.CocoonComponentManager.lookup(
CocoonComponentManager.java:354)
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(
WrapperServiceManager.java:68)
        ... 39 more
Exception reloading - 2007-01-12 18:15:46,327 access
org.apache.avalon.framework.service.ServiceException: Could not find 
component (key 
[org.apache.cocoon.template.expression.StringTemplateParserSelector]) 
(Key='org.apache.cocoon.template.expression.StringTemplateParserSelector')
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(
WrapperServiceManager.java:80)
        at org.apache.cocoon.template.script.DefaultScriptManager.service(
DefaultScriptManager.java:64)
        at org.apache.avalon.framework.container.ContainerUtil.service(
ContainerUtil.java:143)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(
DefaultComponentFactory.java:271)
        at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:108)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(
ExcaliburComponentManager.java:524)
        at org.apache.cocoon.components.CocoonComponentManager.initialize(
CocoonComponentManager.java:583)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(
ContainerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(
ContainerUtil.java:244)
        at org.apache.cocoon.servlet.CocoonServlet.createCocoon(
CocoonServlet.java:1429)
        at org.apache.cocoon.servlet.CocoonServlet.init(
CocoonServlet.java:499)
        at at.workflow.webdesk.Webdesk.init(Webdesk.java:79)
        at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1029)
        at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:862)
        at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4013)
        at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4357)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(
StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(
StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployDirectories(
HostConfig.java:701)
        at org.apache.catalina.startup.HostConfig.deployApps(
HostConfig.java:432)
        at org.apache.catalina.startup.HostConfig.start(
HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1091)
        at org.apache.catalina.core.StandardHost.start(
StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1083)
        at org.apache.catalina.core.StandardEngine.start(
StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(
StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(
StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: org.apache.avalon.framework.component.ComponentException: Could 
not find component (key 
[org.apache.cocoon.template.expression.StringTemplateParserSelector])
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(
ExcaliburComponentManager.java:265)
        at org.apache.cocoon.components.CocoonComponentManager.lookup(
CocoonComponentManager.java:354)
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(
WrapperServiceManager.java:68)
        ... 39 more
12.01.2007 18:15:46 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
12.01.2007 18:15:47 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
12.01.2007 18:15:47 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 
config=D:\j2ee\jakarta-tomcat-5.0.28\conf\jk2.properties
12.01.2007 18:15:47 org.apache.catalina.startup.Catalina start
INFO: Server startup in 556823 ms


greets,
gabriel

______________________
Mag. Gabriel Gruber
Senior Consultant
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Workflow EDV GmbH, Dannebergplatz 6/23, A-1030 Wien
http://www.workflow.at
Mime
View raw message