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

GNU Classpath 0.98 + JamVM 1.5.4 + Felix (3.0.7, 3.1.0-SNAPSHOT) does not work with felix security framework enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • framework-3.0.7
    • None
    • Framework Security
    • None

    Description

      JamVM-1.5.4 + patch (see jamvm.patch attached to this bug)
      =======================================
      To apply patch:
      #1 Download jamvm 1.5.4
      #2 untar package
      #3 cd jamvm-1.5.4; patch -p1 < jamvm.patch
      #4 configure jamvm
      ./configure --with-classpath-install-dir=/home/samba/wurk/downloads/osgi/classpath-0.98/install/ --disable-int-inlining --disable-tls
      #make; make install

      GNU Classpath 0.98 + patch (see classpath.patch)
      ================================
      #1 Download classpath

      #2 cd classpath-0.98; patch -p1 < classpath.patch

      #3 configure classpath
      ./configure --without-x --disable-gtk-peer --disable-gconf-peer --disable-plugin --disable-tools --disable-examples --enable-xmlj --prefix=<install dir>

      #4 make; make install

      Felix-3.0.7 (Also reproducible using latest trunk i.e 3.1.0-SNAPSHOT)
      ===========================================
      #1 download felix-framwork-3.0.7 and untar the distribution
      #2 Download org.apache.felix.framework.security-1.4.1.jar and copy it in felix-framework-3.0.7/bundle directory
      #3 cd felix-framework-3.0.7
      #4 Add the following contents to java.policy and put it in the conf directory

      grant {
      permission java.security.AllPermission;
      }

      grant codeBase "http://felix.extensions:9/" {
      permission java.security.AllPermission;
      };

      #5 start the framework
      /usr/local/jamvm/bin/jamvm -Xmx256M -Dorg.osgi.framework.security="osgi" -Dpolicy.provider=gnu.java.security.PolicyFile -Djava.security.policy=file:///home/samba/wurk/downloads/osgi/felix-framework-3.0.7/conf/java.policy -jar bin/felix.jar

      1. The framework won;t start and it causes a stack over flow. see felix.log in the attachment

      Attachments

        1. classpath.patch
          15 kB
          Samba
        2. felix.jar
          392 kB
          Karl Pauls
        3. felix.log
          1 kB
          Samba
        4. felix.log
          463 kB
          Samba
        5. felix.log.debug
          166 kB
          Samba
        6. felix-cache.tar.gz
          272 kB
          Samba
        7. felix-cache.tar.gz
          211 kB
          Samba
        8. felix-cache-disable-urlhandlers.tar.gz
          352 kB
          Samba
        9. framework4WithSecurity.log
          456 kB
          Yen Tran
        10. jamvm.patch
          1 kB
          Samba
        11. withoutSecurity.log
          6 kB
          Yen Tran
        12. withSecurity.log
          913 kB
          Yen Tran

        Activity

          People

            karlpauls Karl Pauls
            samba Samba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: