Karaf
  1. Karaf
  2. KARAF-123

File jre.properties is not copied and so it is not possible to start a second karaf instance

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      During the process creating a second instance of Karaf, the file jre.properties is not copied in the directory instances/test/etc/jre.properties.

      So it is not possible to start the new instance

      C:\chm\download>C:\chm\soft\jdk1.6.0_20\jre\bin\java.exe -server -Xmx512M -Dcom.sun.management.jmxremote -Djava.util.logging.config.file="C:\chm\projects\RATP\i2v\apache-
      karaf-i2v-1.99\instances\test\etc\java.util.logging.properties" -Djava.endorsed.dirs="C:\chm\soft\jdk1.6.0_20\jre\jre\lib\endorsed;C:\chm\soft\jdk1.6.0_20\jre\lib\endorse
      d;C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\lib\endorsed" -Djava.ext.dirs="C:\chm\soft\jdk1.6.0_20\jre\jre\lib\ext;C:\chm\soft\jdk1.6.0_20\jre\lib\ext;C:\chm\project
      s\RATP\i2v\apache-karaf-i2v-1.99\lib\ext" -Dkaraf.home="C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99" -Dkaraf.base="C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\insta
      nces\test" -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\lib\karaf-client.jar;C:\chm\projects\RA
      TP\i2v\apache-karaf-i2v-1.99\lib\karaf-jaas-boot.jar;C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\lib\karaf.jar org.apache.karaf.main.Main
      Could not create framework: java.io.FileNotFoundException: C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\instances\test\etc\jre.properties (The system cannot find the fi
      le specified)
      java.io.FileNotFoundException: C:\chm\projects\RATP\i2v\apache-karaf-i2v-1.99\instances\test\etc\jre.properties (The system cannot find the file specified)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:106)
              at java.io.FileInputStream.<init>(FileInputStream.java:66)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
              at org.apache.karaf.main.Main.loadPropertiesFile(Main.java:797)
              at org.apache.karaf.main.Main.loadPropertiesFile(Main.java:829)
              at org.apache.karaf.main.Main.loadConfigProperties(Main.java:738)
              at org.apache.karaf.main.Main.launch(Main.java:208)
              at org.apache.karaf.main.Main.main(Main.java:353)
      

      REMARK : THIS ERROR IS NOT RETURNED IN THE LOG OF THE KARAF WHEN WE HAVE ISSUED THE COMMAND

      admin:start test

        Activity

        Hide
        Guillaume Nodet added a comment -

        Committing to https://svn.apache.org/repos/asf/karaf/trunk ...
        M admin/core/src/main/java/org/apache/karaf/admin/internal/AdminServiceImpl.java
        Committed r964587

        Show
        Guillaume Nodet added a comment - Committing to https://svn.apache.org/repos/asf/karaf/trunk ... M admin/core/src/main/java/org/apache/karaf/admin/internal/AdminServiceImpl.java Committed r964587
        Hide
        Jamie goodyear added a comment -

        Fixed in the 2.0.0 release.

        Show
        Jamie goodyear added a comment - Fixed in the 2.0.0 release.

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Charles Moulliard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development