我用struts2
在web里配置的是:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struct2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struct2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
但是只要一发布
就会在控制台就会出现这样的错误:2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
这样改怎样改呢??
在web里配置的是:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struct2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struct2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
但是只要一发布
就会在控制台就会出现这样的错误:2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
这样改怎样改呢??
struts2-core-2.1.6.jar freeer-2.3.13.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.1.2.jar commons-fileupload-1.2.1.jar
从起tomcat也试了
也是这个错误:严重: Error filterStart
2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
严重: Error filterStart
2009-12-9 4:56:35 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors 部署时出现这种错误是配置文件错误,你仔细检查web.xml、 struts-config.xml配置文件
看看楼上的jar包有没
看看楼上的jar包有没
能说具体点吗
我的是 struts2-core-2.1.6.jar
tomcat log文价夹下看看日志问价报什么错误
我把tomcat1.5换成了1.6的
谢谢大哥们了!!!!
这是什么版本?是不是说struts2.0得在tomcat6.0下运行呢?
2.jdk要1.5或以上的版本
3.commons-io-1.3.2.jar,commons-fileupload-1.2.1.jar这两个包加上去 OK,问题解决了!