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
jamon-2.0.jar.) Any help would be greatly appreciated.
I am running Karaf 3.0.1 on Windows 7 professional (32bit) with Postgresql
9.3.
2014-07-14 09:16:08,276 | INFO | \karaf301/deploy | fileinstall
| 11 - org.apache.felix.fileinstall - 3.2.8 | Installed
E:\karaf301\deploy\postgresql-9.3-1100.jdbc41.jar
2014-07-14 09:16:08,326 | INFO | \karaf301/deploy | fileinstall
| 11 - org.apache.felix.fileinstall - 3.2.8 | Started bundle:
wrap:file:/E:/karaf301/deploy/postgresql-9.3-1100.jdbc41.jar$Bundle-SymbolicName=postgresql-9.3&Bundle-Version=1100.0.0.jdbc41
2014-07-14 09:16:09,277 | WARN | Thread-31 | BndUtils
| 3 - org.ops4j.pax.swissbox.bnd - 1.7.0 | Bundle cannot be generated
java.lang.Exception: Problem writing resource
org/postgresql/Driver$ConnectThread.class
at
aQute.bnd.osgi.Jar.writeResource(Jar.java:530)[2:biz.aQute.bndlib:2.2.0.20130927-173417]
at
aQute.bnd.osgi.Jar.write(Jar.java:307)[2:biz.aQute.bndlib:2.2.0.20130927-173417]
at
org.ops4j.pax.swissbox.bnd.BndUtils$1.run(BndUtils.java:194)[3:org.ops4j.pax.swissbox.bnd:1.7.0]
Caused by: java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(Unknown
Source)[:1.7.0_60]
at java.io.PipedInputStream.receive(Unknown Source)[:1.7.0_60]
at java.io.PipedOutputStream.write(Unknown Source)[:1.7.0_60]
at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)[:1.7.0_60]
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)[:1.7.0_60]
at
aQute.bnd.osgi.Jar.writeResource(Jar.java:527)[2:biz.aQute.bndlib:2.2.0.20130927-173417]
... 2 more
--
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.html
Sent from the Karaf - User mailing list archive at Nabble.com.