Here is the exception stack trace I'm getting:

 

java.util.zip.ZipException: error in opening zip file

      at java.util.zip.ZipFile.open(Native Method)

      at java.util.zip.ZipFile.<init>(Unknown Source)

      at java.util.jar.JarFile.<init>(Unknown Source)

ERROR: Auto-properties install. (org.osgi.framework.BundleException: Unable
to cache bundle: file:c:/Development/OGSi/OSGiTestBundle)

      at java.util.jar.JarFile.<init>(Unknown Source)

      at org.apache.felix.moduleloader.JarFileX.<init>(JarFileX.java:36)

      at
org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:435)

      at
org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRevision.j
ava:96)

      at
org.apache.felix.framework.cache.JarRevision.preprocessBundleJar(JarRevision
.java:353)

      at
org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:307
)

      at
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:80)DEBU
G: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0

DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0

DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0

DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0

DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0

DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0

DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0

done

-> 

      at
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:58)

      at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(Bu
ndleArchive.java:1086)

      at
org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.java:708
)

      at
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:148
)

      at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:149)

      at org.apache.felix.framework.Felix.installBundle(Felix.java:1770)

      at org.apache.felix.framework.Felix.installBundle(Felix.java:1730)

      at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:2938)

      at org.apache.felix.framework.Felix.start(Felix.java:471)

      at org.apache.felix.framework.Felix.start(Felix.java:205)

      at example.LaunchingTest.main(LaunchingTest.java:49)

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Peter Neubauer
Sent: Tuesday, April 10, 2007 12:38 PM
To: felix-dev@incubator.apache.org
Subject: Re: Must a bundle be in a Jar file?

 

Asaf,

it is possible to have the classfiles just in a folder inside the

bundle. in that case, just add an entry to that folder to the bundle

classpath.

 

structure:

 

mybundle

  META-INF

      MANIFEST.MF

  target

     classes

         test

            MyClass.class

 

Would require an entry like

 

Bundle-ClassPath: target/classes

 

In the MANIFEST.MF.

 

/peter

 

On 4/10/07, asaf.lahav <[EMAIL PROTECTED]> wrote:

> It would be easier to debug a bundle if it wouldn't be required to be
closed

> as a jar file.

> 

> Is it possible to create a bundle from class files that are not in a *.jar

> file?

> 

> 

> 

> 

> 

> 

> 

> 

Reply via email to