根据教材建立的一个工程,可是在Tomcat6 启动的时候出现以下严重信息
严重: Error filterStart
2009-6-16 14:48:53 org.apache.catalina.core.StandardContext start
严重: Context [/timemanage] startup failed due to previous errors
2009-6-16 14:48:53 com.opensymphony.xwork2.util.logging.commons.CommonsLogger in
fo
信息: Parsing configuration file [struts-default.xml]
2009-6-16 14:48:53 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inweb.xml文件是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" 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">
<display-name>Struts2Hello</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
各位请指教大概是那个原因,谢谢了

解决方案 »

  1.   

    看看你的struts-default.xml中action的路径配置有没有错……
      

  2.   

    在之前有这个提示:
    2009-6-17 10:07:53 org.apache.catalina.core.AprLifecycleListener init
    信息: The Apache Tomcat Native library which allows optimal performance in produ
    ction environments was not found on the java.library.path: C:\Tomcat 6.0\bin;.;C
    :\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\PC Connec
    tivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Java
    \jdk1.6\bin;C:\Java\jre1.6\bin;C:\MySQL\MySQL Server 5.0\bin;D:\python
      

  3.   

    提示的严重信息有:
    严重: Error filterStart
    2009-6-17 10:07:55 org.apache.catalina.core.StandardContext start
    严重: Context [/timemanager] startup failed due to previous errors
    2009-6-17 10:07:55 org.apache.catalina.startup.HostConfig deployWAR
    信息: Deploying web application archive timemanage.war
    2009-6-17 10:07:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger in
    fo
    信息: Parsing configuration file [struts-default.xml]
    2009-6-17 10:07:55 org.apache.catalina.core.StandardContext start
    严重: Error filterStart
    2009-6-17 10:07:55 org.apache.catalina.core.StandardContext start
    严重: Context [/timemanage] startup failed due to previous errors
    2009-6-17 10:07:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger in
    fo
    信息: Parsing configuration file [struts-default.xml]
    2009-6-17 10:07:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger in
      

  4.   

    ...
    which allows optimal performance in produ 
    ction environments was not found on the java.library.path:解决了吗?从这个来看似乎少了什么东西