eclipse启动tomcat后通过浏览器却不能

1 通过tomcat命令,tomcat正常启动,页面可访问;

2 通过myeclipse启动tomcat,tomcat启动正常,页面能正常访问;

以下为启动日志

2011-4-27 22:44:32 org.apache.catalina.core.AprLifecycleListener init

信息:TheAPRbasedApacheTomcatNativelibrarywhichallowsoptimalperformanceinproductionenvironmentswasnotfoundonthejava.library.path:C:\ProgramFiles\Java\jdk1.6.0_16\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/ProgramFiles/Java/jdk1.6.0_16/bin/../jre/bin/client;C:/ProgramFiles/Java/jdk1.6.0_16/bin/../jre/bin;.;c:\ruby\bin;C:\ProgramFiles\Java\jdk1.6.0_16\bin;D:\ant\soft\apache-ant-1.8.2\bin;D:\IDE\tomcat6\bin;D:\android\sdk_root\tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\ProgramFiles\TortoiseGit\bin;D:\IDE\tomcat6\bin

2011-4-2722:44:33org.apache.coyote.http11.Http11Protocolinit

信息:InitializingCoyoteHTTP/1.1onhttp-8080

2011-4-2722:44:33org.apache.catalina.startup.Catalinaload

信息:Initializationprocessedin717ms

2011-4-2722:44:33org.apache.catalina.core.StandardServicestart

信息:StartingserviceCatalina

2011-4-2722:44:33org.apache.catalina.core.StandardEnginestart

信息:StartingServletEngine:ApacheTomcat/6.0.32

2011-4-2722:44:33org.apache.catalina.startup.HostConfigdeployDescriptor

信息:Deployingconfigurationdescriptorhost-manager.xml

2011-4-2722:44:33org.apache.catalina.startup.HostConfigdeployDescriptor

信息:Deployingconfigurationdescriptormanager.xml

2011-4-2722:44:33org.apache.catalina.startup.HostConfigdeployDirectory

信息:Deployingwebapplicationdirectorydocs

2011-4-2722:44:33org.apache.catalina.startup.HostConfigdeployDirectory

信息:Deployingwebapplicationdirectoryexamples

2011-4-2722:44:33org.apache.catalina.core.ApplicationContextlog

信息:ContextListener:contextInitialized()

2011-4-2722:44:33org.apache.catalina.core.ApplicationContextlog

信息:SessionListener:contextInitialized()

2011-4-2722:44:33org.apache.catalina.startup.HostConfigdeployDirectory

信息:DeployingwebapplicationdirectoryROOT

2011-4-2722:44:34org.apache.coyote.http11.Http11Protocolstart

信息:StartingCoyoteHTTP/1.1onhttp-8080

2011-4-2722:44:34org.apache.jk.common.ChannelSocketinit

信息:JK:ajp13listeningon/0.0.0.0:8009

2011-4-2722:44:34org.apache.jk.server.JkMainstart

信息:JkrunningID=0time=0/31config=null

2011-4-2722:44:34org.apache.catalina.startup.Catalinastart

信息: Server startup in 836 ms

3 通过eclipse启动tomcat,tomcat貌似启动正常,页面不能访问;

2011-4-27 22:45:46 org.apache.catalina.core.AprLifecycleListener init

信息:TheAPRbasedApacheTomcatNativelibrarywhichallowsoptimalperformanceinproductionenvironmentswasnotfoundonthejava.library.path:C:\ProgramFiles\Java\jdk1.6.0_16\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/ProgramFiles/Java/jdk1.6.0_16/bin/../jre/bin/client;C:/ProgramFiles/Java/jdk1.6.0_16/bin/../jre/bin;.;c:\ruby\bin;C:\ProgramFiles\Java\jdk1.6.0_16\bin;D:\ant\soft\apache-ant-1.8.2\bin;D:\IDE\tomcat6\bin;D:\android\sdk_root\tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\ProgramFiles\TortoiseGit\bin;D:\IDE\tomcat6\bin

2011-4-2722:45:47org.apache.coyote.http11.Http11Protocolinit

信息:InitializingCoyoteHTTP/1.1onhttp-8080

2011-4-2722:45:47org.apache.catalina.startup.Catalinaload

信息:Initializationprocessedin772ms

2011-4-2722:45:47org.apache.catalina.core.StandardServicestart

信息:StartingserviceCatalina

2011-4-2722:45:47org.apache.catalina.core.StandardEnginestart

信息:StartingServletEngine:ApacheTomcat/6.0.32

2011-4-2722:45:47org.apache.coyote.http11.Http11Protocolstart

信息:StartingCoyoteHTTP/1.1onhttp-8080

2011-4-2722:45:47org.apache.jk.common.ChannelSocketinit

信息:JK:ajp13listeningon/0.0.0.0:8009

2011-4-2722:45:47org.apache.jk.server.JkMainstart

信息:JkrunningID=0time=0/31config=null

2011-4-2722:45:47org.apache.catalina.startup.Catalinastart

信息: Server startup in 422 ms

对比日志可知:通过eclipse启动时,缺少部署的部分。

后来让eclipse接管tomcat就可以了,双击server会弹出设置页面,选择takes control of tomcat installation

相关推荐