简体   繁体   中英

deploying osgi war bundle

I have deployed a standard war file as an osgi bundle into equinox using bnd to create a war bundle. Whilst it deploys ok and I can run the app, I cannot see any images or css files. I have deployed catalina-start as an osgi bundle and am using spring-web-extender as the bridge. The image/css files are located at the root of the war file

root
|_images
|_css
|_META-INF
|_WEB-INF

I have seen others deploy images and css files in fragment bundles, but I would have thought this should just work.

Any help appreciated.

As alternative, you can try Eclipse Jetty Web engine 7.x [1] that was redesigned to support OSGi Web Application Bundles (OSGi Enterprise 4.2:128). I use Jetty and do not have any problems with WAR static resources (images, scripts etc.)

[1] - http://eclipse.org/jetty/

Regards, Dmytro

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM