Quantcast

Execute Karaf under Ubuntu 12.04

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Execute Karaf under Ubuntu 12.04

yahya_romdhane
This post was updated on .
Hello,

I developed an application using Karaf 3.0.1 and it works fine under Windows 7.

The application contains a bundle that will install the other bundles using BundleConstext.installBundle() method.

Under Ubuntu 12.04 i downloaded the Karaf 3.0.1 for Linux and when my bundle try to install the other bundles with the BundleConstext.installBundle() method i get an exception for all the bundles: for example for the bundle : serp-1.13.1.jar :


org.osgi.framework.BundleException: Unable to cache bundle: wrap:file://home/yahya/Desktop/apache-karaf-3.0.2/bundles/serp-1.13.1.jar
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2870)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)[org.apache.felix.framework-4.2.1.jar:]
        at com.team.app.startup.loader.BundlesLoader.doInBackground(BundlesLoader.java:106)[64:com.team.app.startup:1.0.0]
        at com.team.app.startup.loader.BundlesLoader.doInBackground(BundlesLoader.java:23)[64:com.team.app.startup:1.0.0]
        at javax.swing.SwingWorker$1.call(SwingWorker.java:296)[:1.7.0_67]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_67]
        at javax.swing.SwingWorker.run(SwingWorker.java:335)[:1.7.0_67]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_67]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_67]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
Caused by: java.net.UnknownHostException: home
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)[:1.7.0_67]
        at java.net.Socket.connect(Socket.java:579)[:1.7.0_67]
        at java.net.Socket.connect(Socket.java:528)[:1.7.0_67]
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:958)[:1.7.0_67]
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:918)[:1.7.0_67]
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1013)[:1.7.0_67]
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:999)[:1.7.0_67]
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)[:1.7.0_67]
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)[:1.7.0_67]
        at org.ops4j.net.URLUtils.prepareInputStream(URLUtils.java:134)[2:org.ops4j.pax.url.wrap:2.2.0]
        at org.ops4j.pax.url.wrap.internal.Connection.getInputStream(Connection.java:83)[2:org.ops4j.pax.url.wrap:2.2.0]
        at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.2.1.jar:]
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2866)[org.apache.felix.framework-4.2.1.jar:]



Do I need to make some other configuration to make my application working under Ubuntu?

Thank you in advance
Loading...