You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Christoph Gritschenberger <ch...@gmail.com> on 2014/07/01 10:24:11 UTC

Re: Karaf does not startup on Windows 7

Can you tell us which java-version you are using?
Is JAVA_HOME set?

kind regards,
Christoph

On 30/06/14 19:50, SapnaB wrote:
> Hi JB,
> 
> Yes, thats how I start the Karaf instance. Both versions(2.3.2, 3.0.1) work
> fine in linux, but im unable to get them working in Windows 7.
> 
> Thanks,
> Sapna
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033880.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
> 



Re: Karaf does not startup on Windows 7

Posted by Achim Nierbeck <bc...@googlemail.com>.
Yes, I think now we're heading in the right direction.
You'll need to configure Karaf to work without Maven as it usually is used
in
conjunction. Especially since all optional bundles/features are installed
via maven.

regards, Achim


2014-07-01 13:01 GMT+02:00 SapnaB <sa...@gmail.com>:

> Hi Achim,
>
> I tried running as an admin.. No luck, gives me the same error. Is Maven a
> prerequisite? I havent installed that in my system. What does the error
> highlighted below mean? Looks to me to be reference to maven repository.
>
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
>
> *D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1*
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033909.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Karaf does not startup on Windows 7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
One thing: can you try to move the JDK in another folder than Program 
Files (without spaces).

Regards
JB

On 07/01/2014 07:01 PM, SapnaB wrote:
> Hi JB, Achim,
>
> Iv installed Maven now and tried to start karaf 2.3.2. Same error. Here are
> snippets from the cmd:
>
> C:\Users\sapbharg>mvn --version
> Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
> 2014-06-17T19:21:4
> 2+05:30)
> Maven home: C:\Program Files\Apache\apache-maven-3.2.2
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
> D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
> karaf.bat: Ignoring predefined value for KARAF_HOME
> Unable to update instance pid: Child instance started but no root registered
> in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
> D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1
>
> D:\OSGi\apache-karaf-2.3.2>echo %Path%
> ;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;*C:\Program
> Files\Java\jdk1.6.0_24\bin*;C:\Program
> Files\TortoiseSVN\bin;D:\Softwares\ANT\apache-ant-1.9.2\bin;C:\Program
> Files\Apache\apache-maven-3.2.2\bin
>
> D:\OSGi\apache-karaf-2.3.2>echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.6.0_24
>
> Wonder what Im doing wrong.
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033914.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf does not startup on Windows 7

Posted by Rajbir Saini <ra...@yahoo.com.INVALID>.
I am not a Windows user any more. However, I remember it was generally 
advised to keep the Java in folder not having spaces. I am not sure if 
this is not an issue in the latest Windows or Java versions. You can 
give it a try.

Raj

On Tuesday 01 July 2014 10:31 PM, SapnaB wrote:
> Hi JB, Achim,
>
> Iv installed Maven now and tried to start karaf 2.3.2. Same error. Here are
> snippets from the cmd:
>
> C:\Users\sapbharg>mvn --version
> Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
> 2014-06-17T19:21:4
> 2+05:30)
> Maven home: C:\Program Files\Apache\apache-maven-3.2.2
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
> D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
> karaf.bat: Ignoring predefined value for KARAF_HOME
> Unable to update instance pid: Child instance started but no root registered
> in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
> D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1
>
> D:\OSGi\apache-karaf-2.3.2>echo %Path%
> ;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;*C:\Program
> Files\Java\jdk1.6.0_24\bin*;C:\Program
> Files\TortoiseSVN\bin;D:\Softwares\ANT\apache-ant-1.9.2\bin;C:\Program
> Files\Apache\apache-maven-3.2.2\bin
>
> D:\OSGi\apache-karaf-2.3.2>echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.6.0_24
>
> Wonder what Im doing wrong.
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033914.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>


Re: Karaf does not startup on Windows 7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Sapna,

IMHO, the problem is on your system (permission, user, whatever).

I'm not able to reproduce your issue on my Win7 VM.

Maybe we can have a session together (Skype or whatever) allowing me to 
check your system.

Regards
JB

On 07/01/2014 07:01 PM, SapnaB wrote:
> Hi JB, Achim,
>
> Iv installed Maven now and tried to start karaf 2.3.2. Same error. Here are
> snippets from the cmd:
>
> C:\Users\sapbharg>mvn --version
> Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
> 2014-06-17T19:21:4
> 2+05:30)
> Maven home: C:\Program Files\Apache\apache-maven-3.2.2
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
> D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
> karaf.bat: Ignoring predefined value for KARAF_HOME
> Unable to update instance pid: Child instance started but no root registered
> in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
> D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1
>
> D:\OSGi\apache-karaf-2.3.2>echo %Path%
> ;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;*C:\Program
> Files\Java\jdk1.6.0_24\bin*;C:\Program
> Files\TortoiseSVN\bin;D:\Softwares\ANT\apache-ant-1.9.2\bin;C:\Program
> Files\Apache\apache-maven-3.2.2\bin
>
> D:\OSGi\apache-karaf-2.3.2>echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.6.0_24
>
> Wonder what Im doing wrong.
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033914.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf does not startup on Windows 7

