控制台输出信息好像也没报错啊:
2012-3-22 11:30:49 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2012-3-22 11:30:49 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2012-3-22 11:30:51 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-3-22 11:30:51 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2012-3-22 11:30:51 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1633 ms
2012-3-22 11:30:51 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-3-22 11:30:51 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
2012-3-22 11:30:51 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2012-3-22 11:30:51 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2012-3-22 11:30:51 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ajax
2012-3-22 11:30:51 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory bulletin
2012-3-22 11:30:52 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2012-3-22 11:30:52 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2012-3-22 11:30:52 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2012-3-22 11:30:52 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2012-3-22 11:30:52 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory extjs
2012-3-22 11:30:52 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory extjs1
2012-3-22 11:30:53 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2012-3-22 11:30:53 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory spring_struts2
2012-3-22 11:30:54 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-3-22 11:30:54 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
2012-3-22 11:30:54 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Thu Mar 22 11:30:54 CST 2012]; root of context hierarchy
2012-3-22 11:30:54 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
2012-3-22 11:30:55 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@9468ca: defining beans [sessionFactory,userDAO,loginService,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,loginAction]; root of factory hierarchy
2012-3-22 11:30:57 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
2012-3-22 11:31:00 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 6428 ms
2012-3-22 11:31:01 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2012-3-22 11:31:01 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2012-3-22 11:31:01 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts.xml, skipping
2012-3-22 11:31:01 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2012-3-22 11:31:02 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Initializing Struts-Spring integration...
2012-3-22 11:31:02 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Setting autowire strategy to name
2012-3-22 11:31:02 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: ... initialized Struts-Spring integration successfully
2012-3-22 11:31:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory struts2
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Parsing configuration file [struts-default.xml]
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Parsing configuration file [struts-plugin.xml]
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Parsing configuration file [struts.xml]
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Overriding property struts.i18n.reload - old value: false new value: true
2012-3-22 11:31:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
信息: Overriding property struts.configuration.xml.reload - old value: false new value: true
2012-3-22 11:31:05 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-3-22 11:31:05 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2012-3-22 11:31:05 org.apache.catalina.startup.Catalina start
信息: Server startup in 14671 ms

解决方案 »

  1.   

    <package name="loginAction" namespace="/" extends="struts-default">
            <default-action-ref name="login"></default-action-ref>
            <action name="login" class="loginAction" method="login">
                <result name="success">index.jsp</result>
            </action>
        </package>
    在extends="struts-default"后面加上 method属性定义你要执行的方法
      

  2.   


    package标签上没method属性吧 那是action标签的属性
      

  3.   

    插件加了没?strut2-spring-pluin,
      

  4.   


    插件加了 之前是404错误是因为项目是我直接复制之前创建的一个项目,改了名字没改myeclipse中的web context_root,我改过了,现在是找不到action了
      

  5.   

    Spring初始化和你调用的是不是同一个类?将LoginService 声明为static试一下 。
      

  6.   


    LoginService 我只是在action里面声明了一个这属性,是要让spring注入的 而且我现在没调用LoginService里的方法 现在一访问action就找不到匹配的action了Could not find action or result
    There is no Action mapped for namespace / and action name login. - [unknown location]
      

  7.   

    把execute方法删了,如果还不行,把jsp的form贴上来看看。
      

  8.   


    删了还是不行 我直接输入url访问的
    项目名是:spring3_struts2_hibernate3http://localhost:8080/spring3_struts2_hibernate3/login
      

  9.   

    http://localhost:8080/spring3_struts2_hibernate3/login.action呢?
    页面有没什么信息?空白页?
      

  10.   


    好了 犯了个低级错误 struts配置文件位置放错了 
      

  11.   

    什么日志都没有显然HTTP请求没发到服务器端
    检查请求地址。
    检查IE缓存。
      

  12.   

    根据昨天的配置,你的请求Url应该是"namespace/action-method",如namespace是test,action是AdminAction,方法是login(),URL就是"test/Admin-login"