开发者社区> 问答> 正文

eclipse中启动tomcat时出现问题,好像是编码过滤器有问题,错误如下

信息: Starting service Catalina
 2011-11-12 14:21:55 org.apache.catalina.core.StandardEngine start
 信息: Starting Servlet Engine: Apache Tomcat/6.0.18
 2011-11-12 14:21:56 org.apache.catalina.core.StandardContext filterStart
 严重: Exception starting filter filter
 java.lang.ClassNotFoundException: com.cn.filter.Zh_Filter
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
  at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
  at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
  at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  at org.apache.catalina.core.StandardService.start(StandardService.java:516)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 2011-11-12 14:21:56 org.apache.catalina.core.StandardContext start
 严重: Error filterStart
 2011-11-12 14:21:56 org.apache.catalina.core.StandardContext start
 严重: Context [/JSP2] startup failed due to previous errors
 2011-11-12 14:21:56 org.apache.coyote.http11.Http11Protocol start
 信息: Starting Coyote HTTP/1.1 on http-8080
 2011-11-12 14:21:56 org.apache.jk.common.ChannelSocket init
 信息: JK: ajp13 listening on /0.0.0.0:8009
 2011-11-12 14:21:56 org.apache.jk.server.JkMain start
 信息: Jk running ID=0 time=0/15  config=null
 2011-11-12 14:21:56 org.apache.catalina.startup.Catalina start
 信息: Server startup in 1004 ms

展开
收起
爵霸 2016-06-02 11:19:28 3827 0
1 条回答
写回答
取消 提交回答
  • eclipse里面配置tomcat方法: window -- show view -- other -- 找到servers 点击finish 就会出现servers选项卡 在选项卡中右键鼠标 new --serser -- 选择tomcat版本,然后next 选择你电脑上的tomcat的实际路径进行配置就可以了
    

    答案来源网络,供您参考

    2019-09-18 17:12:03
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多

相关镜像