Hi
Am 17.11.2013 um 08:54 schrieb Oliver Zemann <[email protected]>: > Hi Felix > > Thanks but i did not get any updates regarding this on netbeans side, > thats why i ask again. > Any idea how to work around this to get it working? > I just "setup" a regular osgi bundle in netbeans. Would it help to > provide you the run.properties or any other file/config ? > > I have absolutly no idea how felix is configured in the pom.xml as i > never had to look at that. I am sorry, but I myself cannot help since I am not a user of NetBeans. Maybe others on this list ? > > There is no zip file afaik. Netbeans runs the .class files directly > from the maven target/classes folder. In this case, the exception is explainable: It looks like the fraemwork is trying to access your bundle as a packaged jar file and this jar file (its really a file with the extension .jar and not one with the extension .zip) does not exist. This is all, I myself can help with. Sorry. Others ? Regards Felix > > Regards, > Oli > > > Am 16.11.2013 22:30, schrieb Felix Meschberger: >> Hi Oliver >> >> Looks like you are running into the same problem as here: >> http://felix.markmail.org/thread/hompmwzwccdrfyz3 >> >> Maybe, again, the ZIP file is missing ? >> >> Regards Felix >> >> — Felix Meschberger | Principal Scientist | Adobe >> >> >> >> Am 16.11.2013 um 22:37 schrieb Oliver Zemann >> <[email protected]>: >> >>> Hi >>> >>> I dont know if this is related to Netbeans or to Felix, so i >>> thought lets mail it to the mailing list and see what others say >>> :) >>> >>> I have a project called SoundBox which also has a API Bundle. It >>> worked a couple of months ago, i dont know what i changed. But >>> as soon as i create a new OSGi Bundle in Netbeans and add the >>> API, i can not start the bundle. I get an exception from >>> Felix(?): >>> >>> main: [propertyfile] Creating new property file: >>> G:\data\code\soundbox\SoundBox\target\run.properties [java] >>> Auto-properties install: >>> file:/G:/data/code/soundbox/SoundBox-CoreLibrary/target/classes/ >>> (org.osgi.framework.BundleException: Unable to cache bundle: >>> file:/G:/data/code/soundbox/SoundBox-CoreLibrary/target/classes/ >>> - java.util.zip.ZipException: error in opening zip file) [java] >>> org.osgi.framework.BundleException: Unable to cache bundle: >>> file:/G:/data/code/soundbox/SoundBox-CoreLibrary/target/classes/ >>> [java] at >>> org.apache.felix.framework.Felix.installBundle(Felix.java:2870) >>> [java] at >>> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165) >>> >>> > [java] at >>> org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296) >>> >>> > [java] at >>> org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79) >>> >>> > [java] at org.apache.felix.main.Main.main(Main.java:292) >>> [java] Caused by: java.util.zip.ZipException: error in opening >>> zip file [java] at java.util.zip.ZipFile.open(Native Method) >>> [java] at java.util.zip.ZipFile.<init>(ZipFile.java:220) [java] >>> at java.util.zip.ZipFile.<init>(ZipFile.java:150) [java] at >>> java.util.zip.ZipFile.<init>(ZipFile.java:164) [java] at >>> org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:623) >>> >>> > [java] at >>> org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:185) >>> >>> > [java] at >>> org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:168) >>> >>> > [java] at >>> org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:71) >>> >>> > [java] at >>> org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:84) >>> >>> > [java] at >>> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878) >>> >>> > [java] at >>> org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550) >>> >>> > [java] at >>> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153) >>> >>> > [java] at >>> org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277) >>> >>> > [java] at >>> org.apache.felix.framework.Felix.installBundle(Felix.java:2866) >>> [java] ... 4 more [java] Auto-properties start: >>> file:/G:/data/code/soundbox/SoundBox-CoreLibrary/target/classes/ >>> (org.osgi.framework.BundleException: Unable to cache bundle: >>> file:/G:/data/code/soundbox/SoundBox-CoreLibrary/target/classes/ >>> - java.util.zip.ZipException: error in opening zip file) [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling SLF4J API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Jakarta Commons Logging API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Log4J API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Avalon Logger API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling JULI Logger API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling SLF4J API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Jakarta Commons Logging API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Log4J API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling Avalon Logger API support. >>> [java] >>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] >>> >>> > : Enabling JULI Logger API support. >>> >>> I just updated the API here: >>> https://github.com/olze/SoundBox-CoreLibrary.git, >>> >>> So if someone could try to check it out, create a new osgi bundle >>> with an Activator, add the API as dependency and start it. Then >>> the error should also be thrown. >>> >>> Regards, Oli >>> >>> --------------------------------------------------------------------- >>> >>> > To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

