How to start Jetty as a OSGI bundle with JSP support? -


i'm running jetty 9.2 osgi bundle using felix framework.in command prompt,apache felix started like

java -djetty.home=c:/osgijars/jetty-osgi-boot-9.2.0.m0/jettyhome -jar bin/felix.jar 

my jetty home following

enter image description here

once felix framework started, in command prompt can see list of bundles loaded in active state.

enter image description here

now, i'm trying load sample web app(jsp + servlets) osgi bundle.i'm getting error (in cmd prompt)

g! 2014-06-27 11:56:03.129:info:/webapp:qtp31392457-30: no jsp support.  check jsp jars in lib/jsp , jsp option has been specified start.jar 

i know jsp support configured, need set options while starting jetty server jetty.options= server,jsp.

so,i've tried while setting jetty home like

java -djetty.home=c:/osgijars/jetty-osgi-boot-9.2.0.m0/jettyhome -djetty.options=server,jsp -jar bin/felix.jar 

but still getting same error. kindly suggest me how configure jsp in case..?

never tried run jetty standalone this, though there 2 frameworks osgi httpservice support , more. these ops4j pax web , felix httpservice, i'm kind of biased, take @ pax web. provide of need out of box, , tested. uses jetty underlying server. there lot of samples available going it. or if needed integration tests show how use it.
pax web modular in spirit of osgi, if need httpservice, you'll use bundles needed pax-web-api, pax-web-spi, pax-web-runtime , pax-web-jetty-bundle (containing jetty bundles already) or if prefered pax-web-jetty + jetty bundles. if want use jsps add supporting bundle of (that pax-web-jsp), , maybe 1 adding whiteboard support , you're set (pax-web-extender-whiteboard). if needed can work wars/wabs (pax-web-extender-war).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -