Results 1 to 3 of 3

Thread: FatalParseException on Export/Import-Package META-INF

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Default FatalParseException on Export/Import-Package META-INF

    All,

    I am very new to the Spring DM and OSGI world.

    While trying to deploy the CXF Apache OSGI Bundle to the Springsource DM Server 1.0.0 Release, I am getting a FatalParseException. It appears to be attributed to the fact that CXF is uses META-INF.cxf as both an Export-Package and Import-Package.

    There are required spring config files under META-INF/cxf that can be import ed into your OSGI module.

    Any ideas how to resolve?

    The dump file is attached that shows the error in question.

    Thanks in advance,
    Scott ES


    Attachment 1649
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    This is a bug in the CXF bundle.

    The OSGi spec defines a package name as being a made up of a series of dot-separated identifiers, where an identifier may only contain letters and digits, i.e. '-' is not a legal character in a package name. See sections 3.5.5 and 1.3.2 in the 4.1 OSGi spec for the exact details.

    I'd recommend opening a Jira against CXF referencing these two sections of the OSGi spec.
    Andy Wilkinson
    SpringSource

  3. #3
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    This behaviour is due to the fact that Spring DM parses OSGi manifests strictly and disallows the "-" character in package names. It doesn't therefore allow META-INF resources to be imported or exported. We have raised this limitation in the OSGi standards body.

    Meanwhile, you should try to use bundles with OSGi manifests that conform to the spec. There is an old request against the SpringSource Enterprise Bundle Repository for Apache CXF, but I understand it has been delayed because of the relative complexity of producing valid bundles for CXF. You may to comment on this issue to add your voice to the request.

    One workaround may be to create your own bundle which imbeds all the Apache CXF jars on the bundle classpath. This would avoid the need to import and export resources and packages between the CXF jars.
    Glyn Normington
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •