You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by philguillard <ph...@gmail.com> on 2006/03/02 16:53:37 UTC

Trouble loading XSLTC component

Hi,

After a cocoon restart, on the first request on any sitemap i get this
Internal Server Error: Could not find component (key 
[org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc])
On the second click it is ok.

What's wrong there? I don't have any idea!
Below the details.

Regards,

Phil


In cocoon.xconf (should be exactly 2.1.7 rls):
_____________________________________________
   <xslt-processor logger="core.xslt-processor">
      <parameter name="use-store" value="true"/>
      <parameter name="incremental-processing" value="false"/>
   </xslt-processor>
   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
logger="core.xslt-processor" 
role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
      <parameter name="use-store" value="true"/>
      <parameter name="transformer-factory" 
value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
   </component>
   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
logger="core.xslt-processor" 
role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
      <parameter name="use-store" value="true"/>
      <parameter name="incremental-processing" value="false"/>
      <parameter name="transformer-factory" 
value="org.apache.xalan.processor.TransformerFactoryImpl"/>
   </component>

In the main sitemap :
______________________
   <map:transformers default="xsltc">
     <map:transformer logger="sitemap.transformer.xslt" name="xslt" 
pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
       <use-request-parameters>false</use-request-parameters>
       <use-session-parameters>false</use-session-parameters>
       <use-cookie-parameters>false</use-cookie-parameters>
       <xslt-processor-role>xalan</xslt-processor-role>
       <check-includes>true</check-includes>
     </map:transformer>
     <map:transformer logger="sitemap.transformer.xalan" name="xalan" 
pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
       <use-request-parameters>false</use-request-parameters>
       <use-session-parameters>false</use-session-parameters>
       <use-cookie-parameters>false</use-cookie-parameters>
       <xslt-processor-role>xalan</xslt-processor-role>
       <check-includes>true</check-includes>
     </map:transformer>

In Sub-sitemaps :
_____________

They all have the same declaration :
<map:components><map:transformers default="xsltc">.....



Regards,

Phil

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


Re: Trouble loading XSLTC componen

Posted by philguillard <ph...@gmail.com>.
Thanks Antonio,

Hum...It seems that trouble disappeared with time (and changes..), i 
didn't have the opportunity to inestigate!

Phil



Antonio Gallardo wrote:
> Hi,
> 
> Is there a another (an older version) cocoon.jar in the class path?
> 
> Best Regards,
> 
> Antonio Gallardo.
> 
> philguillard escribió:
> 
>> Hi,
>>
>> After a cocoon restart, on the first request on any sitemap i get this
>> Internal Server Error: Could not find component (key 
>> [org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc])
>> On the second click it is ok.
>>
>> What's wrong there? I don't have any idea!
>> Below the details.
>>
>> Regards,
>>
>> Phil
>>
>>
>> In cocoon.xconf (should be exactly 2.1.7 rls):
>> _____________________________________________
>>   <xslt-processor logger="core.xslt-processor">
>>      <parameter name="use-store" value="true"/>
>>      <parameter name="incremental-processing" value="false"/>
>>   </xslt-processor>
>>   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
>> logger="core.xslt-processor" 
>> role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
>>      <parameter name="use-store" value="true"/>
>>      <parameter name="transformer-factory" 
>> value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
>>   </component>
>>   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
>> logger="core.xslt-processor" 
>> role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
>>      <parameter name="use-store" value="true"/>
>>      <parameter name="incremental-processing" value="false"/>
>>      <parameter name="transformer-factory" 
>> value="org.apache.xalan.processor.TransformerFactoryImpl"/>
>>   </component>
>>
>> In the main sitemap :
>> ______________________
>>   <map:transformers default="xsltc">
>>     <map:transformer logger="sitemap.transformer.xslt" name="xslt" 
>> pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
>>       <use-request-parameters>false</use-request-parameters>
>>       <use-session-parameters>false</use-session-parameters>
>>       <use-cookie-parameters>false</use-cookie-parameters>
>>       <xslt-processor-role>xalan</xslt-processor-role>
>>       <check-includes>true</check-includes>
>>     </map:transformer>
>>     <map:transformer logger="sitemap.transformer.xalan" name="xalan" 
>> pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
>>       <use-request-parameters>false</use-request-parameters>
>>       <use-session-parameters>false</use-session-parameters>
>>       <use-cookie-parameters>false</use-cookie-parameters>
>>       <xslt-processor-role>xalan</xslt-processor-role>
>>       <check-includes>true</check-includes>
>>     </map:transformer>
>>
>> In Sub-sitemaps :
>> _____________
>>
>> They all have the same declaration :
>> <map:components><map:transformers default="xsltc">.....
>>
>>
>>
>> Regards,
>>
>> Phil
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 

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


Re: Trouble loading XSLTC component

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi,

Is there a another (an older version) cocoon.jar in the class path?

Best Regards,

Antonio Gallardo.

philguillard escribió:
> Hi,
>
> After a cocoon restart, on the first request on any sitemap i get this
> Internal Server Error: Could not find component (key 
> [org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc])
> On the second click it is ok.
>
> What's wrong there? I don't have any idea!
> Below the details.
>
> Regards,
>
> Phil
>
>
> In cocoon.xconf (should be exactly 2.1.7 rls):
> _____________________________________________
>   <xslt-processor logger="core.xslt-processor">
>      <parameter name="use-store" value="true"/>
>      <parameter name="incremental-processing" value="false"/>
>   </xslt-processor>
>   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
> logger="core.xslt-processor" 
> role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
>      <parameter name="use-store" value="true"/>
>      <parameter name="transformer-factory" 
> value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
>   </component>
>   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" 
> logger="core.xslt-processor" 
> role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
>      <parameter name="use-store" value="true"/>
>      <parameter name="incremental-processing" value="false"/>
>      <parameter name="transformer-factory" 
> value="org.apache.xalan.processor.TransformerFactoryImpl"/>
>   </component>
>
> In the main sitemap :
> ______________________
>   <map:transformers default="xsltc">
>     <map:transformer logger="sitemap.transformer.xslt" name="xslt" 
> pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
>       <use-request-parameters>false</use-request-parameters>
>       <use-session-parameters>false</use-session-parameters>
>       <use-cookie-parameters>false</use-cookie-parameters>
>       <xslt-processor-role>xalan</xslt-processor-role>
>       <check-includes>true</check-includes>
>     </map:transformer>
>     <map:transformer logger="sitemap.transformer.xalan" name="xalan" 
> pool-max="1024" src="org.apache.cocoon.transformation.TraxTransformer">
>       <use-request-parameters>false</use-request-parameters>
>       <use-session-parameters>false</use-session-parameters>
>       <use-cookie-parameters>false</use-cookie-parameters>
>       <xslt-processor-role>xalan</xslt-processor-role>
>       <check-includes>true</check-includes>
>     </map:transformer>
>
> In Sub-sitemaps :
> _____________
>
> They all have the same declaration :
> <map:components><map:transformers default="xsltc">.....
>
>
>
> Regards,
>
> Phil
>
> ---------------------------------------------------------------------
> 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