PXA270與OSGi (JSP Support)
下載equinox OSGi framework : http://download.eclipse.org/equinox/
將equinox解開之後在plugin資料夾中加入
(1)org.eclipse.equinox.http.helper
(2)org.eclipse.equinox.jsp.jstl
(3)org.eclipse.equinox.jsp.example
三個Bundle之後重新打包成tar檔。
!注意! 這三個Bundle必須以CVS方式從Equinox Incubator取得
將包好的tar檔複製到PXA270上/tmp/cf_card中,解開之後執行
#jamvm -jar /tmp/cf_card/eclipse/plugin/org/eclipse/osgi_"bundle version".jar -console
畫面範例如下:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900
使用以下指令安裝bundle
osgi>install file:"bundle name".jar
需安裝的bundle與完成畫面如下:
osgi>ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900
2 ACTIVE org.eclipse.equinox.http.jetty_1.1.0.v20080425
3 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
4 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
5 ACTIVE org.mortbay.jetty_5.1.14.v200806031611
6 ACTIVE javax.servlet_2.4.0.v200806031604
7 ACTIVE javax.servlet.jsp_2.0.0.v200806031607
8 ACTIVE org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
10 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203
11 ACTIVE org.eclipse.equinox.ds_1.0.0.v20080427-0830
12 ACTIVE org.eclipse.osgi.util_3.1.300.v20080303
13 ACTIVE org.eclipse.equinox.util_1.0.0.v20080414
14 ACTIVE org.eclipse.equinox.log_1.1.0.v20080414
15 ACTIVE org.apache.commons.el_1.0.0.v200806031608
16 ACTIVE org.apache.jasper_5.5.17.v200806031609
17 ACTIVE org.eclipse.equinox.jsp.jasper_1.0.100.v20080427-0830
18 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
19 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950
20 ACTIVE org.eclipse.equinox.jsp.jasper.registry_1.0.0.v20080427-0830
22 ACTIVE org.eclipse.equinox.http.helper_1.0.0.qualifier
24 ACTIVE org.eclipse.equinox.jsp.jstl_1.0.0
25 ACTIVE org.eclipse.equinox.jsp.examples_1.0.0
26 ACTIVE org.eclipse.equinox.jsp.jstl.examples_1.0.0
osgi>
將所有bundle啟動為active狀態,並開啟瀏覽器瀏覽http://192.168.1.12/jsp-examples/index.html
沒有留言:
張貼留言