You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/12 07:37:07 UTC

[jira] [Created] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Claus Ibsen created SMX4-1240:
---------------------------------

             Summary: OSGi bundle for Saxon 9.4.0.4
                 Key: SMX4-1240
                 URL: https://issues.apache.org/jira/browse/SMX4-1240
             Project: ServiceMix 4
          Issue Type: Task
          Components: Bundles
            Reporter: Claus Ibsen
            Priority: Minor


http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/

http://www.saxonica.com/welcome/welcome.xml
25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)

We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453781#comment-13453781 ] 

Claus Ibsen commented on SMX4-1240:
-----------------------------------

I am trying to use the osgi bundle JAR in camel-saxon. But it fails unit testing it, as it wont work. The JDK cannot detect the saxon xpath factory, and reverts back to the crappy one from the JDK, and then the xpath 2.0 unit tests fails.

Camel also logs which xpath factory is in use (saxon vs xalan).

Seems the saxon feature uses xml resolver as well
<feature name='camel-saxon' version='2.11-SNAPSHOT' resolver='(obr)' start-level='50'>
    <feature version='2.11-SNAPSHOT'>camel-core</feature>
    <bundle dependnecy='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
    <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.4.0.1_2</bundle>
    <bundle>mvn:org.apache.camel/camel-saxon/2.11-SNAPSHOT</bundle>
  </feature>
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453851#comment-13453851 ] 

Babak Vahdat edited comment on SMX4-1240 at 9/12/12 8:25 PM:
-------------------------------------------------------------

No that information isn't inside MANIFEST.MF, but inside files beneath the META-INF/services folder.

So *the root cause* of the problem is the following missing files inside the SMX bundle, which are already shipped with the one on the central Repo:

{code}
META-INF/services/javax.xml.xpath.XPathFactory
META-INF/services/javax.xml.transform.TransformerFactory
{code}

As an example the first file contains the class name of XPathFactory-Impl to be used (which is net.sf.saxon.xpath.XPathFactoryImpl). This's also exactly the same way how Camel itself detectes it's own component "foo" under the path "META-INF/services/org/apache/camel/component/foo" :-)
So when you try to make use of the SMX bundle on the classpath, then of course JDK defaults to it's own Impl, e.g. on SUN-JDK that would be:

{code}
com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl
{code}

                
      was (Author: bvahdat):
    No that information isn't inside MANIFEST.MF, but inside files beneath the META-INF/services folder.

So *the root cause* of the problem is the following missing files inside the SMX bundle, which are already shipped with the one on the central Repo:

{code}
META-INF/services/javax.xml.xpath.XPathFactory
META-INF/services/javax.xml.transform.TransformerFactory
{code}

As an example the first file contains the class name of XPath-Impl to be used (which is net.sf.saxon.xpath.XPathFactoryImpl). This's also exactly the same way how Camel itself detectes it's own component "foo" under the path "META-INF/services/org/apache/camel/component/foo" :-)
So when you try to make use of the SMX bundle on the classpath, then of course JDK defaults to it's own Impl, e.g. on SUN-JDK that would be:

{code}
com.sun.org.apache.xpath.internal.jaxp.XPathImpl
{code}

                  
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453856#comment-13453856 ] 

Babak Vahdat commented on SMX4-1240:
------------------------------------

And the size difference is mainly because of the "w3c" folder (over 3 MB big) missing by SMX bundle. However have got no idea what the side effect of it's lack would be.
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453851#comment-13453851 ] 

Babak Vahdat commented on SMX4-1240:
------------------------------------

No that information isn't inside MANIFEST.MF, but inside files beneath the META-INF/services folder.

So *the root cause* of the problem is the following missing files inside the SMX bundle, which are already shipped with the one on the central Repo:

{code}
META-INF/services/javax.xml.xpath.XPathFactory
META-INF/services/javax.xml.transform.TransformerFactory
{code}

As an example the first file contains the class name of XPath-Impl to be used (which is net.sf.saxon.xpath.XPathFactoryImpl). This's also exactly the same way how Camel itself detectes it's own component "foo" under the path "META-INF/services/org/apache/camel/component/foo" :-)
So when you try to make use of the SMX bundle on the classpath, then of course JDK defaults to it's own Impl, e.g. on SUN-JDK that would be:

{code}
com.sun.org.apache.xpath.internal.jaxp.XPathImpl
{code}

                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SMX4-1240) Create OSGi bundle for Saxon 9.4.0.4

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated SMX4-1240:
---------------------------------------

    Summary: Create OSGi bundle for Saxon 9.4.0.4  (was: OSGi bundle for Saxon 9.4.0.4)
    
> Create OSGi bundle for Saxon 9.4.0.4
> ------------------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (SMX4-1240) Create OSGi bundle for Saxon 9.4.0.4

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved SMX4-1240.
----------------------------------------

    Resolution: Fixed

http://svn.apache.org/viewvc?view=revision&revision=1391013
                
> Create OSGi bundle for Saxon 9.4.0.4
> ------------------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned SMX4-1240:
------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453784#comment-13453784 ] 

Claus Ibsen commented on SMX4-1240:
-----------------------------------

I guess the osgi world does some tricks with the xmlresolver. Where as the non osgi world has other tricks, eg there is some meta-data in the MANIFEST.MF files in the original Saxon JARs that are not in the osgi ones.

This is a bit crap as I want to use the same JARs as much as possible. Maintaing both OSGi JARs and regular JARs is a PITA!
Also OSGi JARs gets published to maven central, so we wont need to have special maven repos or whatnot.
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453770#comment-13453770 ] 

Claus Ibsen commented on SMX4-1240:
-----------------------------------

Hmm something is maybe wrong with the 9.4.0.1 bundle 

The bundle is 2.7MB where as the *real* JAR is 9.4 MB
There is some files missing in the bundle, which doesnt work.
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453776#comment-13453776 ] 

Jean-Baptiste Onofré commented on SMX4-1240:
--------------------------------------------

Saxon bundles only wraps saxon9he. Maybe some others Saxon artifacts should be shipped. I take a look on that.
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SMX4-1240) OSGi bundle for Saxon 9.4.0.4

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453778#comment-13453778 ] 

Claus Ibsen commented on SMX4-1240:
-----------------------------------

Yeah saxon9he is 9.x MB in size.

There is a plain 9.4 JAR in central
http://search.maven.org/#artifactdetails%7Cnet.sf.saxon%7CSaxon-HE%7C9.4%7Cjar
                
> OSGi bundle for Saxon 9.4.0.4
> -----------------------------
>
>                 Key: SMX4-1240
>                 URL: https://issues.apache.org/jira/browse/SMX4-1240
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/
> http://www.saxonica.com/welcome/welcome.xml
> 25 June 2012  Saxon 9.4.0.4 is available (Saxon-HE...)
> We got 9.4.0.1 currently as osgi bundle. But there is a newer release out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira