OSGI打安装包步骤(底包制作)

 相关资源下载

equinox-SDK-LunaSR2  : https://pan.baidu.com/s/1xOzZZ3_VAuQJ3Zfp4W8Yyw 提取码: gjip 

gemini-web-3.0.4.RELEASE  :链接: https://pan.baidu.com/s/1A1RPOqCHbW-CcgFtR2dxCw 提取码: x1ab 

config.ini :https://pan.baidu.com/s/15JxHOHf0AyZaLKPJUkpeXA 提取码: bujz 

最终产品底包:链接: https://pan.baidu.com/s/15JxHOHf0AyZaLKPJUkpeXA 提取码: bujz 

1.1. 目录结构创建

1、新建KSZSAServer目录,作为产品包低包根目录;

2、在根目录下,新建configuration文件夹,作为osgi配置目录;

3、新建plugins目录,存放osgi相关依赖包;

4、把org.eclipse.osgi_3.10.2.v20150203-1939.jar放入根目录,osgi的启动入口;

5、把the Equinox Console包,包内容见下图,放入plugins目录

6、把gem-web相关的依赖包加入plugins目录

7、打war包,放入plugins目录下

如何打war包,参照https://www.cnblogs.com/dyh004/p/10642922.html相关章节

 

8、把config.ini加入到configration目录下

config.ini下载地址:链接: https://pan.baidu.com/s/1Orlej7dXr6c_R5b_pWF8LA 提取码: z6eq 复制这段内容后打开百度网盘手机App,操作更方便哦

osgi.bundles=dep/com.springsource.javax.activation-1.1.1.jar,\
 dep/javax.annotation-1.2.0.v201401042248.jar,\
 dep/javax.ejb-3.1.1.v201204261316.jar,\
 dep/javax.el-3.0.0.20170128.jar,\
 dep/javax.mail-1.4.0.v201005080615.jar,\
 dep/javax.persistence-2.1.0.v201304241213.jar,\
 dep/javax.security.auth.message-1.1.0.20170128.jar,\
 dep/javax.servlet-3.1.0.20170128.jar,\
 dep/javax.servlet.jsp-2.3.0.20170128.jar,\
 dep/javax.transaction-1.1.0.v201205091237.jar,\
 dep/javax.websocket-1.1.0.20170128.jar,\
 dep/javax.xml.rpc-1.1.0.v201005080400.jar,\
 dep/javax.xml.soap-1.3.0.v201105210645.jar,\
 dep/org.apache.catalina-8.5.11.jar,\
 dep/org.apache.catalina.ha-8.5.11.jar,\
 dep/org.apache.catalina.tribes-8.5.11.jar,\
 dep/org.apache.coyote-8.5.11.jar,\
 dep/org.apache.el-8.5.11.jar,\
 dep/org.apache.jasper-8.5.11.jar,\
 dep/org.apache.juli-8.5.11.jar,\
 dep/org.apache.tomcat.api-8.5.11.jar,\
 dep/org.apache.tomcat.jni-8.5.11.jar,\
 dep/org.apache.tomcat.util-8.5.11.jar,\
 dep/org.apache.tomcat.util.scan-8.5.11.jar,\
 dep/org.apache.tomcat.websocket-8.5.11.jar,\
 dep/org.eclipse.jdt.core.compiler.batch-3.11.0.v20150602-1242,\
 dep/org.eclipse.virgo.util.common-3.6.3.RELEASE.jar,\
 dep/org.eclipse.virgo.util.io-3.6.3.RELEASE.jar,\
 dep/org.eclipse.virgo.util.math-3.6.3.RELEASE.jar,\
 dep/org.eclipse.virgo.util.osgi-3.6.3.RELEASE.jar,\
 dep/org.eclipse.virgo.util.osgi.manifest-3.6.3.RELEASE.jar,\
 dep/org.eclipse.virgo.util.parser.manifest-3.6.3.RELEASE.jar,\
 dep/org.slf4j.api-1.7.2.v20121108-1250.jar,\
 dep/org.slf4j.nop-1.7.2.v201212060727.jar,\
 org.eclipse.gemini.web.core-3.0.0.BUILD-20170129123428.jar@start,\
 org.eclipse.gemini.web.tomcat-3.0.0.BUILD-20170129123428.jar@start,\
 org.eclipse.gemini.web.jaspic.fragment-3.0.0.BUILD-20170129123428.jar,\
 org.eclipse.gemini.web.extender-3.0.0.BUILD-20170129123428.jar@start,\
 org.apache.felix.gogo.command_0.10.0.v201209301215.jar@start,\
 org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar@start,\
 org.apache.felix.gogo.shell_0.10.0.v201212101605.jar@start,\
 org.eclipse.equinox.console_1.1.0.v20140131-1639.jar@start
