2008/10/11 Stefano Kismet Lenzi <[EMAIL PROTECTED]> > Hi Stuart, > > I have added the a line with "--log=DEBUG" and I found out that the > classpath option is not applied, in fact the resulting command line > taken from the mvn max:run ouput is: > Start command line [[/usr/lib/jvm/java-6-openjdk//bin/java, > -Dfelix.config.properties=file:/home/kismet/Projects/ > isti.cnr.it/proximity/sail.driver.sad/runner//felix/config.ini, > -Dfelix.cache.dir=/home/kismet/Projects/ > isti.cnr.it/proximity/sail.driver.sad/runner/felix/cache, > > -Dorg.osgi.framework.bootdelegation=org.apache.commons.*,org.apache.log4j.*,com.martiansoftware.*,com.thoughtworks.*,edu.uci.ics.*, > -cp, /home/kismet/Projects/ > isti.cnr.it/proximity/sail.driver.sad/runner/bundles/org.apache.felix.org.apache.felix.main_1.2.1.jar > , > org.apache.felix.main.Main]] > > I wonder way that happens, could it be a problem with pax-runner > classpath option handling itself? In fact I have tried to run the > SNAPSHOT version of pax-runner from command line and if start it with > --log=DEBUG and --classpath=<something> I get a "Start command line" > with the wrong classpath. > > I further investigate and it seems that the classpath acquired by the > OptionResolverImpl class but it never copied to PlatformImpl which is > the class in charge of starting the new JVM. I have created a patch > which doesn't pass the TestSuite but it actually works (I have tested > by disabling the test in mvn). > > I hope that we can help you to fix the problem. >
I'm not up to speed on how pax-runner processes the various options for the platform builder, so I can't say if this is the "right" solution - will have to wait for Alin to take a look btw, if you've signed up on JIRA then you should automatically have commit rights, which means you could go ahead and commit it now (please also open a JIRA issue for the original problem, and use it in the commit message) at OPS4J we don't like patches - just commit directly, as everyone will get notified of the change (in diff form) and can act accordingly On Fri, Oct 10, 2008 at 17:55, Stuart McCulloch <[EMAIL PROTECTED]> wrote: > > 2008/10/10 Stefano Kismet Lenzi <[EMAIL PROTECTED]> > >> > >> Hi All, > >> > >> I was trying to add bootDelegation and classpath options to pax-runner > >> from the maven-pax-plugin. I have tried by adding this line in the > >> following plugin configuration: > >> <args>file:src/test/resources/pax.args</args> > >> and the file pax.args contains the following lines: > >> > >> > --bootDelegation=org.apache.commons.*,org.apache.log4j.*,com.martiansoftware.*,com.thoughtworks.*,edu.uci.ics.* > >> --classpath=src/test/resources/dependencies.jar > >> > >> (I have tried also with full-qualified-pathname but the result is the > >> same) > >> > >> When I lunch pax:run the plugin is able to let pax-runner start but my > >> bundle fail to load because either bootDelegation or the classpath is > >> not correct. > >> Do you have any suggestions? > > > > well, with the following line in src/test/resources/pax.args: > > > > --log=DEBUG > > > > and the following pom configuration: > > > > <plugin> > > <groupId>org.ops4j</groupId> > > <artifactId>maven-pax-plugin</artifactId> > > <configuration> > > <args>file:src/test/resources/pax.args</args> > > </configuration> > > </plugin> > > > > I can see debug output, so the file is reaching pax-runner... perhaps you > > could try > > with debug on to see why pax-runner doesn't seem to be applying these > > settings > > > >> > >> Ciao, > >> Stefano "Kismet" Lenzi > >> > >> _______________________________________________ > >> general mailing list > >> general@lists.ops4j.org > >> http://lists.ops4j.org/mailman/listinfo/general > > > > -- > > Cheers, Stuart > > > > _______________________________________________ > > general mailing list > > general@lists.ops4j.org > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > > -- Cheers, Stuart
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general