I used 2.5. I will try out 2.5 and let you know. Anyhow that's just an example. My advice will be that if you are going to build a war for OSGi the dependencies will have to be outside the war file, installed as separate bundle and imported into your war bundle. This way you can share them between your war's. And in that case the war file becomes smaller so i ma not have the exception.
Alin On Sun, Mar 9, 2008 at 6:08 AM, Ulrik Sandberg <[EMAIL PROTECTED]> wrote: > Your war works, but the one I build from > spring-framework-2.5.2-with-dependencies.zip fails. I have Leopard too. > > There are quite a few differences between the wars, which indicates that you > perhaps used a different version of spring. If so, can you recreate the war > from 2.5.2 and make it available again? > > > > > On Sat, Mar 8, 2008 at 9:33 PM, Alin Dreghiciu <[EMAIL PROTECTED]> wrote: > > I really do not know what to say. You are now the second user that ran > > into problems (from the ones that I know). The other user had > > "java.lang.StackOverflowError". > > The bad part is that I cannot duplicate it (using max osx leopard). > > Works all the time and I did this quite some number of times. > > Seems like bnd tool (the one used also by maven bundle plugin) has > > some issues with large jars as petclinic one. > > Can you try to do run using this spring petclnic war: > > > https://scm.ops4j.org/repos/ops4j/laboratory/users/adreghiciu/petclinic.war > > It should not make any difference but maybe worth trying. It is a > > petclinic war build by me a couple of days ago. So, just place it in > > the folder you start pax runner from and use the sam pax-run command. > > > > Thanx, > > Alin > > > > > > > > > > On Sun, Mar 9, 2008 at 4:09 AM, Ulrik Sandberg <[EMAIL PROTECTED]> > wrote: > > > I tried to get the Spring petclinic to run according to instructions, > but > > > end up with an OutOfMemoryError seemingly regardless of what heap size I > > > specify: > > > > > > $ pax-run "--vmOptions=-Xmx768m" > > > > scan-file:jar:mvn:org.ops4j.pax.web-extender.samples/provision\!/spring-petclinic-2.5-wrap.bundles > > > ______ ________ __ __ > > > / __ / / __ / / / / / > > > / ___/ / __ / _\ \ _/ > > > / / / / / / / _\ \ > > > /__/ /__/ /__/ /_/ /_/ > > > > > > Pax Runner from OPS4J - http://www.ops4j.org > > > -------------------------------------------- > > > > > > -> Using config [classpath:META-INF/runner.properties] > > > -> Provision from > > > > [scan-file:jar:mvn:org.ops4j.pax.web-extender.samples/provision!/spring-petclinic-2.5-wrap.bundles] > > > -> Installing bundle > > > > [{location=mvn:org.ops4j.pax.logging/pax-logging-api,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Installing bundle > > > > [{location=mvn:org.ops4j.pax.logging/pax-logging-service,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Installing bundle > > > > [{location=mvn:org.ops4j.pax.web/pax-web-service,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Installing bundle > > > > [{location=mvn:org.ops4j.pax.web/pax-web-jsp,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Installing bundle > > > > [{location=mvn:org.ops4j.pax.web-extender/pax-web-ex-war,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Installing bundle > > > > [{location=wrap:file:petclinic.war,jar:mvn:org.ops4j.pax.web-extender.samples/provision!/spring-petclinic-2.5.bnd,startlevel=null,shouldStart=true,shouldUpdate=false}] > > > -> Downloading bundles... > > > > > > > ___e:petclinic.war,jar:mvn:org.ops4j.pax.web-extender.samples/provision!/spring-petclinic-2.5.bnd > > > : connecting... > > > / / > > > / / Ops, there has been a problem! > > > / / > > > /__/ > > > ___ > > > /__/ > > > > > > -> java.lang.OutOfMemoryError: Java heap space > > > java.lang.OutOfMemoryError: Java heap space > > > at > aQute.lib.osgi.EmbeddedResource.collect(EmbeddedResource.java:53) > > > at aQute.lib.osgi.EmbeddedResource.collect(EmbeddedResource.java:58) > > > at > aQute.lib.osgi.EmbeddedResource.collect(EmbeddedResource.java:58) > > > at aQute.lib.osgi.EmbeddedResource.collect(EmbeddedResource.java:58) > > > at > aQute.lib.osgi.EmbeddedResource.collect(EmbeddedResource.java:58) > > > ... etc > > > > > > > > > -- > > > Ulrik > > > _______________________________________________ > > > general mailing list > > > [email protected] > > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > > > _______________________________________________ > > general mailing list > > [email protected] > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > -- > Ulrik > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > > _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