eclipse.ignoreApp=true

修改config.ini内容,改路径、改依赖包的版本号,把war包添加到里面。修改后的内容如下

osgi.bundles=plugins/com.springsource.javax.activation-1.1.1.jar,\
 plugins/javax.annotation-1.2.0.v201401042248.jar,\
 plugins/javax.ejb-3.1.1.v201204261316.jar,\
 plugins/javax.el-3.0.0.20180730.jar,\
 plugins/javax.mail-1.4.0.v201005080615.jar,\
 plugins/javax.persistence-2.1.0.v201304241213.jar,\
 plugins/javax.security.auth.message-1.1.0.20180730.jar,\
 plugins/javax.servlet-3.1.0.20180730.jar,\
 plugins/javax.servlet.jsp-2.3.0.20180730.jar,\
 plugins/javax.transaction-1.1.0.v201205091237.jar,\
 plugins/javax.websocket-1.1.0.20180730.jar,\
 plugins/javax.xml.rpc-1.1.0.v201005080400.jar,\
 plugins/javax.xml.soap-1.3.0.v201105210645.jar,\
 plugins/org.apache.catalina-8.5.35.jar,\
 plugins/org.apache.catalina.ha-8.5.35.jar,\
 plugins/org.apache.catalina.tribes-8.5.35.jar,\
 plugins/org.apache.coyote-8.5.35.jar,\
 plugins/org.apache.el-8.5.35.jar,\
 plugins/org.apache.jasper-8.5.35.jar,\
 plugins/org.apache.juli-8.5.35.jar,\
 plugins/org.apache.tomcat.api-8.5.35.jar,\
 plugins/org.apache.tomcat.jni-8.5.35.jar,\
 plugins/org.apache.tomcat.util-8.5.35.jar,\
 plugins/org.apache.tomcat.util.scan-8.5.35.jar,\
 plugins/org.apache.tomcat.websocket-8.5.35.jar,\
 plugins/org.eclipse.jdt.core.compiler.batch-3.12.3.v20170228-1205,\
 plugins/org.eclipse.virgo.util.common-3.6.3.RELEASE.jar,\
 plugins/org.eclipse.virgo.util.io-3.6.3.RELEASE.jar,\
 plugins/org.eclipse.virgo.util.math-3.6.3.RELEASE.jar,\
 plugins/org.eclipse.virgo.util.osgi-3.6.3.RELEASE.jar,\
 plugins/org.eclipse.virgo.util.osgi.manifest-3.6.3.RELEASE.jar,\
 plugins/org.eclipse.virgo.util.parser.manifest-3.6.3.RELEASE.jar,\
 plugins/org.slf4j.api-1.7.2.v20121108-1250.jar,\
 plugins/org.slf4j.nop-1.7.2.v201212060727.jar,\
 plugins/org.eclipse.gemini.web.core-3.0.4.RELEASE.jar@start,\
 plugins/org.eclipse.gemini.web.tomcat-3.0.4.RELEASE.jar@start,\
 plugins/org.eclipse.gemini.web.jaspic.fragment-3.0.4.RELEASE.jar,\
 plugins/org.eclipse.gemini.web.extender-3.0.4.RELEASE.jar@start,\
 plugins/org.apache.felix.gogo.command_0.10.0.v201209301215.jar@start,\
 plugins/org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar@start,\
 plugins/org.apache.felix.gogo.shell_0.10.0.v201212101605.jar@start,\
 plugins/org.eclipse.equinox.console_1.1.0.v20140131-1639.jar@start,\
 plugins/web-console.war@5:start
eclipse.ignoreApp=true

 

8、新建启动脚本,用于启动产品包:

“java -jar org.eclipse.osgi_3.10.2.v20150203-1939.jar -console”

控制台运行结果,如下图

 

9、访问http://127.0.0.1:8080/web-console/index.html,查看运行结果,如下图所示

 

 

 

转载于:https://www.cnblogs.com/dyh004/p/10644123.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值