请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答

7回答

"C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro"。这个下面没logs?

0 回复 有任何疑惑可以回复我~
Jimin 2018-07-06 12:26:50

或者,你能描述一下你是怎么做的吗?我现在确少可以拿来分析的点

0 回复 有任何疑惑可以回复我~
提问者 慕粉15812338656 2018-07-06 12:20:55

# Licensed to the Apache Software Foundation (ASF) under one or more

# contributor license agreements.  See the NOTICE file distributed with

# this work for additional information regarding copyright ownership.

# The ASF licenses this file to You under the Apache License, Version 2.0

# (the "License"); you may not use this file except in compliance with

# the License.  You may obtain a copy of the License at

#

#     http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.


handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler


.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler


############################################################

# Handler specific properties.

# Describes specific configuration info for Handlers.

############################################################


1catalina.org.apache.juli.AsyncFileHandler.level = FINE

1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs

1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.


2localhost.org.apache.juli.AsyncFileHandler.level = FINE

2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs

2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.


3manager.org.apache.juli.AsyncFileHandler.level = FINE

3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs

3manager.org.apache.juli.AsyncFileHandler.prefix = manager.


4host-manager.org.apache.juli.AsyncFileHandler.level = FINE

4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs

4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.


java.util.logging.ConsoleHandler.level = FINE

java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter



############################################################

# Facility specific properties.

# Provides extra control for each logger.

############################################################


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.AsyncFileHandler


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.AsyncFileHandler


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.AsyncFileHandler


# For example, set the org.apache.catalina.util.LifecycleBase logger to log

# each component that extends LifecycleBase changing state:

#org.apache.catalina.util.LifecycleBase.level = FINE


# To see debug messages in TldLocationsCache, uncomment the following line:

#org.apache.jasper.compiler.TldLocationsCache.level = FINE


# To see debug messages for HTTP/2 handling, uncomment the following line:

#org.apache.coyote.http2.level = FINE


# To see debug messages for WebSocket handling, uncomment the following line:

#org.apache.tomcat.websocket.level = FINE


0 回复 有任何疑惑可以回复我~
Jimin 2018-07-06 11:10:22

我从日志里看到了这个路径,C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro\conf\logging.properties
你一层层点进去看一下是否有这样的日志文件,同时这个logging.properties也发出来看看。

对于调错而言,最关键的就是异常日志,否则我连你那边具体发生了什么问题都不清楚,完全没有方向

0 回复 有任何疑惑可以回复我~
Jimin 2018-07-05 23:28:05

F:\apache-tomcat-8.5.32\ 这个文件夹下应该有个log文件夹,你进去后分别看一下,应该有些文件里记录了启动的实际异常,把那些异常堆栈发出来看一下,刚才贴的这个主要还是启动过程的描述

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉15812338656 #1
    log文件里面是空了
    回复 有任何疑惑可以回复我~ 2018-07-06 09:20:10
  • 提问者 慕粉15812338656 #2
    用了3个版本的Tomcat运行了一遍一样的问题,log文件都没有记录
    回复 有任何疑惑可以回复我~ 2018-07-06 10:25:53
提问者 慕粉15812338656 2018-07-05 23:21:09

F:\apache-tomcat-8.5.32\bin\catalina.bat run

[2018-07-05 11:20:17,043] Artifact ssmshiro:war exploded: Waiting for server connection to start artifact deployment...

Using CATALINA_BASE:   "C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro"

Using CATALINA_HOME:   "F:\apache-tomcat-8.5.32"

Using CATALINA_TMPDIR: "F:\apache-tomcat-8.5.32\temp"

Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_131"

Using CLASSPATH:       "F:\apache-tomcat-8.5.32\bin\bootstrap.jar;F:\apache-tomcat-8.5.32\bin\tomcat-juli.jar"

05-Jul-2018 23:20:18.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.32

05-Jul-2018 23:20:18.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 20 2018 19:50:35 UTC

05-Jul-2018 23:20:18.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.32.0

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_131\jre

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_131-b11

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro

05-Jul-2018 23:20:18.945 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         F:\apache-tomcat-8.5.32

05-Jul-2018 23:20:18.946 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro\conf\logging.properties

05-Jul-2018 23:20:18.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

05-Jul-2018 23:20:18.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=

05-Jul-2018 23:20:18.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099

05-Jul-2018 23:20:18.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false

05-Jul-2018 23:20:18.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false

05-Jul-2018 23:20:18.948 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1

05-Jul-2018 23:20:18.948 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048

05-Jul-2018 23:20:18.948 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

05-Jul-2018 23:20:18.948 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=

05-Jul-2018 23:20:18.948 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2017.3\system\tomcat\Unnamed_(1)_ssmshiro

05-Jul-2018 23:20:18.949 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=F:\apache-tomcat-8.5.32

05-Jul-2018 23:20:18.949 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=F:\apache-tomcat-8.5.32\temp

05-Jul-2018 23:20:18.949 信息 [main] 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: [C:\Program Files\Java\jdk1.8.0_131\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%MAVEN_HOME%\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;F:\apache-maven-3.5.4\bin;;.]

05-Jul-2018 23:20:19.272 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]

05-Jul-2018 23:20:19.331 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

05-Jul-2018 23:20:19.342 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

05-Jul-2018 23:20:19.348 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

05-Jul-2018 23:20:19.348 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 977 ms

05-Jul-2018 23:20:19.390 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]

05-Jul-2018 23:20:19.390 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.32

05-Jul-2018 23:20:19.414 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

05-Jul-2018 23:20:19.429 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

05-Jul-2018 23:20:19.437 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 88 ms

Connected to server

[2018-07-05 11:20:19,788] Artifact ssmshiro:war exploded: Artifact is being deployed, please wait...

05-Jul-2018 23:20:24.907 信息 [RMI TCP Connection(2)-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.

05-Jul-2018 23:20:24.988 信息 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started

05-Jul-2018 23:20:25.108 信息 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Thu Jul 05 23:20:25 CST 2018]; root of context hierarchy

05-Jul-2018 23:20:25.291 信息 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 302 ms

05-Jul-2018 23:20:25.421 严重 [RMI TCP Connection(2)-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

05-Jul-2018 23:20:25.422 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

05-Jul-2018 23:20:25.429 信息 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing Root WebApplicationContext: startup date [Thu Jul 05 23:20:25 CST 2018]; root of context hierarchy

[2018-07-05 11:20:25,485] Artifact ssmshiro:war exploded: Error during artifact deployment. See server log for details.

05-Jul-2018 23:20:29.416 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [F:\apache-tomcat-8.5.32\webapps\manager]

05-Jul-2018 23:20:29.597 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [F:\apache-tomcat-8.5.32\webapps\manager] has finished in [180] ms


0 回复 有任何疑惑可以回复我~
Jimin 2018-07-05 22:46:53

你好,这里只是提示启动失败了,需要提供更多的信息来分析具体的原因

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉15812338656 #1
    这是完整的启动信息了
    回复 有任何疑惑可以回复我~ 2018-07-05 23:22:35
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信