程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> javaweb-struts2 Tomcat 部署失敗

javaweb-struts2 Tomcat 部署失敗

編輯:編程解疑
struts2 Tomcat 部署失敗

Log

/work/apache-tomcat-7.0.63/bin/catalina.sh run
Using CATALINA_BASE:   /home/user/.IntelliJIdea2016.1/system/tomcat/index_jsp_MyDemo_2
Using CATALINA_HOME:   /work/apache-tomcat-7.0.63
Using CATALINA_TMPDIR: /work/apache-tomcat-7.0.63/temp
Using JRE_HOME:        /opt/jdk1.7.0_75
Using CLASSPATH:       /work/apache-tomcat-7.0.63/bin/bootstrap.jar:/work/apache-tomcat-7.0.63/bin/tomcat-juli.jar
[2016-12-07 09:17:56,858] Artifact MyDemo:war exploded: Server is not connected. Deploy is not available.
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.63
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jun 30 2015 08:08:33 UTC
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.63.0
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Linux
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            3.13.0-24-generic
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             /opt/jdk1.7.0_75/jre
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.7.0_75-b13
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         /home/user/.IntelliJIdea2016.1/system/tomcat/index_jsp_MyDemo_2
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         /work/apache-tomcat-7.0.63
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=/home/user/.IntelliJIdea2016.1/system/tomcat/index_jsp_MyDemo_2/conf/logging.properties
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=/work/apache-tomcat-7.0.63/endorsed
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=/home/user/.IntelliJIdea2016.1/system/tomcat/index_jsp_MyDemo_2
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/work/apache-tomcat-7.0.63
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=/work/apache-tomcat-7.0.63/temp
十二月 07, 2016 9:17:57 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /work/idea-IU-145.1617.8/bin::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
十二月 07, 2016 9:17:57 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十二月 07, 2016 9:17:57 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 367 ms
十二月 07, 2016 9:17:57 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 07, 2016 9:17:57 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.63
十二月 07, 2016 9:17:57 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十二月 07, 2016 9:17:57 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十二月 07, 2016 9:17:57 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 51 ms
Connected to server
[2016-12-07 09:17:57,428] Artifact MyDemo:war exploded: Artifact is being deployed, please wait...
十二月 07, 2016 9:17:57 上午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
十二月 07, 2016 9:17:57 上午 org.apache.catalina.core.StandardContext startInternal
嚴重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十二月 07, 2016 9:17:57 上午 org.apache.catalina.core.StandardContext startInternal
嚴重: Context [] startup failed due to previous errors
[2016-12-07 09:17:57,795] Artifact MyDemo:war exploded: Error during artifact deployment. See server log for details.
十二月 07, 2016 9:18:07 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /work/apache-tomcat-7.0.63/webapps/manager
十二月 07, 2016 9:18:07 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /work/apache-tomcat-7.0.63/webapps/manager has finished in 59 ms

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>

就是啟動不了,但是去掉對struts的過濾就可以了,菜鳥求教!

最佳回答:


錯誤日志沒有
是不是沒有把struts2所需要的包加到項目裡面來

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved