Osgi 我从userguide获得404 Not found |在Karaf 3中安装war项目
我可以安装一个war,但不是为了测试它,为什么 从我所做的: karaf@root()>捆绑包:安装-s“webbundle: 捆绑ID:150 karaf@root()>列表|格雷普·汤姆 150 |活跃| 80 | 0 | tomcat样本 karaf@root()>网站:列表 ID |状态| Web状态|级别| Web上下文路径|名称 123 |活动|部署| 80 |/样本| tomcat样本(0)Osgi 我从userguide获得404 Not found |在Karaf 3中安装war项目,osgi,war,karaf,Osgi,War,Karaf,我可以安装一个war,但不是为了测试它,为什么 从我所做的: karaf@root()>捆绑包:安装-s“webbundle: 捆绑ID:150 karaf@root()>列表|格雷普·汤姆 150 |活跃| 80 | 0 | tomcat样本 karaf@root()>网站:列表 ID |状态| Web状态|级别| Web上下文路径|名称 123 |活动|部署| 80 |/样本| tomcat样本(0) 当我去[http://loxcalhost:8181/sample]它不工作了,为什么 示
当我去[http://loxcalhost:8181/sample]它不工作了,为什么 示例war的web.xml中不包含欢迎部分,因此,如果调用localhost:8181/sample,则不会发生任何事情。您必须使用localhost:8181/sample/hello,因为这是此web应用程序的注册servlet。 如果发出http:list命令,将得到以下列表:
karaf@root()> http:list
ID | Servlet | Servlet-Name | State | Alias | Url
---------------------------------------------------------------------------------------------------------------------------
103 | JspServletWrapper | jsp | Deployed | | [*.jsp, *.jspx, *.jspf, *.xsp, *.JSP, *.JSPX, *.JSPF, *.XSP]
103 | ResourceServlet | default | Deployed | / | [/]
103 | | HelloServlet | Deployed | | [/hello]