easyeclipse for php 404错误,eclipse测试Struts2配置时,控制台报错,浏览器也总是显示404错误。...

刚学struts照着书本和网上的很多小例子来测试自己的struts配置的对不对,但是总是遇到404错误

下面是我导入的jar包。(把struts的jar包做成了user Libraries,在工程的build path直接导入的,反正跟直接粘贴在web-inf/lib下结果都一样)

672d3d9986120838a318ee8ea6b6bc94.png

下面是web.xml内容<?xml  version="1.0" encoding="UTF-8"?>

12

struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

struts2

/*

index.html

index.htm

index.jsp

default.html

default.htm

default.jsp

这是Struts.xml内容

struts PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"

"http://struts.apache.org/dtds/struts-2.3.dtd">

/helloworld.jsp

这是报错信息

十二月 14, 2017 9:35:10 下午 org.apache.catalina.startup.SetContextPropertiesRule begin

警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:12' did not find a matching property.

十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter struts2

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)

。。。。

十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext startInternal

严重: One or more Filters failed to start. Full details will be found in the appropriate container log file

十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext startInternal

严重: Context [/12] startup failed due to previous errors

十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.HostConfig deployDescriptor

信息: Deployment of configuration descriptor C:\Users\Administrator\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\12.xml has finished in 204 ms

十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.HostConfig deployDescriptor

信息: Deploying configuration descriptor C:\Users\Administrator\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\struts2-blank.xml

十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.SetContextPropertiesRule begin

警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:struts2-blank' did not find a matching property.

十二月 14, 2017 9:35:12 下午 org.apache.catalina.startup.TldConfig execute

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

2017-12-14 21:35:13,091 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss]

。。。。

我在网上找很久解决办法。也都试了。。并没有用。

是我工程就建的不对么?求指点一下,刚开始学就卡住了。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值