2011-8-10 0:37:55 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.19.
2011-8-10 0:37:55 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2011-8-10 0:37:55 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-8-10 0:37:55 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2011-8-10 0:37:55 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 535 ms
2011-8-10 0:37:55 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-8-10 0:37:55 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.32
2011-8-10 0:37:55 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-8-10 0:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2011-8-10 0:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-8-10 0:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory myWebProject
2011-8-10 0:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory Strust2
2011-8-10 0:37:56 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-default.xml]
2011-8-10 0:37:57 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts-plugin.xml]
2011-8-10 0:37:57 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
信息: Parsing configuration file [struts.xml]
2011-8-10 0:37:57 org.apache.struts2.config.Settings getLocale
警告: Settings: Could not parse struts.locale setting, substituting default VM locale
2011-8-10 0:37:58 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit>
信息: Setting DefaultObjectTypeDeterminer as default ...
2011-8-10 0:37:58 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-8-10 0:37:58 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2011-8-10 0:37:58 org.apache.catalina.startup.Catalina start
信息: Server startup in 2315 ms
怎么都会出现这种问题。我书上说要tomcat6.0.16的.但是那个tomcat我找不到,我下载了apache-tomcat-6.0.30.zip
而jdk要java_ee_sdk-5_04-windows-ml,我下载了java_ee_sdk-6u2-jdk-windows.exe
myeclipse是8.5的.
是这些版本的问题吗?struts2.xml代码为:
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuaration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="struts" extends="struts-default">
<action name="login" class="LoginAction">
<result name="error">/error.jsp</result>
<result name="success">/welcome.jsp</result>
</action>
</package>
</struts>web.xml代码为:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 <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>
</web-app>lib中已经导入了struts2的jre.

解决方案 »

  1.   

    你有没有设置把 tomcat 设置成enable?
      

  2.   

    我的电脑:‘高级’设置环境变量,之后你必须还得在Myeclipse里面的 window下的preference中设置Myeclipse的servers中的tomcat
      

  3.   

    不是有个警告吗?我在我的浏览器中显示这个页面是没有available的
      

  4.   

    struts.properties文件中配置:struts.locale=en_GB