Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1909

Apache Felix on JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • framework-2.0.2
    • None
    • Main
    • None
    • Ubuntu Linux 9.04 64-bit
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b76)
      Java HotSpot(TM) 64-Bit Server VM (build 17.0-b05, mixed mode)

    Description

      I tried to start our OSGi application on JDK7, but got a lot of errors like this

      Unresolved constraint in bundle javax.mail.mail [20]: package; (package=javax.activation)

      I've modified Apache Felix config.properties:

      org.osgi.framework.system.packages.extra= \
      javax.activation; \
      javax.crypto; \
      javax.crypto.interfaces; \
      javax.crypto.spec; \
      javax.management; \
      javax.naming; \
      javax.naming.directory; \
      javax.naming.spi; \
      javax.net; \
      javax.net.ssl; \
      javax.security.auth; \
      javax.security.auth.callback; \
      javax.security.auth.x500; \
      javax.security.cert; \
      javax.security.sasl; \
      javax.sql; \
      javax.swing; \
      javax.swing.border; \
      javax.swing.event; \
      javax.swing.plaf; \
      javax.swing.plaf.basic; \
      javax.swing.table; \
      javax.swing.text; \
      javax.swing.tree; \
      javax.xml.namespace; \
      javax.xml.parsers; \
      javax.xml.stream; \
      javax.xml.transform; \
      javax.xml.transform.dom; \
      javax.xml.transform.stream; \
      org.ietf.jgss; \
      org.xml.sax; \
      org.xml.sax.helpers; \
      org.w3c.dom;

      But one error remained:
      org.osgi.framework.BundleException: Unresolved constraint in bundle com.springsource.org.dom4j [18]: package; (&(package=javax.xml.stream)(version>=1.0.1)(!(version>=2.0.0)))

      My application work on JDK6 without all that extra packages. But now Felix requires them. Is this behaviour correct?
      How to fix this javax.xml.stream import?

      Attachments

        1. stdout.log
          27 kB
          Bulat Nigmatullin
        2. config.properties
          5 kB
          Bulat Nigmatullin

        Activity

          People

            Unassigned Unassigned
            bulat Bulat Nigmatullin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: