Just found a "felix.xml" in src/main/assembly/ with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>all</id>
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>modules</outputDirectory>
</dependencySet>
</dependencySets>
<files>
<file>
<source>${project.build.directory}/${project.build.finalName}.jar</source>
<outputDirectory>modules</outputDirectory>
</file>
<file>
<source>${project.build.directory}/felix.jar</source>
<outputDirectory>bin</outputDirectory>
</file>
<file>
<source>${project.build.directory}/config.properties</source>
<outputDirectory>conf</outputDirectory>
</file>
</files>
</assembly>
I did not find _any_ documentation about this. Can someone tell me
what this is or how to configure that? I dont know if this is more a
felix related part or some magic that happens inside netbeans. But i
guess this could be a part of my problem.
Regards,
Oli
Am 17.11.2013 03:04, schrieb Felix Meschberger:
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]