I just realze that you used the --vmptions to set the memory. And that
is not going to work as --vmOptions sets the memory size for the
started framework (another Process) and you actually need to set it
for pax runner process since the war'ing is done before the framework
is started. So, you have to set the env variable JAVA_OPTS before
starting pax runner as:

export JAVA_OPTS=-Xmx768m
pax-run ....

You may want to write a wrapper script.

Alin

On Mon, Mar 10, 2008 at 4:57 AM, Ulrik Sandberg
<[EMAIL PROTECTED]> wrote:
> Absolutely, my goal is a web app that imports its dependencies from other
> bundles, but I have to get past my basic problems first.
>
> The next step is to build my own war and make it run in pax war extender.
> For some reason your 2.5-based war works and my 2.5.2-based war has memory
> problems. I really must know why before I move on. If size of the war is the
> problem, how can I increase the required amount of memory? Surely 768 MB
> must be enough? Or is there another JVM than pax-run itself that needs to be
> increased?
>
>
>
>
> On Sun, Mar 9, 2008 at 5:47 AM, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:
> > 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
> >
> >
>
>
>
> --
> 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

Reply via email to