Re: java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-10-03 Thread bocamel
To make the maven dependencies independent of the user/service account running the Karaf service, one can configure a fixed location for local maven repository in /etc/org.ops4j.pax.url.mvn.cfg under org.ops4j.pax.url.mvn.repositories =... -- View this message in context: http://karaf.922171.n3

Re: java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-10-03 Thread petertirrell
Sorry to hijack this, but I'm getting the exact same problem and am struggling to work through how to fix it. I'm in the same boat - I'm installed Karaf locally and can run it adhoc without a problem when I run it as myself. I'm trying to set it up on a test server to run under a service account.

Re: java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-07-14 Thread bocamel
Thanks Scott and JB! It was exactly a permission issue. I deleted the data folder and started karaf as service first, everything worked now! -- View this message in context: http://karaf.922171.n3.nabble.com/java-io-IOException-Pipe-closed-BUT-only-when-running-as-a-Windows-service-tp4034208

Re: java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-07-14 Thread Jean-Baptiste Onofré
Hi, Careful, the service wrapper runs Karaf as administrator (by default, or you have to set RUN_AS_USER). So, if you started Karaf with another user, you may have permission issue. Can you check if it's not a mix user problem (stop the service, remove the data folder, and start the service) ?

Re: java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-07-14 Thread Kevin Carr
I have had issues with win7 if I start under my user and then run as service. It was due to permissions. I fixed it by cleaning up the data folder and then running as service first. On Jul 14, 2014 8:27 AM, "bocamel" wrote: > I can run my application successfully in karaf under command line. B

java.io.IOException: Pipe closed BUT only when running as a Windows service

2014-07-14 Thread bocamel
I can run my application successfully in karaf under command line. But if I run karaf as a Windows service (using the service wrapper), the service cannot started successfully. It ran into an error when starting postgresql jdbc driver from the deploy folder. (I also got a similar problem with ja