On 22/11/2007, David Donohue <[EMAIL PROTECTED]> wrote: > > Hello, and thanks for Pax!
on behalf of Niclas, Peter, Edward, Alin and many others - you're welcome :) Fascinating project, this Pax. I am new to Maven and Pax. I have > developed a prototype app using Equinox OSGi. I found developing OSGi > in Eclipse "the Eclipse/Equinox way" to be frustrating. Many manual > tasks, numerous class path systems, confusing UI restrictions. Maven > seems to be just what is > needed for OSGi. well, Maven can have its moments too - but we try to hide that away from you with the Pax tools... (btw, the online Maven books from sonatype, etc. are well worth reading if you are new to Maven) I have read through most of the Pax site documentation, and I have > created a Pax project, added an empty bundle, then imported into > Eclipse. My goal is that I would like to end up with a functional > standalone Pax-powered Wicket + Jetty server, running in Equinox OSGi. > Is that possible? certainly On how to install Pax + Wicket, the documentation here > http://wiki.ops4j.org/confluence/display/ops4j/Pax+Wicket > says only "See the Installation document". Not sure what is meant. there's more documentation (generated using maven) available at: http://www.ops4j.org/projects/pax/wicket which we should promote more (as it's a bit more up-to-date) and feedback/comments to help improve it is always welcome! So my specific questions: > What steps do I have to take to add working Jetty + Pax Wicket Service > in my app? well, you can use the pax-import-bundle command to add the Pax-Wicket bundle: pax-import-bundle -g org.ops4j.pax.wicket -a service -v 0.5.1 similarly the Pax-Logging bundles: pax-import-bundle -g org.ops4j.pax.logging -a pax-logging-api -v 0.9.6 pax-import-bundle -g org.ops4j.pax.logging -a pax-logging-service -v 0.9.6 and the Pax-Web bundle (provides the HTTP service using Jetty): pax-import-bundle -g org.ops4j.pax.web -a pax-web-service -v 0.2.1 you'll also want a wrapped version of the servlet API: pax-wrap-jar -g javax.servlet -a servlet-api -v 2.5 that should get you a basic Pax-Wicket deployment (now that we have support for "cloning" applications, it should be possible to provide a proper Pax-Wicket template, along with example content bundles - however, I can't say for sure when such a template would be available...) How do I write a bundle that makes use of the Pax Wicket services and > begins to build a plug-innable web application? there's a sample application in subversion: https://scm.ops4j.org/repos/ops4j/projects/pax/wicket/samples/department-store and various people have contributed Eclipse target platforms for Pax-Wicket, etc... What is the preferred way to package and deploy my project into a > runable, distributable application? if you build your project with Pax-Construct you can deploy it to a remote repository like any other Maven project - you could then ship the deployment POM created from 'pax:provision' (see target/deployment/pom.xml) along with the Pax-Runner binary jar people could then use the POM with Pax-Runner to deploy the application - alternatively you could assemble the bundles into a zip with Pax-Runner, which would limit the downloading Is there a way that I can use the plugin.xml file to declare extension > points and extensions, as I did in my Equinox prototype app? yes - either put the plugin.xml in the root of your bundle project and add: <build> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>.</directory> <includes> <include>plugin.xml</include> </includes> </resource> </resources> <!-- etc... --> </build> to the bundle pom, or alternatively put the plugin.xml under "src/main/resources" using either of these approaches, it should get copied to the root of your bundle during packaging, where it will be seen by Eclipse and acted upon at runtime Thanks so much, HTH David > > _______________________________________________ > 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