2 cangyue110 cangyue110 于 2016.04.19 13:58 提问

IDEA运行struts2提示Server is not connected

"E:\Program Files\apache-tomcat-8.0.28\bin\catalina.bat" run
[2016-04-19 01:32:09,158] Artifact struts:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE: "C:\Users\gyt_s.IntelliJIdea2016.1\system\tomcat\Unnamed_struts_4"
Using CATALINA_HOME: "E:\Program Files\apache-tomcat-8.0.28"
Using CATALINA_TMPDIR: "E:\Program Files\apache-tomcat-8.0.28\temp"
Using JRE_HOME: "E:\Program Files\Java\jdk1.8.0_60"
Using CLASSPATH: "E:\Program Files\apache-tomcat-8.0.28\bin\bootstrap.jar;E:\Program Files\apache-tomcat-8.0.28\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:64409', transport: 'socket'
19-Apr-2016 13:32:10.959 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.28
19-Apr-2016 13:32:10.961 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Oct 7 2015 18:25:21 UTC
19-Apr-2016 13:32:10.962 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.28.0
19-Apr-2016 13:32:10.962 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
19-Apr-2016 13:32:10.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
19-Apr-2016 13:32:10.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
19-Apr-2016 13:32:10.965 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: E:\Program Files\Java\jdk1.8.0_60\jre
19-Apr-2016 13:32:10.965 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_60-b27
19-Apr-2016 13:32:10.965 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
19-Apr-2016 13:32:10.965 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\gyt_s.IntelliJIdea2016.1\system\tomcat\Unnamed_struts_4
19-Apr-2016 13:32:10.965 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\Program Files\apache-tomcat-8.0.28
19-Apr-2016 13:32:10.966 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64409,suspend=y,server=n
19-Apr-2016 13:32:10.966 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
19-Apr-2016 13:32:10.967 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
19-Apr-2016 13:32:10.967 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
19-Apr-2016 13:32:10.967 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
19-Apr-2016 13:32:10.968 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
19-Apr-2016 13:32:10.968 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\gyt_s.IntelliJIdea2016.1\system\tomcat\Unnamed_struts_4\conf\logging.properties
19-Apr-2016 13:32:10.968 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
19-Apr-2016 13:32:10.969 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\Program Files\apache-tomcat-8.0.28\endorsed
19-Apr-2016 13:32:10.969 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\gyt_s.IntelliJIdea2016.1\system\tomcat\Unnamed_struts_4
19-Apr-2016 13:32:10.970 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\Program Files\apache-tomcat-8.0.28
19-Apr-2016 13:32:10.970 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\Program Files\apache-tomcat-8.0.28\temp
19-Apr-2016 13:32:10.970 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
19-Apr-2016 13:32:10.970 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
19-Apr-2016 13:32:12.046 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
19-Apr-2016 13:32:12.236 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
19-Apr-2016 13:32:12.265 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
19-Apr-2016 13:32:12.273 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1961 ms
19-Apr-2016 13:32:12.348 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
19-Apr-2016 13:32:12.349 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.28
19-Apr-2016 13:32:12.371 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
19-Apr-2016 13:32:12.389 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
19-Apr-2016 13:32:12.390 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 116 ms
Connected to server
[2016-04-19 01:32:12,495] Artifact struts:war exploded: Artifact is being deployed, please wait...
19-Apr-2016 13:32:13.420 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 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.
19-Apr-2016 13:32:13.473 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
19-Apr-2016 13:32:13.474 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2016-04-19 01:32:13,494] Artifact struts:war exploded: Error during artifact deployment. See server log for details.
19-Apr-2016 13:32:22.376 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Program Files\apache-tomcat-8.0.28\webapps\manager
19-Apr-2016 13:32:22.737 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Program Files\apache-tomcat-8.0.28\webapps\manager has finished in 360 ms
网上查了好多方法都没有解决,请问有谁遇到过的帮忙解决一下!谢谢!

1个回答

CSDNXIAOC
CSDNXIAOC   2016.04.19 14:02

今天在使用 Struts2.1 做注解操作的时候,一直出现这个问题。花了半天时间才解决,错误原因真是让人蛋疼!
错误提示:

项目结构:

使用注解的位置:
package com.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletReques......
答案就在这里:Struts2错误:There is no Action mapped for namespace... 解决方法
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!