可能重复:
How to fix this Spring MVC startup exception in tomcat?
有人知道发生了什么事吗?
发生了什么事,你们知道吗?我在哪里可以看到日志以获取更多详细信息?
以下是控制台所说的内容:
02/06/2012 01:08:50 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Arquivos de programas\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:/Arquivos de programas/Java/jre6/lib/i386;C:\Ruby193\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Java\jdk1.6.0_25\bin;C:\apache-maven-3.0.3\bin;C:\spring-roo-1.1.3.RELEASE\bin;C:\Arquivos de programas\Android\android-sdk\tools;C:\Arquivos de programas\QuickTime\QTSystem\;C:\eclipse;;.
02/06/2012 01:08:51 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:springapp' did not find a matching property.
02/06/2012 01:08:51 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
02/06/2012 01:08:51 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
02/06/2012 01:08:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 766 ms
02/06/2012 01:08:51 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
02/06/2012 01:08:51 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
02/06/2012 01:08:51 org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [109] milliseconds.
02/06/2012 01:08:51 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
02/06/2012 01:08:51 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
02/06/2012 01:08:51 org.apache.catalina.startup.Catalina start
INFO: Server startup in 522 ms
答案 0 :(得分:1)
(我希望你可能会说为什么你认为这里有错误,但你没有打扰过。所以......)
该日志中没有错误,看起来Tomcat已成功启动并且正常运行。唯一有点奇怪的是,没有来自任何webapps的启动消息。也许您还没有部署它们......或者您已将它们部署在错误的目录中。
关于丢失的APR本机代码的INFO消息是无害的。如果没有它,Tomcat工作正常...假设您没有在server.xml
文件中明确配置APR连接器。
AVISO消息(奇怪的类别名称...)看起来像是在告诉您在某些配置文件中的属性名称中出错了。也许,您设置为"source"
的值的"org.eclipse.jst.jee.server:springapp"
属性名称错误?或者它是在错误的XML元素上?如果问题出在你的webapp web.xml
中,可能是因为你的webapp没有找到任何servlet来启动......或类似的东西。
答案 1 :(得分:0)
Tomcat服务器日志通常可以在${catalina.home}/logs/catalina.out
或${catalina.home}/logs/tomcat.log