ops4j / org.ops4j.pax.swissbox

Other
10 stars 12 forks source link

Can not create bundle from war [PAXSB-34] #47

Closed ops4j-issues closed 12 years ago

ops4j-issues commented 14 years ago

Felix Hallmann created PAXSB-34

I've a WAR created with Netbeans which is pretty huge (29.027.808 bytes). When trying to transform the WAR into a bundle I get the following error:

-> start warref:file:bundle/ismsapp_suite.properties
Exception in thread "Thread-42" java.lang.RuntimeException: Bundle cannot be generated
at org.ops4j.pax.swissbox.bnd.BndUtils$1.run(BndUtils.java:171)
Caused by: java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
at java.io.PipedInputStream.receive(PipedInputStream.java:185)
at java.io.PipedOutputStream.write(PipedOutputStream.java:105)
at java.util.zip.ZipOutputStream.writeInt(ZipOutputStream.java:445)
at java.util.zip.ZipOutputStream.writeCEN(ZipOutputStream.java:376)
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:309)
at aQute.lib.osgi.Jar.write(Jar.java:214)
at org.ops4j.pax.swissbox.bnd.BndUtils$1.run(BndUtils.java:167)

My instructions file: bundle/ismsapp_suite.properties
WAR-URL=war:file:bundle/ismsapp_suite.war
Bundle-SymbolicName=ISMSUI
WebApp-Context=ismsui
Bundle-ClassPath=.,WebContent,WebContent/branding,WebContent/netbeans,WebContent/WEB_INF/lib
Import-Package=javax.,org.xml.,org.w3c.*

The output from the log:
2010-02-25 10:56:01,769 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:109 -> Creating bundle for file:bundle/ismsapp_suite.war
2010-02-25 10:56:01,769 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:110 -> Overwrite mode: KEEP
2010-02-25 10:56:01,769 TRACE org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:111 -> Using instructions

{Bundle-ClassPath=.,WEB-INF/classes,WEB-INF/lib/jnlp-servlet.jar, Export-Package=!, Import-Package=javax.; resolution:=optional,org.xml.; resolution:=optional,org.w3c.; resolution:=optional, -removeheaders=Private-Package,Ignore-Package, WAR-URL=file:bundle/ismsapp_suite.war}

2010-02-25 10:56:07,957 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:109 -> Creating bundle for file:bundle/ismsapp_suite.war
2010-02-25 10:56:07,957 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:110 -> Overwrite mode: KEEP
2010-02-25 10:56:07,957 TRACE org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:111 -> Using instructions

{Bundle-ClassPath=.,WEB-INF/classes,WEB-INF/lib/jnlp-servlet.jar, Export-Package=!, Import-Package=javax.; resolution:=optional,org.xml.; resolution:=optional,org.w3c.; resolution:=optional, -removeheaders=Private-Package,Ignore-Package, WAR-URL=file:bundle/ismsapp_suite.war}

2010-02-25 10:56:10,519 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:109 -> Creating bundle for war:file:bundle/ismsapp_suite.war
2010-02-25 10:56:10,519 DEBUG org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:110 -> Overwrite mode: KEEP
2010-02-25 10:56:10,519 TRACE org.ops4j.pax.swissbox.bnd.BndUtils.createBundle BndUtils.java:111 -> Using instructions

{Bundle-SymbolicName=ISMSUI, WebApp-Context=ismsui, Import-Package=javax.,org.xml.,org.w3c.*, Bundle-ClassPath=WEB-INF/classes,.,WebContent,WebContent/branding,WebContent/netbeans,WebContent/WEB_INF/lib,WEB-INF/lib/jnlp-servlet.jar, WAR-URL=war:file:bundle/ismsapp_suite.war}


Votes: 0, Watches: 0

ops4j-issues commented 12 years ago

Harald Wellmann commented

A long time ago, and hard to reproduce.

Feel free to provide a test case and reopen.