cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helena Ginzburg <hel...@earthlink.co.il>
Subject Error Installing Cocoon latest war using in Weblogic 6.1 sp2
Date Thu, 06 Jun 2002 13:50:58 GMT
Hi All,

I have deployed latest cocoon application on bea WebLogic6.1 SP2.

In order to deploy this, I have done the following:

1.The cocoon Libraries consists of '.' in the names. Eliminated them.
2.Removed all Manifest.mf files from WEB-INF/lib jars.
3.Changed cocoon.xconf file for using XSLTProcessorImpl.

 <xslt-processor
class="org.apache.cocoon.components.xslt.XSLTProcessorImpl">
   <parameter name="use-store" value="true"/>
   <!--parameter name="incremental-processing" value="true"/-->
   <parameter name="transformer-factory"
value="org.apache.xalan.processor.TransformerFactoryImpl"/>
 </xslt-processor>

The first cocoon welcome page is displayed properly.
Now, the problem I am facing is, bea is not loading sub sitemaps.

I am getting the following error on the browser : 

type fatal

message Lookup of transformer for role 'xslt' failed.

description org.apache.cocoon.ProcessingException: Lookup of transformer for
role 'xslt' failed.:
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: xslt

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Lookup of transformer for role 'xslt'
failed.: org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint:
xslt
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.addTransfor
mer(AbstractProcessingPipeline.java:279)
	at
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.addTran
sformer(CachingProcessingPipeline.java:172)
	at
org.apache.cocoon.components.treeprocessor.sitemap.TransformNode.invoke(Tran
sformNode.java:99)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:158)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:132)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:158)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:588)

I am getting the following error on the sitemap.log file :

java.lang.ClassCastException:
org.apache.cocoon.components.xslt.XSLTProcessorImpl
	at
org.apache.cocoon.transformation.TraxTransformer.configure(TraxTransformer.j
ava:254)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:185)
	at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
mitingPool.java:629)
	at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
ol.java:359)
	at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl
eComponentHandler.java:186)
	at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.
java:139)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:277)
	at
org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon
entSelector.java:299)
	at
org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon
entSelector.java:303)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.addTransfor
mer(AbstractProcessingPipeline.java:276)
	at
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.addTran
sformer(CachingProcessingPipeline.java:172)
	at
org.apache.cocoon.components.treeprocessor.sitemap.TransformNode.invoke(Tran
sformNode.java:99)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:158)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:132)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:158)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:588)
	
I debugged it and found that in TraxTransformer.java :254

this.xsltProcessor = (XSLTProcessor)
this.manager.lookup(XSLTProcessor.ROLE);

this.manager.lookup(XSLTProcessor.ROLE) return XSLTProcessorImpl but
this.xsltProcessor is org.apache.avalon.excalibur.xml.xslt.XSLTProcessor
class

We are catching here ClassCastException.

Can you please help me solve this problem? Thanks.

Helena.


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


Mime
View raw message