Posted by SapnaB <sa...@gmail.com>.
Hi JB, Achim,

Iv installed Maven now and tried to start karaf 2.3.2. Same error. Here are
snippets from the cmd:

C:\Users\sapbharg>mvn --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T19:21:4
2+05:30)
Maven home: C:\Program Files\Apache\apache-maven-3.2.2
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_24\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
karaf.bat: Ignoring predefined value for KARAF_HOME
Unable to update instance pid: Child instance started but no root registered
in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
Karaf can't startup, make sure the log file can be accessed and written by
the user starting Karaf :
D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1

D:\OSGi\apache-karaf-2.3.2>echo %Path%
;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;*C:\Program
Files\Java\jdk1.6.0_24\bin*;C:\Program
Files\TortoiseSVN\bin;D:\Softwares\ANT\apache-ant-1.9.2\bin;C:\Program
Files\Apache\apache-maven-3.2.2\bin

D:\OSGi\apache-karaf-2.3.2>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_24

Wonder what Im doing wrong.

Regards,
Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033914.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Are you sure about the JAVA_HOME ?

I tried on my Windows7 VM and I have no problem.

Regards
JB

On 01/07/2014 13:01, SapnaB wrote:
> Hi Achim,
>
> I tried running as an admin.. No luck, gives me the same error. Is Maven a
> prerequisite? I havent installed that in my system. What does the error
> highlighted below mean? Looks to me to be reference to maven repository.
>
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
> *D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1*
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033909.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf does not startup on Windows 7

Posted by SapnaB <sa...@gmail.com>.
Hi Achim,

I tried running as an admin.. No luck, gives me the same error. Is Maven a
prerequisite? I havent installed that in my system. What does the error
highlighted below mean? Looks to me to be reference to maven repository. 
 
Karaf can't startup, make sure the log file can be accessed and written by
the user starting Karaf :
*D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.felix.framework\4.2.1*

Regards,
Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033909.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

Posted by Achim Nierbeck <bc...@googlemail.com>.
Especially this sentence:

Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :


sounds fishy to me. Do you have the right access rights in the file-system?
Or do you try to run it as another user?
Maybe a "run-as Administrator" helps.

regards, Achim




2014-07-01 12:26 GMT+02:00 SapnaB <sa...@gmail.com>:

> Hi Christoph,
>
> I tried with Sun JDK 1.7 by setting the JAVA_HOME to C:\Program
> Files\Java\jdk1.7.0_60.
>
> I still get the same error:
> D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
> karaf.bat: Ignoring predefined value for KARAF_HOME
> Unable to update instance pid: Child instance started but no root
> registered
> in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
> Karaf can't startup, make sure the log file can be accessed and written by
> the user starting Karaf :
> D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.
> felix.framework\4.2.1
>
> Do you want me to specifically try with another java 6 version?
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033907.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Karaf does not startup on Windows 7

Posted by SapnaB <sa...@gmail.com>.
Hi Christoph,

I tried with Sun JDK 1.7 by setting the JAVA_HOME to C:\Program
Files\Java\jdk1.7.0_60.

I still get the same error:
D:\OSGi\apache-karaf-2.3.2>bin\karaf.bat
karaf.bat: Ignoring predefined value for KARAF_HOME
Unable to update instance pid: Child instance started but no root registered
in D:\OSGi\apache-karaf-2.3.2\instances\instance.properties
Karaf can't startup, make sure the log file can be accessed and written by
the user starting Karaf :
D:\OSGi\apache-karaf-2.3.2\mvn:org.apache.felix\org.apache.
felix.framework\4.2.1

Do you want me to specifically try with another java 6 version?

Regards,
Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033907.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

Posted by Christoph Gritschenberger <ch...@gmail.com>.
Is your application tied to this exact java-version or can you try at
least a more recent version of Java6 [1]?

[1]
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

On 01/07/14 10:42, SapnaB wrote:
> Hi Christoph,
> 
> Im using JDK 1.6. JAVA_HOME is set to : C:\Program Files\Java\jdk1.6.0_24
> 
> Regards,
> Sapna
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033902.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
> 



Re: Karaf does not startup on Windows 7

Posted by SapnaB <sa...@gmail.com>.
Sorry, I should have mentioned that too.
Yes its Sun/Oracle JDK.

Regards,
Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033906.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Is it a Sun/Oracle JDK ?

Regards
JB

On 01/07/2014 10:42, SapnaB wrote:
> Hi Christoph,
>
> Im using JDK 1.6. JAVA_HOME is set to : C:\Program Files\Java\jdk1.6.0_24
>
> Regards,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033902.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf does not startup on Windows 7

Posted by SapnaB <sa...@gmail.com>.
Hi Christoph,

Im using JDK 1.6. JAVA_HOME is set to : C:\Program Files\Java\jdk1.6.0_24

Regards,
Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033902.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.