You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/07/15 23:02:52 UTC

[jira] Resolved: (KARAF-123) File jre.properties is not copied and so it is not possible to start a second karaf instance

     [ https://issues.apache.org/jira/browse/KARAF-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved KARAF-123.
-----------------------------------

      Assignee: Guillaume Nodet
    Resolution: Fixed

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


> File jre.properties is not copied and so it is not possible to start a second karaf instance
> --------------------------------------------------------------------------------------------
>
>                 Key: KARAF-123
>                 URL: https://issues.apache.org/jira/browse/KARAF-123
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Charles Moulliard
>            Assignee: Guillaume Nodet
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> 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
> {code}
> 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)
> {code}
> REMARK : THIS ERROR IS NOT RETURNED IN THE LOG OF THE KARAF WHEN WE HAVE ISSUED THE COMMAND 
> admin:start test

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