free_to_fly 2015-05-02 10:19 采纳率: 0%
浏览 1983

将使用的servlet打包放在lib下面,运行时显示路径错误

错误信息如下:
错误信息如下:
500 Servlet Exception
WEB-INF/web.xml:20: `com.sohu.blogSuggest.SuggestConf' is not a known servlet.
Servlets belong in the classpath, often in WEB-INF/classes.


Resin-3.0.24 (built Thu, 16 Aug 2007 09:38:29 PDT)

com.sohu.blogSuggest.SuggestConf在suggest.jar里面,该包放在了/search/odin/resin/sugg/tag/WEB-INF/lib下面

web.xml(/search/odin/resin/sugg/tag/WEB-INF/web.xml)内容如下:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">


Sohu blog suggestion

<context-param>
    <param-name>suggest.propfile</param-name>
    <param-value>/WEB-INF/suggest.properties</param-value>
</context-param>

<context-param>
    <param-name>suggest.web.propfile</param-name>
    <param-value>../conf/websuggest.conf</param-value>
</context-param>

<!-- Suggestion Servlet Configuration -->
<servlet>
    <servlet-name>suggest.configuration</servlet-name>
    <servlet-class>com.sohu.blogSuggest.SuggestConf</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
 <!-- Charset Filter Configuration -->
 <filter>
   <filter-name>charsetfilter</filter-name>
   <filter-class>com.sohu.suggestion.CharsetFilter</filter-class>
 </filter>
 <!-- Charset Filter Mapping -->
 <filter-mapping>
   <filter-name>charsetfilter</filter-name>
    <url-pattern>/json.jsp</url-pattern>
 </filter-mapping>

  • 写回答

1条回答 默认 最新

  • cmeng_s 2015-05-14 07:39
    关注

    你用什么打包的???????????

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料