Could you try adding xalan in servicemix classpath ?
It seems the xslt transformer used is in the com.sun.org.apache.xalan.*package,
and I'm not sure if it works with this one...

Cheers,
Guillaume Nodet

On 3/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Okay I have added the apache bit now, but I am still getting the same
> error with the call to 'copyProperties' method or lack of it as is the case:
>
> ERROR: 'Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties''
> *javax.xml.transform.TransformerException*: *java.lang.RuntimeException*:
> Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties'
>
>  org.apache.servicemix.components.xslt.XsltComponent
>
> I also get the same error with a 'forward' method call :(
> Here is the output in full:
>
> 2006-03-27 11:54:48,287 DEBUG org.apache.servicemix.jbi.nmr.Broker Routing
> exchange [EMAIL PROTECTED] to:
> ServiceEndpoint[service={http://servicemix.apache.org/demo/}ServiceRouter,endpoint=ServiceRouter]
> DefaultQuartzScheduler_Worker-1
> 2006-03-27 11:54:48,287 DEBUG
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow Called Flow send
> DefaultQuartzScheduler_Worker-1
> 2006-03-27 11:54:48,347 DEBUG
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1
> [EMAIL PROTECTED] dequeued
> exchange: [EMAIL PROTECTED]
> 2006-03-27 11:54:48,347 DEBUG
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow Called Flow doRouting
> Thread-44
> ERROR: 'Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties''
> *javax.xml.transform.TransformerException*: *java.lang.RuntimeException*:
> Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties'
>  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (*TransformerImpl.java:647*)
>  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (*TransformerImpl.java:279*)
>  at org.apache.servicemix.components.xslt.XsltComponent.transformContent(*
> XsltComponent.java:133*)
>  at org.apache.servicemix.components.xslt.XsltComponent.transform(*
> XsltComponent.java:117*)
>  at
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExchange
> (*TransformComponentSupport.java:48*)
>  at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (*DeliveryChannelImpl.java:636*)
>
>  at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(*
> AbstractFlow.java:171*)
>  at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(*
> SedaQueue.java:221*)
>  at org.apache.geronimo.connector.work.WorkerContext.run(*
> WorkerContext.java:291*)
>  at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
>  at java.lang.Thread.run(*Thread.java:595*)
> Caused by: *java.lang.RuntimeException*: Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties'
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError(
> *BasisLibrary.java:1462*)
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError(
> *BasisLibrary.java:1466*)
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_ElementF
> (*BasisLibrary.java:411*)
>
>  at ServiceRouter.template$dot$0()
>  at ServiceRouter.applyTemplates()
>  at ServiceRouter.applyTemplates()
>  at ServiceRouter.transform()
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (*AbstractTranslet.java:594*)
>  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (*TransformerImpl.java:640*)
>  ... 10 more
> ---------
> *java.lang.RuntimeException*: Unrecognized XSLTC extension
> 'xalan://org.apache.servicemix.components.xslt.XalanExtension:copyProperties'
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError(
> *BasisLibrary.java:1462*)
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError(
> *BasisLibrary.java:1466*)
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_ElementF
> (*BasisLibrary.java:411*)
>
>  at ServiceRouter.template$dot$0()
>  at ServiceRouter.applyTemplates()
>  at ServiceRouter.applyTemplates()
>  at ServiceRouter.transform()
>  at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (*AbstractTranslet.java:594*)
>  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (*TransformerImpl.java:640*)
>  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (*TransformerImpl.java:279*)
>  at org.apache.servicemix.components.xslt.XsltComponent.transformContent(*
> XsltComponent.java:133*)
>  at org.apache.servicemix.components.xslt.XsltComponent.transform(*
> XsltComponent.java:117*)
>  at
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExchange
> (*TransformComponentSupport.java:48*)
>  at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (*DeliveryChannelImpl.java:636*)
>
>  at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(*
> AbstractFlow.java:171*)
>  at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(*
> SedaQueue.java:221*)
>  at org.apache.geronimo.connector.work.WorkerContext.run(*
> WorkerContext.java:291*)
>  at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
>  at java.lang.Thread.run(*Thread.java:595*)
>
>
> And my XSL file again is:
>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  xmlns:jbi="xalan://org.apache.servicemix.components.xslt.XalanExtension"
>  extension-element-prefixes="jbi"
>
>  xmlns:foo="http://servicemix.org/cheese/";
>  version="1.0">
>
>  <xsl:template match="/*">
>  <xsl:choose>
>
>  <!-- lets forward the inbound message to a service -->
>  <xsl:when test="@transferType = 'File'">
>  <jbi:copyProperties/>
>  <jbi:forward service="foo:trace"/>
>  </xsl:when>
>
>  <xsl:otherwise>
>  <jbi:copyProperties/>
>  <jbi:forward service="foo:trace"/>
>  </xsl:otherwise>
>
>  </xsl:choose>
>  </xsl:template>
>
> </xsl:stylesheet>
>
>
> Regards Rick
>
>
>
> [image: Inactive hide details for "Ramon Buckland"
> <[EMAIL PROTECTED]>]"Ramon Buckland" <[EMAIL PROTECTED]>
>
>
>
>
>
>     *"Ramon Buckland" <[EMAIL PROTECTED]>*
>
>             26/03/2006 20:38
>             Please respond to servicemix-users
>
>
>
>  To: <[email protected]>
>  cc:
>  Subject: RE: simple XSL tag problem where <jbi:copyProperties/> is
> throwing 'Unrecognized XSLTC extension' error
>
>
> Hi Rick,
>
> Your problem is that the package namespace has changed
> from org.servicemix to org.apache.servicemix.
>
> The import you have in the XSL is the older form.
>
> change
> xmlns:jbi="xalan://org.servicemix.components.xslt.XalanExtension"
> to
> xmlns:jbi="xalan://org.apache.servicemix.components.xslt.XalanExtension"
>
>
> Regards
> Ramon
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> ]
> Sent: Saturday, 25 March 2006 5:26 AM
> To: [email protected]
> Subject: simple XSL tag problem where <jbi:copyProperties/> is throwing
> 'Unrecognized XSLTC extension' error
>
>
>
>
>
>
>
>
>
> Hello,
>
> I have a simple XSL file called ServiceRouter.xsl which is as follows:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:jbi="xalan://org.servicemix.components.xslt.XalanExtension"
> extension-element-prefixes="jbi"
> xmlns:foo="http://servicemix.org/cheese/";
> version="1.0">
>
> <xsl:template match="/*">
> <xsl:choose>
>
> <!-- lets forward the inbound message to a service -->
> <xsl:when test="@transferType = 'File'">
> <jbi:copyProperties/>
> <jbi:forward service="foo:trace"/>
> </xsl:when>
>
> <!-- default service option -->
> <xsl:otherwise>
> <jbi:copyProperties/>
> <jbi:forward service="foo:trace"/>
> </xsl:otherwise>
>
>
> </xsl:choose>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
> Which creates an error log of:
> ERROR: 'Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties''
> javax.xml.transform.TransformerException: java.lang.RuntimeException:
> Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:647)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:279)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transformContent
> (XsltCom
> ponent.java:133)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transform
> (XsltComponentj
> ava:117)
> at
>
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExc
> hange(TransformComponentSupport.java:48)
> at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (Deliv
> eryChannelImpl.java:636)
> at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> AbstractFlow.java:
> 171)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> :221)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
> :291)
> ERROR: 'Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties''
> javax.xml.transform.TransformerException: java.lang.RuntimeException:
> Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:647)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:279)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transformContent
> (XsltCom
> ponent.java:133)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transform
> (XsltComponentj
> ava:117)
> at
>
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExc
> hange(TransformComponentSupport.java:48)
> at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (Deliv
> eryChannelImpl.java:636)
> at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> AbstractFlow.java:
> 171)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> :221)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
> :291)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException: Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1462)
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1466)
> at
>
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_Ele
> mentF(BasisLibrary.java:411)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException: Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1462)
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1466)
> at
>
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_Ele
> mentF(BasisLibrary.java:411)
> at ServiceRouter.template$dot$0()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.transform()
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (A
> bstractTranslet.java:594)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:640)
> ... 10 more
> ---------
> java.lang.RuntimeException: Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1462)
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1466)
> at
>
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_Ele
> mentF(BasisLibrary.java:411)
> at ServiceRouter.template$dot$0()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.transform()
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (A
> bstractTranslet.java:594)
> at ServiceRouter.template$dot$0()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.transform()
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (A
> bstractTranslet.java:594)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:640)
> ... 10 more
> ---------
> java.lang.RuntimeException: Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1462)
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeError
> (Ba
> sisLibrary.java:1466)
> at
>
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsupported_Ele
> mentF(BasisLibrary.java:411)
> at ServiceRouter.template$dot$0()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.applyTemplates()
> at ServiceRouter.transform()
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform
> (A
> bstractTranslet.java:594)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:640)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
> (Trans
> formerImpl.java:279)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transformContent
> (XsltCom
> ponent.java:133)
> at
> org.apache.servicemix.components.xslt.XsltComponent.transform
> (XsltComponentj
> ava:117)
> at
>
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExc
> hange(TransformComponentSupport.java:48)
> at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (Deliv
> eryChannelImpl.java:636)
> at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> AbstractFlow.java:
> 171)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> :221)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
> :291)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
> DEBUG org.apache.servicemix.jbi.messaging.DeliveryChannelImpl Sent:
> MessageExchange[
> id: ID:default-1778-1143223813902-5:0
> status: Error
> role: provider
> service: {http://servicemix.apache.org/demo/}ServiceRouter
> endpoint: ServiceRouter
> in: <?xml version="1.0"
>
> encoding="UTF-8"?><timer><name>XferOut</name><group>Outbound</group><fullnam
> e>Outbound.XferOut</fullname><description/><fireTime>Fri
> Mar 24 18:11:00 GMT 2006</fireTime></timer>
> error: Failed to transform: javax.xml.transform.TransformerException:
> java.lang.RuntimeException: Unrecognized XSLTC extension
> 'xalan://org.servicemix.components.xslt.XalanExtension:copyProperties'
> ] Thread-45
>
>
> However when I change:
> <!-- default service option -->
> <xsl:otherwise>
> <jbi:copyProperties/>
> <jbi:forward service="foo:trace"/>
> </xsl:otherwise>
>
> To
> <!-- default service option -->
> <xsl:otherwise>
> </xsl:otherwise>
>
>
> The bus works and throws no errors!!!!
>
> But this not ideal as I wish to handle the default routing of course.
> I am I doing something wrong in the XSL?
>
>
> Regards Rick
>
> Direct Line Group Limited, registered in England
>
> with number 2811437, registered office 3 Edridge
>
> Road, Croydon, Surrey CR9 1AG. The following
>
> companies are members of the Direct Line Group:
>
> Direct Line Insurance plc, Direct Line Life
>
> Insurance Company Limited, Direct Line Unit
>
> Trusts Limited and Direct Line Financial Services
>
> Limited, all of which are authorised and regulated
>
> by the Financial Services Authority. All are
>
> members of The Royal Bank of Scotland Group.
>
> This email is intended for the addressee only and
>
> may contain confidential, proprietary or legally
>
> privileged information. If you are not the
>
> intended recipient of this email you should
>
> notify us immediately and delete it. You should
>
> not copy, print, distribute, disclose or use any
>
> part of it. We reserve the right to monitor and
>
> record all electronic communications through our
>
> networks. We cannot accept any liability for
>
> viruses transmitted via this e-mail once it has
>
> left our networks.
>
> Direct Line Group Limited, registered in England
> with number 2811437, registered office 3 Edridge
> Road, Croydon, Surrey  CR9 1AG.  The following
> companies are members of the Direct Line Group:
> Direct Line Insurance plc, Direct Line Life
> Insurance Company Limited, Direct Line Unit
> Trusts Limited and Direct Line Financial Services
> Limited, all of which are authorised and regulated
> by the Financial Services Authority.  All are
> members of The Royal Bank of Scotland Group.
>
> This email is intended for the addressee only and
> may contain confidential, proprietary or legally
> privileged information.  If you are not the
> intended recipient of this email you should
> notify us immediately and delete it.  You should
> not copy, print, distribute, disclose or use any
> part of it.  We reserve the right to monitor and
> record all electronic communications through our
> networks.  We cannot accept any liability for
> viruses transmitted via this e-mail once it has
> left our networks.
>
>

Reply via email to