You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/01/27 11:13:44 UTC

[jira] Created: (SLING-1958) Replace system package export of select XML API packages by bundles

Replace system package export of select XML API packages by bundles
-------------------------------------------------------------------

                 Key: SLING-1958
                 URL: https://issues.apache.org/jira/browse/SLING-1958
             Project: Sling
          Issue Type: Improvement
          Components: Launchpad
            Reporter: Felix Meschberger
             Fix For: Launchpad Builder 6, Launchpad Base 2.2.2


As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:

  - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
     (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
     --> Change in the default sling.properties in Launchpad Base

  - Add the following bundles to the default Sling Build
      - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
      - org.apache.servicemix.bundles.xerces, 2.9.1.4
      - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
     --> Change to the list.xml in Launchpad Builder

Will attach a patch to this issue for feedback. 

[1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-1958:
-------------------------------------

    Attachment: SLING-1958.patch

Proposed patch:

  * Removing packages from system bundle exports
        - all javax.xml.* packages
        - all org.w3c.dom.* packages
        - all org.xml.sax.* packages

  * Adding bundles to Launchpad Builder list.xml at Start Level 3

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>             Fix For: Launchpad Builder 6, Launchpad Base 2.2.2
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993821#comment-12993821 ] 

Justin Edelson commented on SLING-1958:
---------------------------------------

Also tried adding these bundles:
+        <bundle>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.bcel</artifactId>
+            <version>5.2_3</version>
+        </bundle>
+        <bundle>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.xalan</artifactId>
+            <version>2.7.1_3</version>
+        </bundle>
+        <bundle>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.xalan-serializer</artifactId>
+            <version>2.7.1_3</version>
+        </bundle>

This works better, although there now there are these errors on stdout/stderr:
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
Warning: encoding "UTF-8" not supported, using UTF-8
[WARNING] un-handlable path resources/install

However, with these additional bundles, I get about 70 integration test failures.

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>             Fix For: Launchpad Builder 6, Launchpad Base 2.2.2
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Carsten Ziegeler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188394#comment-13188394 ] 

Carsten Ziegeler commented on SLING-1958:
-----------------------------------------

Is this still something we should do for the next release of the launchpad?
                
> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Launchpad Builder 7, Launchpad Base 2.4.0
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993822#comment-12993822 ] 

Justin Edelson commented on SLING-1958:
---------------------------------------

I was really hoping to cut a release of launchpad.api, launchpad.base, launchpad.installer, maven-launchpad-plugin. Do you think this can be rolled into the next release? I know it's a good idea, but I'm concerned it a bit risky.

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>             Fix For: Launchpad Builder 6, Launchpad Base 2.2.2
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-1958:
----------------------------------------

    Assignee: Felix Meschberger

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Launchpad Builder 7, Launchpad Base 2.3.2
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-1958:
-------------------------------------

    Fix Version/s:     (was: Launchpad Base 2.2.2)
                       (was: Launchpad Builder 6)
                   Launchpad Base 2.2.4
                   Launchpad Builder 7

Agreed, we should add more brain-juice into this game before going for it. Therefore rescheduling to post-Sling 6

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>             Fix For: Launchpad Builder 7, Launchpad Base 2.2.4
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993819#comment-12993819 ] 

Justin Edelson commented on SLING-1958:
---------------------------------------

I found that with this patch, Sling won't come up all the way.

One error in the log is this:
11.02.2011 23:20:44.245 *ERROR* [FelixStartLevel] org.apache.sling.jcr.jackrabbit.server startRepository: Uncaught Throwable trying to access Repository, calling stopRepository() (javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found) javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
        at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
        at org.apache.jackrabbit.core.config.RepositoryConfig.internalCreateWorkspaceConfig(RepositoryConfig.java:773)
        at org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:847)
        at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:575)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:347)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:322)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:304)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:140)
        at org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:795)
        at org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:606)

 And then a bunch of these:
11.02.2011 23:20:44.441 *ERROR* [Repository Pinger] org.apache.sling.jcr.jackrabbit.server acquireRepository: Repository problem starting repository from file:/Users/justin/Workspace/sling-builder/launchpad/builder/sling/jackrabbit/repository.xml in /Users/justin/Workspace/sling-builder/launchpad/builder/sling/jackrabbit (org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error. (Line: -1 Column: -1)) org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error. (Line: -1 Column: -1)
        at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:291)
        at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:223)
        at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:525)
        at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:608)
        at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:563)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:347)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:322)
        at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:304)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:140)
        at org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:795)
        at org.apache.sling.jcr.base.AbstractSlingRepository.run(AbstractSlingRepository.java:925)
        at java.lang.Thread.run(Thread.java:680)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:285)
        ... 11 more

> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>             Fix For: Launchpad Builder 6, Launchpad Base 2.2.2
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-1958) Replace system package export of select XML API packages by bundles

Posted by "Felix Meschberger (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188436#comment-13188436 ] 

Felix Meschberger commented on SLING-1958:
------------------------------------------

IIIRC the API exports has already been removed from the default sling.properties as per SLING-2109 (with an amendment in SLING-2281) ?

So, actually changing the build to include its own XML bundles is probably not that important. Maybe we can just go an document how it would be done in particular setups but continue with our XML system fragments we already deploy.
                
> Replace system package export of select XML API packages by bundles
> -------------------------------------------------------------------
>
>                 Key: SLING-1958
>                 URL: https://issues.apache.org/jira/browse/SLING-1958
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Launchpad Builder 7, Launchpad Base 2.4.0
>
>         Attachments: SLING-1958.patch
>
>
> As discussed on the dev list [1] I propose to change the approach to supporting XML in Sling as follows:
>   - Remove javax.xml.*, org.w3c.*, and org.xml.sax* packages covered by JAX-P from the System bundle exports
>      (that is the jre-1.6 and jre-1.5 properties in the default sling properties)
>      --> Change in the default sling.properties in Launchpad Base
>   - Add the following bundles to the default Sling Build
>       - org.apache.servicemix.specs.jaxp-api-1.3, 1.7.0
>       - org.apache.servicemix.bundles.xerces, 2.9.1.4
>       - org.apache.servicemix.bundles.xmlresolver, 1.2.0.3
>      --> Change to the list.xml in Launchpad Builder
> Will attach a patch to this issue for feedback. 
> [1] http://markmail.org/message/2fk73koxf4ihjihm

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira