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. I did the service wrapper install and that seemed to work fine. In the Windows service settings I changed the Log On As settings to the service account I want to use. When I initially started it as the service it throws the exact same original error in this thread. I stopped the service, and deleted the data folder and started it up again and it worked...sort of. Except that I have a bunch of maven bundle dependencies that I have to reinstall every time I blow away the data file. So I stopped the service, opened a command prompt running as the service user the service runs as, and when I run karaf that way I'm *still* getting the 'bundle cannot be generated' error. Maybe my real question is what is the correct way to set up karaf to run on Windows as a service and have it run as a specific Windows account, and what all would that need permissions to? Should I have launched Karaf and done the initial servicewrapper setup all as the eventual user that everything would run under? And done the Maven bundle installs as that user, too? What is the "RUN_AS_USER" parameter that was referenced earlier? I'm thinking I misinterpreted a step somewhere along the way...thanks for any info! -- View this message in context: http://karaf.922171.n3.nabble.com/java-io-IOException-Pipe-closed-BUT-only-when-running-as-a-Windows-service-tp4034208p4035623.html Sent from the Karaf - User mailing list archive at Nabble.com.
