将OSGi Servlet部署到Domino(IBM演示文稿)-404错误 [英] Deploying OSGi Servlet to Domino (IBM presentation) - 404 error

查看:170
本文介绍了将OSGi Servlet部署到Domino(IBM演示文稿)-404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用带有Equinox的PDE工具在Domino中部署OSGi容器.我正在按照此IBM幻灯片中的说明进行操作: http://www.slideshare.net/fiorep/domino-osgi-开发中?next_slideshow = 1

I´m trying to deploy an OSGi container in Domino using PDE tool with Equinox. I´m following the instruction in this IBM slideshow: http://www.slideshare.net/fiorep/domino-osgi-development?next_slideshow=1

但是(按幻灯片#52),当我浏览到 http://localhost/simpledemo (单击调试"后)从调试配置"中获取),我收到找不到404文件"错误.

However (as per slide #52) when I browse to http://localhost/simpledemo (after clicking Debug from Debug Configuration), I get a "404 file not found" error.

"simpledemo"是映射在puligin.xml文件中的别名(幻灯片44).但是,该servlet名称为SimpleServlet.

"simpledemo" is the alias mapped in the puligin.xml file (slide 44). The servlet name is however SimpleServlet.

有什么想法吗? 非常感谢您的帮助.

Any ideas what is going on?? Any help is much appreciated.

我的环境:Windows 2012 Server(在VM上),Eclipse 3.6.2,Equinox,PDE工具和Domino Server 6.01服务器.

My environment: Windows 2012 Server (on VM),Eclipse 3.6.2, Equinox, PDE tool and Domino Server 6.01 server.

参考:将OSGi Servlet部署到Domino

SimpleServlet.Java

SimpleServlet.Java

 package com.ibm.ls2012;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletException;
import java.io.IOException;
import java.io.PrintWriter;

public class SimpleServlet extends HttpServlet {
private static final long serialVersionUID = 1L;

public SimpleServlet() {

}

@Override

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
   final PrintWriter pw = resp.getWriter();

   resp.setContentType("text/html");
   pw.println("<HTML");
   pw.println("<HEAD><TITLE>SHOW112 - Simple Servlet Demo</TITLE></HEAD>");
   pw.println("<BODY>");
   pw.println("<BR>");
   pw.println("hello world. feeling cold yet?");
}}

推荐答案

我要检查的第一件事是插件已正确加载.在服务器控制台中,输入:告诉http osgi ss {yourpluginname}.确保插件已加载并处于活动状态.如果安装了state,则您有一个缺少约束的问题,要进行诊断,请键入tell http osgi diag {pluginid}. 注意:您可以从第一个ss命令中获取pluginid.

First thing I would check is that the plugin is correctly loaded. From the server console type: tell http osgi ss {yourpluginname}. Make sure the plugin is loaded and has an active state. If state is installed, then you have a missing constraint issue, to diagnose, type tell http osgi diag {pluginid}. Note: you can get the pluginid from the first ss command.

如果状态已解决,则需要使用以下命令手动启动它:告诉http osgi start {pluginid}.注意:Domino服务器不应处于已解决状态,因此应自动启动所有插件.

If state is resolved, then you need to start it manually using the following command: tell http osgi start {pluginid}. Note: being in a resolved state is not expected, the Domino Server should automatically start all plugins.

这篇关于将OSGi Servlet部署到Domino(IBM演示文稿)-404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