You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2010/04/10 19:00:41 UTC

[jira] Created: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

CXF-DOSGi requires internet access when reading XML
---------------------------------------------------

                 Key: DOSGI-69
                 URL: https://issues.apache.org/jira/browse/DOSGI-69
             Project: CXF Distributed OSGi
          Issue Type: Bug
          Components: DSW
    Affects Versions: 1.1
            Reporter: David Bosschaert


When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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

        

[jira] Commented: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

Posted by "Zhou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928146#action_12928146 ] 

Zhou commented on DOSGI-69:
---------------------------

It sounds to me that the use of classloader in OsgiUtils.readIntentMap() is suspicious. 
I made a intent map object static, which is created just once when cxf-dsw loads, instead of loading it whenever requested. and I commented out the setting of classloader for current thread. this works well for me.


> CXF-DOSGi requires internet access when reading XML
> ---------------------------------------------------
>
>                 Key: DOSGI-69
>                 URL: https://issues.apache.org/jira/browse/DOSGI-69
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.1
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>         Attachments: dosgi69.patch
>
>
> When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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


[jira] Assigned: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

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

David Bosschaert reassigned DOSGI-69:
-------------------------------------

    Assignee: David Bosschaert

> CXF-DOSGi requires internet access when reading XML
> ---------------------------------------------------
>
>                 Key: DOSGI-69
>                 URL: https://issues.apache.org/jira/browse/DOSGI-69
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.1
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>         Attachments: dosgi69.patch
>
>
> When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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


[jira] Updated: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

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

Julien Vey updated DOSGI-69:
----------------------------

    Attachment: dosgi69.patch

Since CXF moved to Spring 3, I think DOSGI could follow. Then we could use GenericXMLApplicationContext (and the setValidating() method) instead of OsgiBundleXMLApplicationContext, which will resolve this issue.

Cheers

Julien



> CXF-DOSGi requires internet access when reading XML
> ---------------------------------------------------
>
>                 Key: DOSGI-69
>                 URL: https://issues.apache.org/jira/browse/DOSGI-69
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.1
>            Reporter: David Bosschaert
>         Attachments: dosgi69.patch
>
>
> When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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


[jira] Commented: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

Posted by "David Bosschaert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909749#action_12909749 ] 

David Bosschaert commented on DOSGI-69:
---------------------------------------

Thanks for the patch, Julien. I fully agree with your comments and it would be great if this issue gets resolved this way.
I'll take a look at it soon.

> CXF-DOSGi requires internet access when reading XML
> ---------------------------------------------------
>
>                 Key: DOSGI-69
>                 URL: https://issues.apache.org/jira/browse/DOSGI-69
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.1
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>         Attachments: dosgi69.patch
>
>
> When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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


[jira] Commented: (DOSGI-69) CXF-DOSGi requires internet access when reading XML

Posted by "David Bosschaert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909752#action_12909752 ] 

David Bosschaert commented on DOSGI-69:
---------------------------------------

Looking at it I see that you're including all the spring classes in the cxf-dsw jar file. That's not really the right place to put these dependencies. 
The dependencies should be part of the single-bundle and multi-bundle distros. The cxf-dsw jar file can depend on the spring classes via package imports.

> CXF-DOSGi requires internet access when reading XML
> ---------------------------------------------------
>
>                 Key: DOSGI-69
>                 URL: https://issues.apache.org/jira/browse/DOSGI-69
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.1
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>         Attachments: dosgi69.patch
>
>
> When the DOSGi system parses XML (such as an intent map or remote-services.xml file) it tries to resolve the used XML schema's from the internet, even though they are part of the distribution. This shouldn't be happening.

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